
/* ===== GLOBAL ===== */
html { scroll-behavior: smooth; }

.page-content { padding-bottom: unset; }

.page-section { margin: 60px 0; }

.container-fluid { padding: unset; }

.content-list { max-width: 50vw; }

body.modal-active-x11 { overflow: hidden; }

/* ===== PIXEL DEBUG ===== */
/*.pixel-perfect-wrapper { position: relative; width: 1440px; margin: 0 auto; }*/

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 5208px;
    pointer-events: none;
    z-index: 10000;
    background-color: rgba(255,0,128,0.15);
    mix-blend-mode: multiply;
    display: none;
}

.pixel-perfect-overlay {
    position: absolute;
    top: -76px;
    left: 0;
    width: 1440px;
    height: 5208px;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
}

/* ===== HEADER ===== */
.hero-header {
    width: 100%;
    height: 85vh;
    /*min-height: 85vh;*/
    /*height: auto;*/
    box-sizing: border-box;
    padding: 40px 75px;
    display: block;
    margin: -60px auto 0;
    color: #fff;
    background:
            linear-gradient(0deg, rgba(0,0,0,0.64), rgba(0,0,0,0.64)),
            linear-gradient(180deg, rgba(25,67,66,0) 78.37%, #194342 100%),
            url(../images/header.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero-header_small {
    max-height: 900px;
    min-height: 460px;
    height: auto;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}


.hero-header_small .header-grid {
    position: relative;
    padding-top: 60px;
}


/*.hero-header__inner { max-width: 1440px; margin: auto; }*/

.header-grid {
    display: flex;
    /*grid-template-columns: 1fr 1fr;*/
    /*gap: 200px;*/
    justify-content: space-between;
}

.header-grid .go-back {
    position: absolute;
    left: 0px;
    top: 40px;
}

.header-grid .bottom_btn {
    position: relative;
    margin-top: 20px;
    margin-left: 0px;
}



.header-grid h1 {
    font-family: Bebas Neue;
    font-weight: 700;
    font-size: 80px;
    line-height: 1.1;
    color: #fff;
    padding: 40px 20px;
}

/* ===== HERO MENU (BASE) ===== */
.hero-menu {
    scroll-behavior: smooth;
    display: flex;
    gap: 12px;
    padding: 0 20px;
    padding-bottom: 30px;
    text-align: end;
    align-items: end;
    flex-direction: column;
    max-height: 65vh;
    -webkit-mask-image: linear-gradient(to bottom,transparent 0%,black 20px,black calc(100% - 20px),transparent 100%);
    mask-image: linear-gradient(to bottom,transparent 0%,black 20px,black calc(100% - 20px),transparent 100%);
}

.hero-menu a {
    opacity: 0.5;
    font-family: Bebas Neue;
    font-weight: 700;
    font-style: Bold;
    font-size: 28px;
    line-height: 110%;
    letter-spacing: 0%;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    padding: 5px 10px 0 10px;
}

.hero-menu a:hover {
    background-color: #1B614C;
    opacity: 1;
    color: #fff;
    box-shadow: 0px 1px 3px 1px #00000026;
    box-shadow: 0px 1px 2px 0px #0000004D;
}

.go-back {
    padding: 0 20px;
    font-size: 16px;
}

/* ===== MENU BX (ALL VARIANTS TOGETHER) ===== */
#menu-bx { max-width: 35vw; }

#menu-bx {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#menu-bx .hero-menu {
    display: flex;
    flex-direction: column;
    /*gap: 6px;*/
    /*max-height: 400px;*/
    overflow-y: auto;
    overflow-x: hidden;
    /*padding: 12px;*/
    box-sizing: border-box;
    color: #fff;
    /*border: 1px solid #ddd;*/
    border-radius: 8px;
    position: relative;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to bottom,transparent 0px,black 16px,black calc(100% - 16px),transparent 100%);
}

#menu-bx .hero-menu a {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    /*color: #333;*/
    text-decoration: none;
    border-radius: 6px;
    line-height: 1.3;
    transition: background 0.2s ease, outline 0.2s ease;
    position: relative;
    word-break: break-word;
}

/*#menu-bx .hero-menu a:hover { background: #f2f2f2; outline: 1px solid #ddd; }*/

