/* custom.css */

.navigation {
    padding-top: 0.9rem;
    padding-bottom: 0.5rem;
}

.navigation__logo,
.logo {
    display: flex;
    align-items: center;
}

.navigation__logo {
    margin-top: 0.45rem;
}

.logo__img {
    display: block;
    height: auto;
}

.preload__logo {
    height: auto;
}

.preload__items {
    gap: 0.75rem;
}

.preload__items .preload__item {
    width: 1.75rem;
    height: 1.75rem;
    background: url("../images/menu/item-decor.png") center/contain no-repeat !important;
    background-image: url("../images/menu/item-decor.png") !important;
}

.preload__items .preload__item::before,
.preload__items .preload__item::after {
    background: url("../images/menu/item-decor.png") center/contain no-repeat !important;
    background-image: url("../images/menu/item-decor.png") !important;
}

.scl_type_desk .scl__list {
    position: relative;
}

.scl_type_desk .scl__list::before {
    content: "";
    display: none;
}

.hero-fixed-logo {
    position: fixed;
    right: 6.5rem;
    top: 50vh;
    transform: translateY(-50%);
    width: 18rem;
    height: 18rem;
    background: url("../images/logo/logo.png") center/contain no-repeat;
    filter: drop-shadow(0 0.55rem 1.2rem rgba(0, 0, 0, 0.65));
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms ease, visibility 200ms ease;
}

@media (max-width: 767.9px) {
    .hero-fixed-logo {
        display: none;
    }
}

body.hero-logo-hidden .hero-fixed-logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero__simple {
    display: flex;
    justify-content: flex-start;
}

.hero__simple-title {
    font-size: clamp(1.6rem, 3.2vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.9rem 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(214, 177, 94, 0.35);
    box-shadow:
        0 1.1rem 2.4rem rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 767.9px) {
    .videobg {
        background: url("../images/videobg/video.png") center/cover no-repeat !important;
        background-image: url("../images/videobg/video.png") !important;
        background-position: 65% center !important;
    }

    section[data-section="hero"],
    #hero {
        background: url("../images/videobg/video.png") center/cover no-repeat !important;
        background-image: url("../images/videobg/video.png") !important;
        background-position: 65% center !important;
    }

    .videobg__container {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .videobg__image {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        background-position: 65% center !important;
    }

    .videobg__video {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

.videobg__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url("../images/videobg/video.png") center/cover no-repeat;
    z-index: 0;
}

@font-face {
  font-family: "Lineage 2 Font";
  src: url("../fonts/lineage-2-font.eot");
  src: url("../fonts/lineage-2-font.eot?#iefix") format("embedded-opentype"),
    url("../fonts/lineage-2-font.otf") format("opentype"),
    url("../fonts/lineage-2-font.svg") format("svg"),
    url("../fonts/lineage-2-font.ttf") format("truetype"),
    url("../fonts/lineage-2-font.woff") format("woff"),
    url("../fonts/lineage-2-font.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

#hero .videobg {
    background: url("../images/videobg/video.png") center/cover no-repeat !important;
    background-image: url("../images/videobg/video.png") !important;
}

#hero .videobg,
#hero .videobg__container {
    background-color: transparent !important;
}

#aboutclass {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.78) 100%),
        url("../images/485624.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: visible;
    position: relative;
    min-height: clamp(26rem, 62vh, 46rem);
}

#aboutclass::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

#aboutclass .aboutclass__bgvideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

#aboutclass .aboutclass__heading,
#aboutclass .aboutclass__btns,
#aboutclass .aboutclass__control,
#aboutclass .aboutclass__thumbs,
#aboutclass .aboutclass__media-title,
#aboutclass .aboutclass__overlay {
    display: none !important;
}

#aboutclass .container {
    position: relative;
    z-index: 2;
    overflow: visible !important;
    padding-top: clamp(2.75rem, 6vh, 5.25rem);
    padding-bottom: clamp(2.75rem, 6vh, 5.25rem);
}

#aboutclass .aboutclass {
    position: relative;
}

#aboutclass .aboutclass__box {
    display: none !important;
}

#aboutclass .aboutclass__lore {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 999999;
    pointer-events: none;
}

#aboutclass .aboutclass__lore-inner {
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    width: min(58rem, calc(100% - 2rem));
    padding: 1.5rem 1.75rem;
    border-radius: 1.1rem;
    color: rgba(243, 209, 138, 0.98);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.52));
    border: 1px solid rgba(214, 177, 94, 0.38);
    box-shadow:
        0 1.35rem 3.2rem rgba(0, 0, 0, 0.78),
        0 0 2.2rem rgba(214, 177, 94, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    text-shadow:
        0 0.25rem 1.05rem rgba(0, 0, 0, 0.95),
        0 0 1.8rem rgba(214, 177, 94, 0.18);
    will-change: transform, opacity, filter;
    animation:
        aboutclassLoreReveal 900ms ease-out both,
        aboutclassLoreFloat 6.5s ease-in-out 1.1s infinite,
        aboutclassLoreGlow 3.6s ease-in-out 1.1s infinite;
}

