:root {
    /* Цвета */
    --color-white: #FFFFFF;
    --color-primary: #FF3600;
    --color-primary-light: #FFE5DE;
    --color-primary-dark: #AF2500;
    --color-black-dark: #15100F;
    --color-black: #1C1716;
    --color-green-light: #E4F9D4;
    --color-green: #6EA844;
    --color-green-light-x: #cdf7ac;
    --color-green-dark: #558731;
    --color-yellow: #D89B47;
    --color-blue: #5865F2;
    --color-brown: #423533;
    
    /* Скругления */
    --radius: 8px;
    --radius-medium: 8px;
    --radius-small: 5px;

    /* Толщина */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* Шрифты и размеры */
    --font-main: 'Roboto', sans-serif;
    --font-action: 'Arial', sans-serif;
    --font-size-base: 16px;
    --font-size-h1: 70px;
    --font-size-h2: 28px;
    --font-size-h3: 20px;
    --font-size-small: 14px;

    --bs-gutter-x: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-black-dark);
    color: var(--color-white);
}

a {
    color: #ffffff80;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

a:active {
    color: var(--color-primary);
}

a:visited {
    color: var(--color-primary);
}

span {
    font-family: var(--font-main);
}

img {
    max-width: 100%;
    height: 100%;
}

p {
    margin-bottom: 0;
    line-height: normal;
}

div {
    line-height: normal;
}

.noise {
    position: fixed;
    z-index: 1060;
    pointer-events: none;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background: transparent url('http://assets.iceable.com/img/noise-transparent.png') repeat 0 0;
    background-repeat: repeat;
    opacity: .3;
    inset: 0;
    visibility: visible;
}

.header {
    padding: 15px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--color-primary-dark);
    position: relative;  
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #15100fe3;
    backdrop-filter: blur(14px) saturate(100%);
      -webkit-backdrop-filter: blur(14px) saturate(100%);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 1280px;
    justify-content: space-between;
    padding: 0 20px;
}

.header-wrapper {
    display: flex;
    gap: 10px;
}

.header-nav {
    display: flex;
    margin-left: 47px;
    gap: 40px;
    align-items: center;
}

.header-nav a {
    color: #FFFFFF;
}

.hader-user-avatar {
    width: 49px;
    height: 49px;
    border-radius: var(--radius-small);
}

.logo {
    height: 49px;
    width: 135px;
    position: relative;
}

.logo-light {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    width: 700px;
    height: 85px;
    top: -20px;
    left: -260px;
  }
  
.logo-light::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 55, 0, 0.20) 0%, rgba(255, 54, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.nav-item {
    color: var(--color-white);
    text-decoration: none;
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-base);
    text-transform: uppercase;
    transition: color 0.3s ease;

    &:hover {
        color: var(--color-primary);
    }
}

.header-wrapper {
    cursor: pointer;
    position: relative;
}

.profile-dropdown {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.header-profile-user {
    display: flex;
    flex-direction: column;
}

.header-profile-username {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-black);
    color: var(--color-white);
}

.header-profile-balance {
    display: flex;
    flex-direction: row;
    gap: 3px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    align-items: center;
}

.header-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    top: 150%; 
    right: 0;
    background-color: #15100f;
    border-radius: var(--radius-medium);
    padding: 5px;
    border: none;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: -50;
    will-change: backdrop-filter;

    &.notification {
        width: 350px;
    }

    &.profile {
        min-width: 250px;
    }

    &.header-dropdown-menu .dropdown-item {
        display: block;
        background-color: #A1A1A120;
        color: #fff;
        padding: 16px 15px;
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-black);
        text-decoration: none;
        transition: background 0.2s;
        text-transform: uppercase;
    }

    &.header-dropdown-menu .dropdown-item:last-child {
        background-color: #FF360020;
        border-radius: 0 0 4px 4px;
    }

    &.header-dropdown-menu .dropdown-item:hover {
        background-color: var(--color-primary);
        color: #fff;
    }

    &.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.header-dropdown-menu.dropdown-item {
    display: block;
    background-color: #A1A1A120;
    color: #fff;
    padding: 16px 15px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-black);
    text-decoration: none;
    transition: background 0.3s ease;
    text-transform: uppercase; 
}


