@font-face {
    font-family: "Gilroy-Medium";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src:
        url("../fonts/Gilroy-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "Gilroy-SemiBold";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src:
        url("../fonts/Gilroy-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "Gilroy-MediumItalic";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src:
        url("../fonts/Gilroy-MediumItalic.woff2") format("woff2");
}

@font-face {
    font-family: "UNCAGE";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        url("../fonts/UNCAGE-VF.woff2") format("woff2");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background-color: #e7d5f9;
    --third-color: #f7e3fd;
    --primary-color: #87479d;
    --secondary-color: #ce84e1;
    --text-color: #2a004a;
    --white: #fff;
    --font-family: "Gilroy-Medium", sans-serif;
    --second-family: "UNCAGE", sans-serif;
    --third-family: "Gilroy-SemiBold", sans-serif;
    --font3: "Gilroy-MediumItalic", sans-serif;
}

body {
    font-family: var(--font-family) !important;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    overflow-x: hidden;
}

body.mobile-menu-open {
    overflow: hidden;
}

html,
body {
    height: 100%;
    margin: 0;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

a {
    text-decoration: none !important;
}

button {
    outline: none !important;
    border: 0;
}

a.btnStyle {
    display: inline-block;
    font-family: var(--second-family);
    font-size: 16px;
    text-align: center;
    color: var(--white);
    background: var(--secondary-color);
    padding: 18px 40px;
    border: 1px solid transparent;
    transition: background-color 0.3s linear, border 0.3s linear, color 0.3s linear;
}

a.btnStyle:hover {
    background-color: var(--background-color);
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.lazy-bg {
    box-shadow: 3px 6px 12px 0 rgba(42, 0, 74, 0.25);
}

/* --- Header & Navigation --- */
header.header {
    padding: 40px 0;
    position: relative;
    z-index: 100;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Switcher right by default */
    position: relative;
}

/* Logo positioning */
.header__logo {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    transition: all 0.3s ease;
}

.header__logo svg {
    width: 572px;
    height: auto;
}

/* Language Switcher */
.header__switcher {
    display: flex;
    gap: 28px;
    list-style: none;
    margin-bottom: 138px;
}

.header__switcher a {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid transparent;
    transition: border 0.3s linear;
}

.header__switcher .current-lang a,
.header__switcher a:hover {
    border-bottom: 1px solid var(--text-color);
}

/* Inner Page Menu (Desktop) */
.inner-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.inner-header__menu ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.inner-header__menu ul li a {
    font-size: 18px;
    color: var(--text-color);
    position: relative;
}

.inner-header__menu ul li a::before {
    content: "";
    position: absolute;
    top: 10px;
    left: -14px;
    width: calc(100% + 28px);
    height: 12px;
    transform: skew(-40deg);
    border-radius: 2px;
    background: var(--third-color);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s linear;
}

.inner-header__menu ul li a:hover::before {
    opacity: 1;
}

/* --- Mobile Menu Elements --- */
.mobile-menu-toggle {
    display: none;
    z-index: 10002;
    width: 50px;
    height: 50px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
}

.hamburger-line {
    width: 33px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
}

.mobile-menu {
    border-radius: 0 0 8px 8px;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42, 0, 74, 0.2);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-menu__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu__logo {
    display: flex;
    justify-content: center;
}

.mobile-menu__logo svg,
.mobile-menu__content svg {
    width: 80%;
    height: auto;
    margin-bottom: 40px;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--background-color);
    z-index: 10001;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 100vh;
    overflow-y: auto;
    padding: 80px 30px 40px;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu__close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: transform 0.2s ease;
}

.mobile-menu__close:hover {
    transform: scale(1.1);
}

.mobile-menu__close svg {
    width: 32px;
    height: 32px;
}

.header__switcher {
    display: flex;
    gap: 28px;
    list-style: none;
    margin-bottom: 138px;
}

.header__switcher a {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid transparent;
    transition: border 0.3s linear;
}

.header__switcher .current-lang a,
.header__switcher a:hover {
    border-bottom: 1px solid var(--text-color);
}

.mobile-menu__switcher {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    gap: 28px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    list-style: none;
}

.mobile-menu__switcher a {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid transparent;
    transition: border 0.3s linear;
}

.mobile-menu__switcher .current-lang a,
.mobile-menu__switcher a:hover {
    border-bottom: 1px solid var(--text-color);
}



.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-menu__nav li {
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.3s ease;
}


.mobile-menu.active .mobile-menu__nav li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu__nav li:nth-child(n) {
    transition-delay: calc(0.1s + 0.05s * var(--i, 0));
}

/* Stagger can be added via JS or fixed steps */

.mobile-menu ul li a {
    font-size: 20px;
    color: var(--text-color);
    display: block;
}

/* Media Queries Optimization */
@media screen and (max-width: 1279px) {

    header.header,
    main,
    footer.footer {
        padding-left: 30px;
        padding-right: 30px;
    }

    .header__logo svg {
        width: 435px;
    }

    .header__switcher {
        margin-bottom: 100px;
    }
}

@media screen and (max-width: 1023px) {
    .header__logo svg {
        width: 380px;
    }

    .header__switcher {
        margin-bottom: 90px;
    }

    .inner-header__menu ul {
        gap: 30px;
    }
}

@media screen and (max-width: 959px) {
    .inner-header {
        display: none;
    }

    body.has-mobile-menu .header__switcher {
        display: none;
    }

    body.has-mobile-menu .mobile-menu-toggle {
        display: flex;
        position: relative;
    }

    body.has-mobile-menu .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    body.has-mobile-menu .header__logo {
        position: static;
        transform: none;
    }

    body.has-mobile-menu .header__logo svg {
        width: 350px;
    }

    /* Home Page (Front Page) - centered layout remains */
    body.home .header__logo svg {
        width: 330px;
    }

    body.home .header__switcher {
        margin-bottom: 75px;
        gap: 15px;
    }

    body.home .header__switcher a {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {

    header.header,
    main,
    footer.footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    body.home .header__logo svg {
        width: 270px;
    }
}

@media screen and (max-width: 599px) {

    /* Home page stack on small mobiles */
    body.home .header .container {
        align-items: center;
        gap: 30px;
    }

    body.home .header__logo {
        position: static;
        transform: none;
        order: 2;
    }

    body.home .header__switcher {
        margin-bottom: 0;
        order: 1;
    }
}


footer.footer {
    margin-top: auto;
    padding: 16px 0;
}

.footer .container {
    align-items: center;
    gap: 20px;
}

.footer__info {
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    text-align: center;
    color: var(--text-color);
}

.footer__icon {
    display: flex;
    justify-content: center;
}

.titleBG::before {
    content: " ";
    position: absolute;
    top: 30px;
    left: -14px;
    width: calc(100% + 28px);
    height: 32px;
    transform: skew(-40deg);
    border-radius: 8px;
    background: var(--third-color);
    z-index: -1;
}

.titleBG {
    position: relative;
    display: inline;
    border-radius: 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.video__button {
    position: absolute;
    bottom: -6%;
    left: -36%;
    rotate: -7deg;
    display: flex;
    gap: 27px;
    align-items: flex-start;
    z-index: 10;
}

.video__button-text {
    font-size: 18px;
    line-height: 120%;
    color: var(--text-color);
    max-width: 128px;
    position: relative;
    padding-top: 10px;
}

.video__button-text svg {
    position: absolute;
    left: 95px;
    bottom: -21px;
}

.video__button--arrow {
    background-color: var(--primary-color);
    min-width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s linear, border 0.3s linear;
}

.video__button--arrow:hover {
    background-color: var(--background-color);
    border: 1px solid var(--text-color);
}

.video__button--arrow svg {
    margin-left: 6px;
    fill: white;
    transition: fill 0.3s linear;
}

.video__button--arrow:hover svg {
    fill: var(--text-color);
}

/* Стили для видео лайтбокса */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.video-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 0, 74, 0.5);
    cursor: pointer;
}

.video-lightbox__content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10000;
    animation: lightboxSlideIn 0.4s ease;
    display: flex;
    justify-content: center;
}

@keyframes lightboxSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.video-lightbox__close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 10001;
}

.video-lightbox__close:hover {
    transform: scale(1.1);
}

.video-lightbox__close svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.video-lightbox__video {
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1279px) {
    main {
        padding: 0 30px;
    }

    header.header {
        padding: 40px 30px;
    }

    footer.footer {
        padding: 16px 30px;
    }

    .header__logo svg {
        width: 435px;
    }

    .header__switcher {
        margin-bottom: 100px;
    }

    a.btnStyle {
        font-size: 14px;
    }

    .video__button--arrow {
        min-width: 70px;
        height: 70px;
    }

    .video__button-text {
        font-size: 16px;
        max-width: 118px;
    }

    .video__button {
        bottom: -14%;
        left: auto;
        right: 0;
    }

    .titleBG::before {
        height: 20px;
        top: 25px;
    }
}


@media screen and (max-width: 1023px) {
    .header__logo svg {
        width: 380px;
    }

    .header__switcher {
        margin-bottom: 90px;

    }

    .inner-header__menu ul {
        gap: 30px;
    }

    .inner-header__menu ul li a {
        font-size: 16px;
    }

    .video__button--arrow {
        min-width: 60px;
        height: 60px;
    }

    .video__button-text {
        font-size: 14px;
        max-width: 100px;
    }

    .video__button-text svg {
        left: 77px;
    }

    a.btnStyle {
        font-size: 12px;
    }
}


@media screen and (max-width: 959px) {

    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop inner header menu */
    .inner-header {
        display: none;
    }

    .page-template-front-page .header__switcher {
        display: flex !important;
    }

    .header__switcher {
        display: none;
    }

    .page-template-front-page .header__switcher a {
        font-size: 14px;
    }

    .page-template-front-page .header__logo svg {
        width: 330px;
    }

    .page-template-front-page .header__switcher {
        margin-bottom: 75px;
        gap: 15px;
    }

    .footer__info {
        font-size: 12px;
    }

    .header__logo:not(.page-template-front-page .header__logo) {
        position: relative;
        left: auto;
        transform: none;
    }

    .header .container:not(.page-template-front-page .header .container) {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 30px;
    }

    .video__button {
        bottom: -16%;
    }

    .titleBG::before {
        height: 25px;
        top: 18px;
    }

    a.btnStyle {
        font-size: 9px;
        padding: 10px 20px;
    }

    .video__button-text {
        font-size: 12px;
        max-width: 100px;
    }
}


@media screen and (max-width: 767px) {
    main {
        padding: 0 15px;
    }

    header.header {
        padding: 40px 15px 20px 15px;
    }

    footer.footer {
        padding: 20px 15px;
    }

    .page-template-front-page .header__logo svg {
        width: 270px;
    }

    .page-template-front-page .header__switcher {
        margin-bottom: 60px;
        gap: 15px;
    }

    .mobile-menu {
        padding: 70px 20px 40px;
    }

    .mobile-menu__close {
        top: 25px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .mobile-menu__close svg {
        width: 28px;
        height: 28px;
    }

    .mobile-menu__switcher {
        gap: 20px;
        margin-bottom: 25px;
        padding-bottom: 18px;
    }

    .mobile-menu__switcher a {
        font-size: 16px;
    }

    .mobile-menu ul li a {
        font-size: 18px;
        font-weight: 500;
        font-size: 18px;
        line-height: 120%;
        color: var(--text-color);
    }

    .video-lightbox__content {
        width: 95%;
    }

    .video-lightbox__close {
        top: -45px;
        right: 0;
        width: 36px;
        height: 36px;
    }

    .video-lightbox__close svg {
        width: 24px;
        height: 24px;
    }

    .video-lightbox__video {
        max-height: 70vh;
    }

    .titleBG::before {
        display: none;
    }

    .titleBG {
        max-width: 100%;
        background:
            linear-gradient(to bottom,
                transparent 40%,
                var(--third-color) 68%,
                var(--third-color) 100%);
        padding: 0 18px 8px 18px;
    }

    .video__button--arrow svg {
        width: 10px;
        margin-left: 4px;
    }

    .video__button--arrow {
        min-width: 50px;
        height: 50px;
    }

    .video__button {
        bottom: -6%;
    }

    a.btnStyle {
        font-size: 16px;
        padding: 18px 40px;
    }

    .video__button-text {
        font-size: 14px;
    }
}


@media screen and (max-width: 599px) {
    .header .container {
        align-items: center;
        gap: 40px;
    }

    .page-template-front-page .header__logo {
        position: relative;
        left: auto;
        transform: none;
        order: 2;
    }

    .page-template-front-page .header__switcher {
        margin-bottom: 0;
        gap: 28px;
    }

    .page-template-front-page .header__switcher a {
        font-size: 18px;
    }

    .page-template-front-page .header__logo svg {
        width: 100%;
    }

    .footer__info {
        font-size: 14px;
    }

    .header__logo svg:not(.page-template-front-page .header__logo svg) {
        width: 274px;

    }

    .mobile-menu-toggle {
        width: 43px;
        height: 43px;
    }

    .video__button--arrow svg {
        width: 8px;
        margin-left: 3px;
    }

    .video__button--arrow {
        min-width: 40px;
        height: 40px;
    }

    .video__button-text {
        padding-top: 0;
    }

    .video__button {
        bottom: -5%;
        right: -4%;
    }

}


@media screen and (max-width: 474px) {}


@media screen and (max-width: 424px) {}


@media screen and (max-width: 374px) {
    body.home .header__switcher a {
        font-size: 16px;
    }

    body.home .header .container {
        gap: 30px;
    }

    /* Mobile menu adjustments for very small screens */
    .mobile-menu__switcher {
        gap: 18px;
    }

    .mobile-menu__switcher a {
        font-size: 14px;
    }

    .mobile-menu ul li a {
        font-size: 16px;
    }

    .mobile-menu__close {
        top: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .mobile-menu__close svg {
        width: 24px;
        height: 24px;
    }

    .mobile-menu ul {
        gap: 15px;
    }

    .header__logo svg:not(.page-template-front-page .header__logo svg) {
        width: 210px;
    }

    .hamburger-line {
        width: 27px;
        height: 2px;
    }

    .mobile-menu-toggle {
        width: 30px;
        height: 30px;
    }

    .footer__icon svg {
        width: 90%;
    }

    .titleBG {
        padding: 0 10px 8px 10px;
    }

    .mobile-menu ul li a {
        font-size: 14px;
    }

    .video__button-text {
        font-size: 12px;
    }

    .titleBG::before {
        height: 23px;
    }

    a.btnStyle {
        font-size: 14px;
    }
}