#aboutclass .aboutclass__lore-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 20% 0%, rgba(214, 177, 94, 0.18), rgba(0, 0, 0, 0) 55%),
        radial-gradient(circle at 80% 100%, rgba(243, 209, 138, 0.12), rgba(0, 0, 0, 0) 55%);
    opacity: 0.85;
    pointer-events: none;
    animation: aboutclassLoreShimmer 5.2s ease-in-out 0.8s infinite;
}

#aboutclass .aboutclass__lore-inner::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -60%;
    width: 55%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(243, 209, 138, 0.22), rgba(0, 0, 0, 0));
    transform: skewX(-18deg);
    opacity: 0.0;
    pointer-events: none;
    animation: aboutclassLoreSweep 4.6s ease-in-out 1.4s infinite;
}

#aboutclass .aboutclass__lore-title {
    font-family: "Lineage 2 Font", var(--font-3, "riverhack", serif);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

#aboutclass .aboutclass__lore-text {
    font-family: "Lineage 2 Font", var(--font-0, "Intro", "Open Sans", Tahoma, Arial, sans-serif);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.7;
}

.generous__heading .title,
.generous__heading .subtitle,
.generous__marker,
.generous__desc,
.thumbitem__name {
    font-family: "Lineage 2 Font", var(--font-0, "Intro", "Open Sans", Tahoma, Arial, sans-serif);
}

.generous__items {
    display: none !important;
}

.generous__images {
    position: relative;
    overflow: hidden;
}