.header-dropdown-top {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 15px;
    border-radius: 4px 4px 0 0;
}

.header-dropdown-pofile-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    z-index: 0;
    opacity: 0.5;
}

.header-dropdown-user {
    display: flex;
    flex-direction: row;
    position: relative; 
    z-index: 1;
    align-items: center;
    gap: 10px;
}

.header-dropdown-userinfo {
    display: flex;
    max-width: 300px;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;

    & h4 {
        margin-bottom: 0px;
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-black);
    }

    & p {
        margin-bottom: 0px;
        font-size: 13px;
        font-weight: var(--font-weight-medium);
        color: #ffffff80;
    }
}

.hader-button-notification {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff10;
    width: 49px;
    height: 49px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: background-color 0.3s ease;

    &:hover {
        background-color: var(--color-primary);
    }
}

.badge-notification {
    display: flex;
    position: absolute;
    background-color: #ff3600;
    border-radius: 100px;
    width: 20px;
    height: 20px;
    bottom: 23px;
    right: 23px;
    align-items: center;
    justify-content: center;
    border: solid 3px #ff977b59;
    font-size: 13px;
    font-weight: var(--font-weight-black);
    animation: notification-marker-blink 2s infinite ease-in-out;
}

p.top-dropdown-notification{
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    margin-bottom: 0;
    padding: 5px;
}

.dropdown-notification-list {
    display: flex;
    flex-direction: column;
    gap: 5px;

    & a.button-apply {
        display: flex;
        gap: 5px;
        color: #fff;
        padding: 16px 15px;
        background-color: #ffffff10;
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-black);
        border-radius: var(--radius-small);
        width: 100%;
        transition: background-color 0.3s ease;
        text-transform: uppercase;
        align-items: center;
        justify-content: center;
    }

    & a.button-apply:hover {
        background-color: var(--color-primary);
    }
}

.dropdown-notification-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff10;
    padding: 15px;
    border-radius: var(--radius-small);
    font-size: var(--font-size-base);
    color: var(--color-white);

    &:visited {
        color: var(--color-white);
    }

    & span {
        color: #ffffff80;
        font-size: 13px;
    }

    &.danger {
        background: linear-gradient(100deg,rgba(255, 42, 0, 0.433) 0%, rgba(255, 42, 0, 0) 100%);
    }

    &.success {
        background: linear-gradient(100deg,rgba(143, 198, 47, 0.549) 0%, rgba(255, 42, 0, 0) 100%);
    }

    &.warning {
        background: linear-gradient(100deg,rgba(245, 210, 84, 0.504) 0%, rgba(255, 42, 0, 0) 100%);
    }

    &.info {
        background: linear-gradient(100deg,rgba(47, 178, 198, 0.534) 0%, rgba(255, 42, 0, 0) 100%);
    }
}

@keyframes notification-marker-blink {
    0% {
        border: solid 3px #ff977b59;
    }   
    25% {
        border: solid 3px #ff987b93;
    }
    50% {
        border: solid 3px #ff977b59;
    }
    75% {
        border: solid 3px #ff987b93;
    }
    100% {
        border: solid 3px #ff977b59;
    }
}

a.login-btn {
    width: 128px;
    height: 49px;
    border-radius: var(--radius-small);
    align-content: center;
    text-align: center;
    text-transform: uppercase;
    background: var(--color-green);
    color: var(--color-green-light);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: background 0.3s ease;

    &:hover {
        background: var(--color-green-dark);
    }
}