#menu-bx .hero-menu::-webkit-scrollbar { width: 6px; }
#menu-bx .hero-menu::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* ===== BURGER ===== */
.burger-button-mob {
    font-family: Raleway;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 1%;
    display: none;
}

/* ===== SCROLL BUTTON ===== */
.scroll_top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.scroll_top.visible { opacity: 1; pointer-events: auto; }

/* ===== MODAL ===== */
#pobutton {}
#pobutton:hover {}

.mobile-menu-dialog {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
}

.mobile-menu-dialog::backdrop { background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }

.modal-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg,#f5f5f5 0%,#ffffff 100%);
}

.modal-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 2px solid #e33046;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.modal-title {
    font-family: Bebas Neue,Arial,sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #333;
    margin: 0;
    text-transform: uppercase;
}

.close-button {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-out;
    border-radius: 50%;
    outline: none;
}

.close-button:hover { color: #e33046; transform: scale(1.1); }
.close-button:focus-visible { outline: 2px solid #e33046; outline-offset: 2px; }

.buttons-container {
    flex: 1;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.button-svg {
    transition: all 0.3s ease-out;
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 328px;
    height: auto;
}

.button-svg path { fill: #e0e0e0; transition: fill 0.3s ease-out; }

.button-svg text {
    fill: #000;
    transition: fill 0.3s ease-out;
    font-family: Bebas Neue,Arial,sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.button-svg:hover path { fill: #e33046; }
.button-svg:hover text { fill: #fff; }

.mobile-menu-dialog[open] { animation: slideIn 0.3s ease-out; }
.mobile-menu-dialog.closing { animation: slideOut 0.3s ease-out; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== MEDIA ===== */



@media screen and (max-width: 1440px) {
    .container-fluid { padding: 0 20px; }
}

@media screen and (max-width: 1024px) {

    .header-grid .go-back {
        position: absolute;
        left: -10px;
        top: 15px;
    }



    .header-grid .bottom_btn {
        position: relative;
        margin-top: 20px;
        margin-left: 0px;
    }



    .header-grid h1 {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .hero-header_small {
        /*max-height: 300px;*/
        min-height: 260px;
    }

    #menu-bx { max-width: 90vw; }

    #menu-bx .hero-menu {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 10px;
        mask-image: linear-gradient(to right,transparent 0px,black 16px,black calc(100% - 16px),transparent 100%);
        /*align-items: center;*/
    }
    #menu-bx .hero-menu a { flex: 0 0 auto; min-width: 140px; white-space: normal; height: fit-content; text-align: center; width: auto;}

    #menu-bx .hero-menu::-webkit-scrollbar { height: 6px; }

    .content-list { max-width: unset; }

    .header-grid {
        /*grid-template-columns: unset; */
        flex-direction: column;
    }
    .hero-header { padding: 35px 15px 0 15px; height: auto; }
    .mgn_header { padding-bottom: unset; }

    .hero-menu {
        align-items: unset;
        flex-direction: row;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
        width: 100%;
        -webkit-mask-image: linear-gradient(to right,transparent 0%,black 20px,black calc(100% - 20px),transparent 100%);
        mask-image: linear-gradient(to right,transparent 0%,black 20px,black calc(100% - 20px),transparent 100%);
    }

    .menu-bx { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; margin: auto; }

    .header-grid h1 { font-size: 40px; }
    .hero-menu a { font-size: 20px; }

    .burger-button-mob {
        display: flex;
        font-size: 14px;
        margin-right: 15px;
        color: #F9F9F9;
        justify-content: end;
        /*padding: 30px 0;*/
    }
}

@media screen and (max-width: 1024px) {
    .hero-header,
    .hero-header__inner,
    .header-grid,
    #menu-bx {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .hero-menu {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
        width: 100%;
    }

    .hero-menu a { flex-shrink: 0; }
}

@media (min-width: 768px) {
    .mobile-menu-dialog {
        width: 90%;
        max-width: 500px;
        height: auto;
        max-height: 80vh;
        border-radius: 20px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .mobile-menu-dialog[open] { animation: fadeInScale 0.3s ease-out; }

    @keyframes fadeInScale {
        from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
        to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }
}