.generous__framevideo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.generous__heading .headline {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.generous__heading {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.generous__heading .headline__dec {
    display: none;
}

.generous__heading .headline__dec_left {
    display: none;
}

.generous__heading .title {
    width: 100%;
    text-align: center;
}

.generous__midtext {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.generous__midtext-title {
    font-family: "Lineage 2 Font", var(--font-3, "riverhack", serif);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(243, 209, 138, 0.98);
    text-shadow:
        0 0.25rem 1.05rem rgba(0, 0, 0, 0.95),
        0 0 1.8rem rgba(214, 177, 94, 0.18);
    margin-bottom: 0.35rem;
}

.generous__midtext-desc {
    font-family: "Lineage 2 Font", var(--font-0, "Intro", "Open Sans", Tahoma, Arial, sans-serif);
    color: rgba(232, 209, 166, 0.92);
    line-height: 1.7;
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
}

section[data-section="faq"] {
    position: relative;
    background-image: url("../images/bg-def.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

section[data-section="faq"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

section[data-section="faq"] .container {
    position: relative;
}

section[data-section="faq"] .community__faq-title {
    font-family: "Lineage 2 Font", var(--font-3, "riverhack", serif);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes aboutclassLoreReveal {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
        filter: drop-shadow(0 0 0 rgba(214, 177, 94, 0));
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0.85rem 1.45rem rgba(0, 0, 0, 0.45));
    }
}

@keyframes aboutclassLoreFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes aboutclassLoreGlow {
    0%, 100% {
        border-color: rgba(214, 177, 94, 0.34);
        box-shadow:
            0 1.35rem 3.2rem rgba(0, 0, 0, 0.78),
            0 0 2.2rem rgba(214, 177, 94, 0.08),
            inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }
    50% {
        border-color: rgba(243, 209, 138, 0.44);
        box-shadow:
            0 1.5rem 3.55rem rgba(0, 0, 0, 0.82),
            0 0 3.1rem rgba(214, 177, 94, 0.16),
            inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }
}

@keyframes aboutclassLoreShimmer {
    0%, 100% {
        opacity: 0.35;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.85;
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes aboutclassLoreSweep {
    0% {
        opacity: 0;
        left: -60%;
    }
    20% {
        opacity: 0.85;
    }
    50% {
        opacity: 0.25;
        left: 120%;
    }
    100% {
        opacity: 0;
        left: 120%;
    }
}

@media (min-width: 768px) {
    #aboutclass .aboutclass__lore-inner {
        padding: 1.6rem 1.75rem;
    }
}

@media (max-width: 767.9px) {
    #aboutclass .aboutclass__serverdesc {
        margin-top: 0.85rem;
        padding: 0.95rem 1rem;
        font-size: 0.98rem;
    }
}

.hero__simple-title {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)),
        linear-gradient(180deg, #f3d18a 0%, #d6b15e 35%, #9b6d2a 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, text;
    -webkit-background-clip: padding-box, text;
    color: rgba(0, 0, 0, 0);
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0.25rem 1rem rgba(0, 0, 0, 0.9),
        0 0 1.4rem rgba(214, 177, 94, 0.22);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity, filter;
    animation:
        aboutclassLoreReveal 900ms ease-out both,
        aboutclassLoreFloat 6.5s ease-in-out 1.1s infinite,
        aboutclassLoreGlow 3.6s ease-in-out 1.1s infinite;
}

.hero__simple-title::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 20% 0%, rgba(214, 177, 94, 0.18), rgba(0, 0, 0, 0) 55%),
        radial-gradient(circle at 80% 100%, rgba(243, 209, 138, 0.12), rgba(0, 0, 0, 0) 55%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
    animation: aboutclassLoreShimmer 5.2s ease-in-out 0.8s infinite;
}

.hero__simple-title::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -60%;
    width: 55%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(243, 209, 138, 0.22), rgba(0, 0, 0, 0));
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: aboutclassLoreSweep 4.6s ease-in-out 1.4s infinite;
}

.hero__simple-title {
    z-index: 1;
}

.hero__content-text {
    font-family: "Lineage 2 Font", var(--font-3, "riverhack", serif);
    letter-spacing: 0.06em;
}

.footer__nav-dot {
    opacity: 0.35;
}

.footer__nav-item {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--l2-gold, #d6b15e) !important;
}

.footer__nav-item:hover,
.footer__nav-item:focus {
    color: #f3d18a !important;
    text-shadow: 0 0 1.2rem rgba(214, 177, 94, 0.25);
}

.footer__logo {
    filter: drop-shadow(0 0.65rem 1.4rem rgba(0, 0, 0, 0.75));
}

@media (min-width: 768px) {
    .hero__simple-title {
        margin-left: -110px !important;
    }

    .hero__content {
        margin-left: -110px !important;
    }
}

.instruction-overlay {
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: none;
}
.instruction-overlay--visible {
    display: block;
}
.instruction-overlay__background {
    background-color: #0008;
    width: 100%;
    height: 100%;
}
.instruction-overlay-content {
    position: absolute;
    z-index: 101;
    overflow-y: auto;
    background: linear-gradient(#5e1c0f, #952f1a);
    color: #efe3d7;
    font-size: 1.5rem;
    padding-left: 1.7rem;
    padding-right: 1.7rem;
    padding-top: 1rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 25rem;
    min-height: 20rem;
    max-height: 80vh;
    border-radius: 5%;
}
.instruction-overlay-content__note {
    font-family: cursive;
    background-color: #732618;
    padding: 5px;
    font-size: 0.8em;
    box-shadow: 2px 2px 15px #ca5b47;
    border-radius: 0.3em;
}
.instruction-overlay-content__close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    overflow: hidden;
    background-color: #d09444;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.instruction-overlay-content__close-btn::before,
.instruction-overlay-content__close-btn::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
}
.instruction-overlay-content__close-btn::before {
    transform: rotate(45deg) translateY(50%);
}
.instruction-overlay-content__close-btn::after {
    transform: rotate(-45deg) translateY(50%);
}

.feature__content_back {
    justify-content: center;
}

.generous__container {
    display: block;
    margin-top: 1rem;
}

.generous__tabs {
    text-align: center;
}

.generous__media {
    aspect-ratio: 16 / 9;
    height: auto;
    width: auto;
    max-height: 56vh;
    margin: auto;
}

.generous__items {
    align-items: flex-start;
}

.feature__content_front {
    justify-content: center;
    padding-top: 10.375rem;
}

.prize__heading {
    font-size: calc(0.9rem * var(--prize-scale));
}

.prize__heading:after {
    background-size: 100% 150%;
}

/* ========================================
   FIX: Горизонтальная прокрутка кнопок-селекторов на мобильных
   Проблема: 6 кнопок не влезают на узких экранах
   Решение: Горизонтальный скролл
   ======================================== */

@media (max-width: 1199.9px) {
    .generous__items {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 6px !important;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
        scroll-behavior: smooth;
    }

    .generous__items::-webkit-scrollbar {
        height: 6px;
    }

    .generous__items::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .generous__items::-webkit-scrollbar-thumb {
        background: rgba(255, 215, 0, 0.5);
        border-radius: 3px;
    }

    .generous__items::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 215, 0, 0.8);
    }

    .generous__thumb {
        flex-shrink: 0 !important; /* Не сжимаем кнопки */
        min-width: auto !important;
    }

    .instruction-overlay-content {
        font-size: 1.2rem;
    }

    .generous__media {
        transform: scale(1);
    }
}

/* Для очень маленьких экранов - уменьшаем кнопки */
@media (max-width: 539.9px) {
    .generous__thumb {
        transform: scale(0.9) !important;
    }

    .instruction-overlay-content {
        font-size: 1rem;
        width: 17rem;
    }
}