a.mobile-login-btn {
    width: 100%;
    height: 49px;
    border-radius: var(--radius-small);
    align-content: center;
    text-align: center;
    text-transform: uppercase;
    background: var(--color-green);
    color: var(--color-green-light);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: background 0.3s ease;

    &:hover {
        background: var(--color-green-dark);
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
    z-index: 1050;

    &:hover {
        color: var(--color-primary);
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #15100fe3;
    backdrop-filter: blur(14px) saturate(100%);
      -webkit-backdrop-filter: blur(14px) saturate(100%);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-side-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.mobile-menu-logo {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 55, 0, 0.1);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.mobile-account-content {
    display: flex;
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
}

div .mobile-nav-item {
    color: var(--color-white);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 18px;
    text-transform: uppercase;
    padding: 18px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-item:hover {
    color: var(--color-primary);
    background-color: rgba(255, 55, 0, 0.05);
    border-left-color: var(--color-primary);
    transform: translateX(5px);
}

.mobile-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    font-size: 19px;
    line-height: 1;
    flex-shrink: 0; 
}

.wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1280px;
    padding: 0 20px;
}

.top-container {
    position: relative;
    height: 65vh;
    top: -90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.251) 10% , var(--color-black-dark) 100%);

    & video {
        min-height: 100%;
        min-width: 100%;
        position: absolute;
        z-index: -1;
    }
}

.title-top {
    font-size: var(--font-size-h1);
    text-transform: uppercase;
    font-weight: var(--font-weight-black);
}

.server-info-wrapper {
    display: flex;
    gap: 13px;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ffffff25;
    background-color: #15100f95;
    backdrop-filter: blur(14px) saturate(100%);
      -webkit-backdrop-filter: blur(14px) saturate(100%);
    padding: 6px 15px;
    border-radius: 100px;
    font-size: 16px;
    
}

.server-info:has(span) {
    padding-left: 8px;
  }

.top-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.connect-btn {
    padding: 25px 35px;
    border-radius: var(--radius-small);
    border: none;        
    background-image:
    linear-gradient(var(--color-primary)),
    linear-gradient(to right, var(--color-primary) 0%, #ff370075 50%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    color: #FFE5DE;
    font-family: var(--font-action);
    font-weight: var(--font-weight-black);
    font-size: 24px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: normal;
    text-transform: uppercase; 
}

.connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 45px;
    transform: skewX(-45deg);
    left: -150%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
    animation: button-shine 3s infinite linear;
    animation-fill-mode: forwards;
}

@keyframes button-shine {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 55, 0, 0.3);
    color: var(--color-white);
}

.connect-btn:hover::before {
    animation-duration: 3s;
}

.connect-server {
    display: flex;
    gap: 27px;
    align-items: center;
}

.connect-server-text {
    font-size: 20px;
    font-weight: var(--font-weight-normal);
    color: #ffffff80;
}

.online-marker {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: online-marker-blink 2s infinite ease-in-out;
}

@keyframes online-marker-blink {
    0% {
        opacity: 1;
    }   
    25% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    75% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.card-container {
    position: relative;
    top: -110px;
}

.slide-container {
    max-width: 1120px;
    width: 100%;
    padding: 40px 0;
}

.slide-content { 
    overflow: hidden;
    height: 440px;
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

.overlay::before, .overlay::after {
    content: '';
    position: absolute;
    right: 0;
    height: 40px;
    width: 40px;
}

.menu-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card-wrapper {
    width: calc((100% - 40px) / 3);
    flex-shrink: 0;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 37px;
    cursor: pointer;
    border-radius: var(--radius-medium);
    overflow: hidden;
    position: relative;
}

.card-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: inherit;
    transition: transform 0.6s ease;
    z-index: -1;
}

.card-wrapper:hover::before {
    transform: scale(1.1);
}

.card-category {
    display: flex;
    gap: 10px;
    text-transform: uppercase;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-black);
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;

    &.card-info h3 {
        text-transform: uppercase;
        font-size: 33px;
        font-weight: var(--font-weight-black);
        color: var(--color-white);
        word-break: word-wrap;
    }

    &.card-info p {
        font-size: 18px;
        font-weight: var(--font-weight-normal);
        color: #ffffff80;
        word-break: word-wrap;
    }
}

