* {
    padding: 0;
    margin: 0;
    color: aliceblue;
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #0c0c0c;
    overflow-x: hidden;
    position: relative;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe UI Bold';
    src: url('../fonts/Segoe UI Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe UI Bold italic';
    src: url('../fonts/Segoe UI Bold Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 70px;
    padding: 10px 50px 0 50px;
    position: relative;
    z-index: 1000;
}

.main {
    margin-top: 0;
    width: 100%;
    height: 860px;
    position: relative;
}

.main::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../img/back-for-main-section.png');
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(0) brightness(20%);
    mask-image: linear-gradient(180deg, #0c0c0c 70%, transparent 100%);
    opacity: .8;
    transition: filter .2s ease;
    z-index: 1;
}

.main > * {
    position: relative;
    z-index: 2;
}

.main-text-for-header {
    font-family: "Segoe UI Bold italic", sans-serif;
    font-size: 40px;
    margin-left: 0;
    color: #fff;
}

.header-log {
    display: flex;
    align-items: center;
    margin-right: 0;
}

.deposit-button {
    padding: 16px 20px;
    background-color: #E81C5A;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 0 25px #E81C5A59;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.deposit-button:hover {
    box-shadow: 0 0 16px #E81C5ABF;
    transform: translateY(-2px);
}

.main-panels {
    width: 1168px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    margin-top: 120px;
    transform: scale(1.15);
}

.panel {
    position: relative;
    border-radius: 10px;
    width: 224px;
    height: 600px;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.panelF {
    background-image: url('../img/back5Pas.png');
    background-size: cover;
    background-position: center;
}

.panelT {
    background-image: url('../img/back4Pas.png');
    background-size: cover;
    background-position: center;
}

.panelTh {
    background-image: url('../img/back3Pas.png');
    background-size: cover;
    background-position: center;
}

.panelForth {
    background-image: url('../img/back2Pas.png');
    background-size: cover;
    background-position: center;
}

.panelFif {
    background-image: url('../img/back1Pas.png');
    background-size: cover;
    background-position: center;
}

.panelF:hover {
    background-image: url('../img/back 5.png');
}

.panelF::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/back5PasP.png');
    background-position: 0 25px;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px;
    transition: background-position 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.panelF:hover::after {
    background-image: url('../img/Монтажная область 1.png');
    background-position: 0 0;
}

.panelT:hover {
    background-image: url('../img/back 4.png');
}

.panelT::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/back4PasP.png');
    background-position: 0 25px;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px;
    transition: background-position 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.panelT:hover::after {
    background-image: url('../img/Монтажная область 2.png');
    background-position: 0 0;
}

.panelTh:hover {
    background-image: url('../img/back 3.png');
}

.panelForth:hover {
    background-image: url('../img/back 2.png');
}

.panelForth::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/back2PasP.png');
    background-position: 0 25px;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.panelForth:hover::after {
    background-image: url('../img/Монтажная область 4.png');
    background-position: 0 0;
}

.panelFif:hover {
    background-image: url('../img/back 1.png');
}

.panelFif::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/back1PasP.png');
    background-position: 0 25px;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.panelFif:hover::after {
    background-image: url('../img/Монтажная область 5.png');
    background-position: 0 0;
}

.main-panels:has(> .panelTh:hover) > .panelF {
    background-image: url('../img/back 5.png');
}

.main-panels:has(> .panelTh:hover) > .panelF::after {
    background-image: url('../img/Монтажная область 1.png');
    background-position: 0 0;
}

.main-panels:has(> .panelTh:hover) > .panelT {
    background-image: url('../img/back 4.png');
}

.main-panels:has(> .panelTh:hover) > .panelT::after {
    background-image: url('../img/Монтажная область 2.png');
    background-position: 0 0;
}

.main-panels:has(> .panelTh:hover) > .panelForth {
    background-image: url('../img/back 2.png');
}

.main-panels:has(> .panelTh:hover) > .panelForth::after {
    background-image: url('../img/Монтажная область 4.png');
    background-position: 0 0;
}

.main-panels:has(> .panelTh:hover) > .panelFif {
    background-image: url('../img/back 1.png');
}

.main-panels:has(> .panelTh:hover) > .panelFif::after {
    background-image: url('../img/Монтажная область 5.png');
    background-position: 0 0;
}

.play-ic {
    width: 70px;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.desc-center {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 200;
    pointer-events: none;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.desc-p {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.panel:hover .desc-center {
    opacity: 1;
}

.panelTh .desc-center {
    opacity: 1;
}

.mobile-operator-button {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px 45px;
    background-color: #E81C5A;
    color: white;
    font-weight: 800;
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(232, 28, 90, 0.4);
    text-align: center;
    z-index: 10;
    transition: all 0.3s ease;
    max-width: 90%;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.mobile-operator-button:hover,
.mobile-operator-button:active {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: 0 15px 40px rgba(232, 28, 90, 0.6);
}

.mobile-operator-button .desc-p {
    font-size: 24px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.mobile-menu-wrapper {
    display: none;
    position: relative;
    z-index: 1001;
}

.burger-menu {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.burger-menu:hover {
    border-color: rgba(232, 28, 90, 0.5);
}

.burger-line {
    display: block;
    position: absolute;
    height: 2px;
    width: 20px;
    background: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.3s ease-in-out;
}

.burger-line:nth-child(1) {
    top: 13px;
}

.burger-line:nth-child(2) {
    top: 19px;
}

.burger-line:nth-child(3) {
    top: 25px;
}

.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0c0c0c;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    overflow: hidden;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0c0c0c;
}

.menu-header {
    position: relative;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-logo {
    font-family: "Segoe UI Bold italic", sans-serif;
    font-size: 32px;
    color: #fff;
    letter-spacing: 1px;
    position: relative;
}

.menu-close {
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: rgba(232, 28, 90, 0.2);
}

.close-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.close-line:first-child {
    transform: rotate(45deg);
}

.close-line:last-child {
    transform: rotate(-45deg);
}

.menu-content {
    position: relative;
    height: calc(100vh - 120px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.navigation-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateX(-50px);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.nav-item.visible {
    transform: translateX(0);
    opacity: 1;
}

.nav-item:hover {
    background: rgba(232, 28, 90, 0.05);
    border-color: rgba(232, 28, 90, 0.3);
    transform: translateX(5px);
}

.nav-item-number {
    font-size: 14px;
    font-weight: 700;
    color: #E81C5A;
    margin-right: 30px;
    min-width: 30px;
    opacity: 0.7;
}

.nav-item-content {
    flex: 1;
}

.nav-item-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.nav-item-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-item-arrow {
    color: #E81C5A;
    transform: translateX(5px);
}

.menu-footer {
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.3s;
}

.menu-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-block {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: rgba(232, 28, 90, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(232, 28, 90, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.contact-button {
    width: 50px;
    height: 50px;
    background: #E81C5A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #ff2c6d;
}

@media (max-width: 1400px) {
    .main-panels {
        transform: scale(0.9);
    }
}

@media (max-width: 1175px) {
    .main-panels {
        transform: scale(0.74);
        margin-top: 0;
    }
}

@media (max-width: 1150px) {
    .main-panels {
        display: none;
    }

    .mobile-operator-button {
        display: block;
    }

    .main::before {
        background-image: url('../img/backMob.png');
        mask-image: linear-gradient(180deg, #0c0c0c 90%, transparent 100%);
    }

    header {
        padding: 20px;
        height: auto;
    }

    .main-text-for-header {
        margin-left: 0;
        font-size: 32px;
    }

    .header-log {
        display: none;
    }

    .deposit-button {
        display: none;
    }

    .mobile-menu-wrapper {
        display: block;
    }

    .burger-menu {
        display: block;
    }

    .nav-item-title {
        font-size: 20px;
    }

    .menu-content {
        padding: 20px;
    }

    .menu-header {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-operator-button {
        padding: 25px 35px;
    }

    .mobile-operator-button .desc-p {
        font-size: 22px;
    }

    .main-text-for-header {
        font-size: 28px;
    }

    .nav-item {
        padding: 15px 20px;
    }

    .nav-item-title {
        font-size: 18px;
    }

    .contact-block {
        padding: 20px;
    }

    .contact-info h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .mobile-operator-button {
        padding: 20px 30px;
    }

    .mobile-operator-button .desc-p {
        font-size: 20px;
    }

    .main-text-for-header {
        font-size: 24px;
    }

    .nav-item {
        padding: 12px 15px;
    }

    .nav-item-title {
        font-size: 16px;
    }

    .nav-item-number {
        margin-right: 15px;
    }

    .menu-content {
        padding: 15px;
    }

    .contact-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .contact-button {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}