.footer {
    display: flex;
    background: #120E0D;
    padding: 35px 0px 35px 0px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}

.footer-top-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 33px;
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    color: #ffffff80;
}

.footer-wrapper-info {
    width: 60%;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    font-weight: var(--font-weight-normal);
    color: #ffffff80;
}

.footer-link {
    display: flex;
    gap: 30px;
    font-size: 13px;
    font-weight: var(--font-weight-normal);
    color: #ffffff80;
    text-decoration: none;
}

.footer-social-link {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.footer-social-link a {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-small);
    background: var(--color-black);
    color: var(--color-brown);
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;

    &:hover {
        background: var(--color-primary);
        color: var(--color-primary-light);
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .header-container {
        max-width: 100%;
        gap: 30px;
        padding: 0 20px;
    }

    .header-nav {
        gap: 25px;
        margin-left: 25px;
    }

    .wrapper {
        padding: 0 20px;
    }

    .title-top {
        font-size: 50px;
        line-height: 1.1;
    }

    .top-container {
        padding: 200px 0 150px 0;
    }

    .card-wrapper {
        width: calc((100% - 20px) / 2);
    }

    .card-title {
        font-size: 30px;
    }

    .connect-btn {
        font-size: 20px;
        padding: 20px 30px;
    }

    .connect-server-text {
        font-size: 18px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        gap: 20px;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .login-btn {
        display: none;
    }


    .top-container {
        top: -70px;
        padding: 150px 0 100px 0;
    }

    .title-top {
        font-size: 38px;
        line-height: 1.2;
        text-align: center;
    }

    .server-info-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .server-info {
        font-size: 14px;
        padding: 6px 15px;
    }

    .connect-server {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .connect-btn {
        font-size: 18px;
        padding: 18px 25px;
        width: 100%;
        max-width: 280px;
    }

    .connect-server-text {
        font-size: 16px;
    }

    .card-container {
        top: -80px;
    }

    .menu-content {
        flex-direction: column;
    }

    .card-wrapper {
        width: 100%;
        height: 300px;
    }

    .card-info {
        gap: 5px;
    }

    .card-title {
        font-size: 34px;
        line-height: 1.2;
    }

    .card-description {
        font-size: 16px;
    }

    .slider-controls {
        margin-top: 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-track {
        gap: 0;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        text-align: center;
    }

    .footer-top-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-wrapper-info {
        font-size: 13px;
        width: 90%;
    }

    .footer-link {
        flex-direction: row;
        gap: 15px;
        text-align: center;
    }

    .footer-social-link {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {

    .header-container {
        padding: 0 10px;
    }

    .logo {
        height: 35px;
        width: 95px;
    }

    .login-btn {
        width: 90px;
        height: 35px;
        font-size: 12px;
    }

    .wrapper {
        padding: 0 10px;
    }

    .title-top {
        font-size: 28px;
        line-height: 1.1;
    }

    .top-container {
        padding: 120px 0 80px 0;
    }

    .connect-btn {
        font-size: 16px;
        padding: 15px 20px;
    }

    .connect-server-text {
        font-size: 14px;
    }

    .card-wrapper {
        height: 250px;
        padding: 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 14px;
    }

    .card-category {
        font-size: 14px;
    }

    .footer {
        padding: 25px 0;
    }

    .footer-top-info p {
        font-size: 12px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    .footer-link {
        font-size: 11px;
        gap: 10px;
    }

    .footer-social-link a {
        width: 40px;
        height: 40px;
    }
}


@media screen and (max-width: 768px) {
    .slide-content { margin: 0 0px; }
}
