/* ================================================= */
/* LIMBUS OF SOULS — MAIN CSS / FINAL RESPONSIVE CLEAN */
/* Desktop + wide monitors + tablet + mobile */
/* ================================================= */

/* ============================= */
/* GLOBAL TOKENS */
/* ============================= */

:root {
    --los-bg: #03060a;
    --los-bg-soft: #070b10;
    --los-text: #c8cbd0;

    --los-font-title: Georgia, "Times New Roman", serif;
    --los-font-body: Georgia, "Times New Roman", serif;

    --los-content-width: 1840px;
    --los-section-x: clamp(28px, 4vw, 86px);
    --los-section-bottom: clamp(44px, 5vh, 86px);

    /* ONE GLOBAL TITLE SYSTEM FOR ALL INNER SECTIONS */
    --los-title-size: clamp(72px, 6.3vw, 128px);
    --los-title-zone-height: clamp(190px, 22vh, 300px);
    --los-title-content-gap: clamp(20px, 2.4vh, 36px);

    --los-body-size: clamp(16px, 1vw, 19px);
    --los-small-size: clamp(15px, 0.95vw, 18px);
}

/* ============================= */
/* BASE */
/* ============================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    background: var(--los-bg) !important;
    color: var(--los-text);
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

html {
    background-color: var(--los-bg) !important;
    overscroll-behavior-y: none;
}

body {
    font-family: var(--los-font-body);
    background-color: var(--los-bg) !important;
    -webkit-overflow-scrolling: touch;
}

body,
#page,
.site,
.site-content,
.site-main,
.los-landing {
    background: var(--los-bg) !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

img {
    height: auto;
}

.los-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--los-bg);
    color: var(--los-text);
    overflow-x: hidden;
    overflow-y: visible;
}

.los-screen {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ================================================= */
/* UNIVERSAL SECTION LAYOUT */
/* ================================================= */

/*
   Every inner section must use:

   <section id="..." class="los-section los-screen ... los-section-layout">
       <div class="los-section-shell">
           <h2 class="los-section-title">TITLE</h2>
           <div class="los-section-content">...</div>
       </div>
   </section>
*/

.los-section-layout {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 var(--los-section-x) var(--los-section-bottom);
    background: var(--los-bg);
    overflow-x: hidden;
    overflow-y: visible;
}

.los-section-layout > .los-section-shell {
    width: min(100%, var(--los-content-width));
    min-height: calc(100dvh - var(--los-section-bottom));
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--los-title-zone-height) minmax(0, auto);
    align-items: start;
    justify-items: center;
    overflow-x: hidden;
    overflow-y: visible;
}

.los-section-title {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: end;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    margin: 0 0 var(--los-title-content-gap);
    padding: 0;
    text-align: center;
    font-family: var(--los-font-title);
    font-size: var(--los-title-size);
    line-height: 0.78;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    transform: none;
    pointer-events: none;
}

.los-section-content {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.los-text {
    margin: 0;
    font-family: var(--los-font-body);
    font-size: var(--los-body-size);
    line-height: 1.65;
    letter-spacing: 0.02em;
    color: rgba(200, 203, 208, 0.92);
}

.los-text + .los-text {
    margin-top: 16px;
}

/* ================================================= */
/* MAIN NAVIGATION — FINAL CLEAN */
/* ================================================= */

:root {
    --los-nav-height: 58px;
}

/* HEADER */
#losMainNav.los-main-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;

    width: 100%;
    height: var(--los-nav-height);

    background: rgba(2, 5, 9, 0.52) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: none !important;
}

#losMainNav.los-main-nav.is-scrolled {
    background: rgba(2, 5, 9, 0.86) !important;
    border-bottom-color: rgba(255, 255, 255, 0.09) !important;
}

/* INNER */
#losMainNav .los-nav-inner {
    width: min(100%, 1840px);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--los-section-x);

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}

/* LOGO */
#losMainNav .los-nav-logo {
    flex: 0 0 auto;

    color: rgba(235, 238, 245, 0.9) !important;
    text-decoration: none !important;

    font-family: var(--los-font-title);
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    white-space: nowrap;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* DESKTOP LINKS */
#losMainNav .los-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: clamp(18px, 1.55vw, 34px);
    margin-left: auto;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#losMainNav .los-nav-links a {
    position: relative;

    color: rgba(220, 226, 238, 0.62) !important;
    text-decoration: none !important;

    font-family: var(--los-font-body);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    transition: color 0.22s ease;
}

#losMainNav .los-nav-links a::before {
    display: none !important;
    content: none !important;
}

#losMainNav .los-nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: rgba(220, 226, 238, 0.82) !important;
    transform: translateX(-50%);

    transition: width 0.22s ease;
}

#losMainNav .los-nav-links a:hover,
#losMainNav .los-nav-links a.is-active {
    color: rgba(255, 255, 255, 0.95) !important;
}

#losMainNav .los-nav-links a:hover::after,
#losMainNav .los-nav-links a.is-active::after {
    width: 100%;
}

/* DESKTOP: BURGER OFF */
#losMainNav .los-nav-toggle {
    display: none !important;
}

/* ================================================= */
/* NAV — TABLET / MOBILE */
/* ================================================= */

@media (max-width: 900px) {
    :root {
        --los-nav-height: 62px;
    }

    #losMainNav .los-nav-inner {
        padding: 0 20px;
    }

    #losMainNav .los-nav-logo {
        font-size: 15px;
        letter-spacing: 0.12em;
    }

    /* BURGER BUTTON — fully reset */
    #losMainNav button.los-nav-toggle,
    #losMainNav .los-nav-toggle {
        position: relative !important;

        display: block !important;

        width: 42px !important;
        height: 42px !important;

        padding: 0 !important;
        margin: 0 !important;

        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;

        border: none !important;
        outline: none !important;
        box-shadow: none !important;

        border-radius: 0 !important;

        appearance: none !important;
        -webkit-appearance: none !important;

        cursor: pointer !important;
    }

    #losMainNav button.los-nav-toggle:hover,
    #losMainNav button.los-nav-toggle:focus,
    #losMainNav button.los-nav-toggle:active,
    #losMainNav .los-nav-toggle:hover,
    #losMainNav .los-nav-toggle:focus,
    #losMainNav .los-nav-toggle:active {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;

        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* remove theme pseudo-elements */
    #losMainNav .los-nav-toggle::before,
    #losMainNav .los-nav-toggle::after {
        display: none !important;
        content: none !important;
    }

    /* BURGER LINES */
    #losMainNav .los-nav-toggle span {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;

        display: block !important;

        width: 24px !important;
        height: 1px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: rgba(235, 238, 245, 0.86) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        transform-origin: center center !important;

        transition:
            transform 0.22s ease,
            opacity 0.18s ease;
    }

    #losMainNav .los-nav-toggle span:nth-child(1) {
        transform: translate(-50%, -8px) !important;
    }

    #losMainNav .los-nav-toggle span:nth-child(2) {
        transform: translate(-50%, 0) !important;
    }

    #losMainNav .los-nav-toggle span:nth-child(3) {
        transform: translate(-50%, 8px) !important;
    }

    /* OPEN STATE — clean cross */
    #losMainNav.is-open .los-nav-toggle span:nth-child(1) {
        transform: translate(-50%, 0) rotate(45deg) !important;
    }

    #losMainNav.is-open .los-nav-toggle span:nth-child(2) {
        opacity: 0 !important;
    }

    #losMainNav.is-open .los-nav-toggle span:nth-child(3) {
        transform: translate(-50%, 0) rotate(-45deg) !important;
    }

    /* DROPDOWN */
    #losMainNav .los-nav-links {
        position: fixed;
        top: var(--los-nav-height);
        left: 0;

        width: 100%;
        margin: 0 !important;
        padding: 24px 20px 28px;

        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;

        background: rgba(2, 5, 9, 0.96) !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: none !important;

        box-sizing: border-box;

        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);

        transition:
            opacity 0.22s ease,
            transform 0.22s ease;
    }

    #losMainNav.is-open .los-nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    #losMainNav .los-nav-links a {
        font-family: var(--los-font-title);
        font-size: 26px;
        line-height: 1.1;
        letter-spacing: 0.16em;
        text-align: center;

        color: rgba(220, 226, 238, 0.56) !important;

        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #losMainNav .los-nav-links a:hover,
    #losMainNav .los-nav-links a.is-active {
        color: rgba(245, 248, 255, 0.92) !important;
    }

    #losMainNav .los-nav-links a::after {
        bottom: -8px;
        height: 1px;
        background: rgba(235, 238, 245, 0.82) !important;
    }
}

/* ================================================= */
/* NAV — SMALL MOBILE */
/* ================================================= */

@media (max-width: 480px) {
    #losMainNav .los-nav-inner {
        padding: 0 16px;
    }

    #losMainNav .los-nav-logo {
        font-size: 13px;
        letter-spacing: 0.11em;
    }

    #losMainNav button.los-nav-toggle,
    #losMainNav .los-nav-toggle {
        width: 40px !important;
        height: 40px !important;
    }

    #losMainNav .los-nav-toggle span {
        width: 23px !important;
    }

    #losMainNav .los-nav-links a {
        font-size: 24px;
    }
}

/* ================================================= */
/* HOME */
/* ================================================= */

#home.limbus-hero {
    --hero-logo-width: 76vw;
    --hero-logo-top: 22px;

    --hero-circle-width: 88vw;
    --hero-circle-top: 47%;

    --hero-left-x: 36%;
    --hero-left-bottom: 0vh;
    --hero-left-height: 145vh;

    --hero-center-x: 50%;
    --hero-center-bottom: -9vh;
    --hero-center-height: 192vh;

    --hero-right-x: 61%;
    --hero-right-bottom: -7vh;
    --hero-right-height: 145vh;


    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 820px;
    overflow: hidden;
    background: var(--los-bg);
    isolation: isolate;
}

/* full-layer wrappers */
#home .parallax-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform;
}

/* layers */
#home .parallax-circle {
    z-index: 1;
}

#home .hero-logo {
    z-index: 2;
}

#home .parallax-left,
#home .parallax-right {
    z-index: 4;
}

#home .parallax-center {
    z-index: 5;
}

#home .parallax-wrapper img,
#home .hero-logo {
    position: absolute;
    display: block;
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* LOGO */
#home .hero-logo {
    top: var(--hero-logo-top);
    left: 50%;
    width: var(--hero-logo-width);
    max-width: none;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}

/* RITUAL CIRCLE */
#home .art-circle {
    top: var(--hero-circle-top);
    left: 50%;
    width: var(--hero-circle-width);
    min-width: var(--hero-circle-width);
    transform: translate(-50%, -50%);
    opacity: 0.56;
    mix-blend-mode: screen;
}

/* LEFT GHOST */
#home .art-char-left {
    left: var(--hero-left-x);
    bottom: var(--hero-left-bottom);
    height: var(--hero-left-height);
    transform: translateX(-50%);
}

/* CENTER GHOST */
#home .art-char-center {
    left: var(--hero-center-x);
    bottom: var(--hero-center-bottom);
    height: var(--hero-center-height);
    transform: translateX(-50%);
}

/* RIGHT GHOST */
#home .art-char-right {
    left: var(--hero-right-x);
    bottom: var(--hero-right-bottom);
    height: var(--hero-right-height);
    transform: translateX(-50%);
}

/* ================================================= */
/* HOME — TABLET ONLY FINAL TWEAK */
/* 768px–991px only, mobile не трогаем */
/* ================================================= */

@media (min-width: 768px) and (max-width: 991px) {
    #home.limbus-hero {
        height: 100svh !important;
        min-height: 680px !important;
        max-height: 100svh !important;
        overflow: hidden !important;
    }

    /* лого чуть ниже и чуть спокойнее */
    #home.limbus-hero .hero-logo {
        top: 76px !important;
        left: 50% !important;
        width: 84vw !important;
        max-width: none !important;
        transform: translateX(-50%) !important;
        z-index: 2 !important;
    }

    /* круг оставляем сзади, чуть ниже */
    #home.limbus-hero .art-circle {
        top: 53% !important;
        left: 50% !important;
        width: 150vw !important;
        min-width: 150vw !important;
        transform: translate(-50%, -50%) !important;
        opacity: 0.32 !important;
        z-index: 1 !important;
    }

    /* левый призрак вытаскиваем из-за центрального */
    #home.limbus-hero .art-char-left {
        top: 36vh !important;
        bottom: auto !important;
        left: 18% !important;
        height: 40vh !important;
        width: auto !important;
        transform: translateX(-50%) !important;
        z-index: 4 !important;
    }

    /* центральный оставляем главным */
    #home.limbus-hero .art-char-center {
        top: 30vh !important;
        bottom: auto !important;
        left: 50% !important;
        height: 58vh !important;
        width: auto !important;
        transform: translateX(-50%) !important;
        z-index: 5 !important;
    }

    /* правого отодвигаем дальше от центра */
    #home.limbus-hero .art-char-right {
        top: 36vh !important;
        bottom: auto !important;
        left: 84% !important;
        height: 40vh !important;
        width: auto !important;
        transform: translateX(-50%) !important;
        z-index: 4 !important;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    #home.limbus-hero {
        height: 100svh !important;
        min-height: 620px !important;
        max-height: 100svh !important;
        overflow: hidden !important;
    }

    #home.limbus-hero .hero-logo {
        top: 52px !important;
        left: 50% !important;
        width: 92vw !important;
        max-width: none !important;
        transform: translateX(-50%) !important;
        z-index: 2 !important;
    }

    #home.limbus-hero .art-circle {
        top: 52% !important;
        left: 50% !important;
        width: 205vw !important;
        min-width: 205vw !important;
        transform: translate(-50%, -50%) !important;
        opacity: 0.24 !important;
        z-index: 1 !important;
    }

    /* все 3 призрака видны */
    #home.limbus-hero .art-char-left {
        top: 33vh !important;
        bottom: auto !important;
        left: 18% !important;
        height: 34vh !important;
        width: auto !important;
        transform: translateX(-50%) !important;
        z-index: 4 !important;
    }

    #home.limbus-hero .art-char-center {
        top: 28vh !important;
        bottom: auto !important;
        left: 50% !important;
        height: 56vh !important;
        width: auto !important;
        transform: translateX(-50%) !important;
        z-index: 5 !important;
    }

    #home.limbus-hero .art-char-right {
        top: 33vh !important;
        bottom: auto !important;
        left: 82% !important;
        height: 34vh !important;
        width: auto !important;
        transform: translateX(-50%) !important;
        z-index: 4 !important;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    #home.limbus-hero .hero-logo {
        top: 54px !important;
        width: 92vw !important;
    }

    #home.limbus-hero .art-char-left {
        top: 34vh !important;
        left: 17% !important;
        height: 31vh !important;
    }

    #home.limbus-hero .art-char-center {
        top: 29vh !important;
        left: 50% !important;
        height: 53vh !important;
    }

    #home.limbus-hero .art-char-right {
        top: 34vh !important;
        left: 83% !important;
        height: 31vh !important;
    }
}

/* ================================================= */
/* ABOUT */
/* ================================================= */

#about.los-about {
    --about-content-width: min(100%, 1500px);
    --about-main-gap: clamp(54px, 5vw, 96px);
    --about-text-width: 700px;
    --about-image-width: 720px;
    --about-news-top: 54px;
    --about-news-card-width: clamp(220px, 16vw, 300px);
}

#about .los-section-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* общий центрированный контейнер */
#about .los-about-main {
    width: var(--about-content-width);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, var(--about-text-width)) minmax(0, var(--about-image-width));
    gap: var(--about-main-gap);

    align-items: center;
    justify-content: center;
}

/* текст */
#about .los-about-text {
    width: 100%;
    max-width: var(--about-text-width);
    justify-self: end;
}

/* картинка / слайдер */
#about .los-about-slider {
    width: 100%;
    max-width: var(--about-image-width);
    justify-self: start;
}

#about .los-slider-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

#about .los-slider-track {
    display: flex;
    width: 400%;
    height: 100%;
    animation: losAboutSlider 22s infinite ease-in-out;
}

#about .los-slide {
    width: 25%;
    flex: 0 0 25%;
    height: 100%;
}

#about .los-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    border: none;
    outline: none;
    box-shadow: none;
}

@keyframes losAboutSlider {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

/* NEWS STRIP */
#about .los-news-strip {
    width: var(--about-content-width);
    max-width: var(--about-content-width);

    margin: var(--about-news-top) auto 0;

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--about-news-card-width);
    gap: 0;

    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

#about .los-news-strip::-webkit-scrollbar {
    display: none;
}

#about .los-news-card {
    display: block;
    text-decoration: none;
    color: var(--los-text);
    background: rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

#about .los-news-card:hover {
    transform: translateY(-3px);
    opacity: 0.86;
}

#about .los-news-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--los-bg-soft);
}

#about .los-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.12);
}

#about .los-news-content {
    padding: 18px 12px 24px;
}

#about .los-news-title {
    margin: 0 0 22px;
    font-family: var(--los-font-body);
    font-size: clamp(22px, 1.55vw, 30px);
    line-height: 1.05;
    color: rgba(255, 255, 255, 0.28);
    font-weight: 700;
}

#about .los-news-date {
    font-family: var(--los-font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.24);
}

/* ================================================= */
/* ABOUT — TABLET */
/* ================================================= */

@media (max-width: 1180px) {
    #about.los-about {
        --about-content-width: min(100%, 980px);
        --about-main-gap: 42px;
        --about-text-width: 100%;
        --about-image-width: 100%;
        --about-news-top: 42px;
    }

    #about .los-about-main {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    #about .los-about-text,
    #about .los-about-slider {
        justify-self: center;
        max-width: 820px;
    }

    #about .los-news-strip {
        width: min(100%, 820px);
        max-width: min(100%, 820px);
    }
}

/* ================================================= */
/* ABOUT — MOBILE */
/* ================================================= */

@media (max-width: 767px) {
    #about.los-about {
        --about-news-top: 34px;
        --about-news-card-width: clamp(210px, 72vw, 290px);
    }

    #about .los-section-content {
        justify-content: flex-start;
    }

    #about .los-about-main {
        width: 100%;
        gap: 32px;
    }

    #about .los-about-text {
        max-width: 100%;
    }

    #about .los-text {
        font-size: 15px;
        line-height: 1.55;
    }

    #about .los-about-slider {
        max-width: 100%;
    }

    #about .los-news-strip {
        width: 100%;
        max-width: 100%;
    }
}

/* ================================================= */
/* GAMEPLAY */
/* ================================================= */

#gameplay .los-section-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

#gameplay .los-gameplay-inner {
    width: min(100%, 1920px);
    margin: 0 auto;
}

#gameplay .los-gameplay-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(42px, 4vw, 90px);
    align-items: start;
}

#gameplay .los-gameplay-card {
    position: relative;
    text-align: center;
    color: var(--los-text);
    min-width: 0;
    cursor: pointer;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

#gameplay .los-gameplay-card-title {
    margin: 0 0 14px;
    font-family: var(--los-font-title);
    font-size: clamp(30px, 1.85vw, 42px);
    line-height: 1.12;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

#gameplay .los-gameplay-divider {
    display: block;
    width: 100%;
    max-width: 390px;
    height: auto;
    margin: 18px auto 32px;
    opacity: 0.72;
    filter: brightness(1.45) contrast(1.15);
    pointer-events: none;
}

#gameplay .los-gameplay-image-wrap {
    width: 100%;
    height: clamp(390px, 32vw, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

#gameplay .los-gameplay-image {
    max-width: 112%;
    max-height: 112%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.6));
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.45s ease;
}

#gameplay .los-gameplay-divider-bottom {
    margin: 30px auto 20px;
}

#gameplay .los-gameplay-text {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    margin: 0 auto;
    font-family: var(--los-font-body);
    font-size: var(--los-small-size);
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: rgba(200, 203, 208, 0.78);
    text-align: center;
    hyphens: none;
    overflow-wrap: normal;
}

#gameplay .los-gameplay-card-title,
#gameplay .los-gameplay-divider,
#gameplay .los-gameplay-text {
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.45s ease;
}

#gameplay .los-gameplay-grid:hover .los-gameplay-card {
    opacity: 0.34;
    filter: brightness(0.65);
}

#gameplay .los-gameplay-grid:hover .los-gameplay-card:hover {
    opacity: 1;
    filter: brightness(1);
    z-index: 5;
}

#gameplay .los-gameplay-card:hover .los-gameplay-image {
    transform: translateY(-18px) scale(1.08);
    transform-origin: center bottom;
}

/* ================================================= */
/* CHARACTERS */
/* ================================================= */

#characters.los-characters {
    --characters-labels-y: clamp(36px, 6vh, 150px);
    --characters-image-gap: 0px;
    --characters-image-drop: clamp(40px, 7vh, 90px);
    --characters-image-height: clamp(760px, 78vh, 1160px);
    --characters-hover-scale: 1.16;
    --characters-text-bottom: clamp(120px, 20vh, 250px);
}

#characters .los-section-shell,
#characters .los-section-content {
    overflow: visible;
}

#characters .los-characters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
    position: relative;
    overflow: visible;
    margin-top: var(--characters-labels-y);
}

#characters .los-characters-grid:hover .los-character-card {
    opacity: 0.32;
    filter: brightness(0.58);
}

#characters .los-characters-grid:hover .los-character-card:hover {
    opacity: 1;
    filter: brightness(1);
    z-index: 30;
}

#characters .los-character-card {
    position: relative;
    min-height: clamp(720px, 78vh, 980px);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    cursor: pointer;
    overflow: visible;
    isolation: isolate;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

#characters .los-character-name {
    position: relative;
    z-index: 40;
    margin: 0;
    color: rgba(214, 216, 229, 0.86);
    text-align: center;
    font-family: var(--los-font-title);
    font-size: clamp(28px, 1.9vw, 44px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    pointer-events: none;
}

#characters .los-character-divider {
    position: relative;
    z-index: 40;
    display: block;
    width: min(300px, 92%);
    margin: 14px auto var(--characters-image-gap);
    opacity: 0.58;
    filter: brightness(1.25);
    transition: opacity 0.35s ease, filter 0.35s ease;
    pointer-events: none;
}

#characters .los-character-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1 1 auto;
    min-height: clamp(520px, 58vh, 760px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
    clip-path: inset(-3000px 0 -3000px 0);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.1) 8%, rgba(0,0,0,.55) 18%, #000 34%, #000 66%, rgba(0,0,0,.55) 82%, rgba(0,0,0,.1) 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.1) 8%, rgba(0,0,0,.55) 18%, #000 34%, #000 66%, rgba(0,0,0,.55) 82%, rgba(0,0,0,.1) 92%, transparent 100%);
    transition: clip-path 0.45s ease, -webkit-mask-image 0.45s ease, mask-image 0.45s ease;
}

#characters .los-character-card:hover .los-character-visual {
    clip-path: inset(-3000px -3000px -3000px -3000px);
    -webkit-mask-image: none;
    mask-image: none;
}

#characters .los-character-image {
    display: block;
    width: auto;
    height: var(--characters-image-height);
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    transform: translateY(var(--characters-image-drop)) scale(1);
    transform-origin: center center;
    opacity: 1;
    filter: none;
    pointer-events: none;
    user-select: none;
    transition: transform 0.45s ease, opacity 0.35s ease, filter 0.35s ease;
}

#characters .los-character-card:hover .los-character-image {
    transform: translateY(var(--characters-image-drop)) scale(var(--characters-hover-scale));
}

#characters .los-character-text {
    position: absolute;
    left: 50%;
    bottom: var(--characters-text-bottom);
    transform: translateX(-50%) translateY(22px);
    width: min(86%, 380px);
    padding: 18px 18px 20px;
    background: rgba(4, 7, 12, 0.76);
    border: 1px solid rgba(176, 185, 220, 0.16);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 50;
}

#characters .los-character-card:hover .los-character-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#characters .los-character-text p {
    margin: 0;
    color: rgba(233, 236, 244, 0.92);
    text-align: left;
    font-family: var(--los-font-body);
    font-size: clamp(16px, 0.95vw, 20px);
    line-height: 1.45;
}

/* ================================================= */
/* LOCATION */
/* ================================================= */

#location.los-location {
    --location-grid-height: clamp(80vh,100vh, 900px);
    --location-grid-gap: 8px;
    --location-grid-bottom-gap: 0px;
}

#location.los-section-layout {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

#location.los-section-layout > .los-section-shell {
    width: 100vw;
    max-width: none;
    min-height: 100dvh;
    overflow-x: hidden;
}

#location .los-section-content {
    width: 100vw;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 0 0 var(--location-grid-bottom-gap);
}

#location .los-location-grid {
    width: 100vw;
    height: var(--location-grid-height);
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 1.15fr 1fr;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: var(--location-grid-gap);
    overflow: hidden;
}

#location .los-loc-item {
    position: relative;
    display: block;
    overflow: hidden;
    background: #05080d;
    cursor: pointer;
    isolation: isolate;
}

#location .los-loc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.08) brightness(0.92);
    transform: scale(1);
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), filter 0.35s ease;
}

#location .los-loc-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(0,0,0,.06), rgba(0,0,0,.36)), linear-gradient(to bottom, rgba(0,0,0,.03), rgba(0,0,0,.5));
    opacity: 0.32;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

#location .los-loc-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: min(82%, 560px);
    transform: translate(-50%, -44%);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#location .los-loc-overlay h3 {
    margin: 0 0 12px;
    font-family: var(--los-font-title);
    font-size: clamp(24px, 1.8vw, 42px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
}

#location .los-loc-overlay p {
    margin: 0;
    font-family: var(--los-font-body);
    font-size: clamp(14px, 0.9vw, 18px);
    line-height: 1.45;
    color: rgba(235, 238, 245, 0.86);
}

#location .los-loc-item:hover {
    z-index: 10;
}

#location .los-loc-item:hover .los-loc-image {
    transform: scale(1.06);
    filter: grayscale(100%) contrast(1.08) brightness(0.55) blur(2px);
}

#location .los-loc-item:hover::after {
    opacity: 0.84;
}

#location .los-loc-item:hover .los-loc-overlay {
    opacity: 1;
    transform: translate(-50%, -50%);
}

#location .loc-img-1 { grid-area: 1 / 1 / 7 / 2; }
#location .loc-img-2 { grid-area: 1 / 2 / 3 / 4; }
#location .loc-img-3 { grid-area: 3 / 2 / 5 / 3; }
#location .loc-img-4 { grid-area: 5 / 2 / 7 / 3; }
#location .loc-img-5 { grid-area: 3 / 3 / 7 / 4; }
#location .loc-img-6 { grid-area: 1 / 4 / 4 / 5; }
#location .loc-img-7 { grid-area: 4 / 4 / 7 / 5; }

/* ================================================= */
/* PROGRESS */
/* ================================================= */

#progress.los-progress {
    --progress-width: min(100%, 1540px);
    --progress-card-padding: 30px;
    --progress-row-gap: 30px;
    --progress-blue: #5dade2;
    --progress-blue-dark: #1f618d;
    --progress-red: #e74c3c;
    --progress-red-dark: #7b241c;
}

#progress .los-section-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
}

#progress .los-progress-wrap {
    width: var(--progress-width);
    margin: 0 auto;
    padding-top: 10px;
}

#progress .los-progress-timeline {
    position: relative;
    width: 100%;
    padding: var(--progress-card-padding);
    margin-bottom: var(--progress-row-gap);
    background: rgba(6, 11, 16, 0.62);
    border: 1px solid rgba(93, 173, 226, 0.22);
    border-radius: 8px;
    overflow: hidden;
}

#progress .los-progress-red {
    background: rgba(18, 6, 6, 0.58);
    border-color: rgba(231, 76, 60, 0.22);
}

#progress .los-progress-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--los-font-title);
    font-size: clamp(15px, 0.95vw, 18px);
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#progress .los-progress-blue .los-progress-header { color: var(--progress-blue); }
#progress .los-progress-red .los-progress-header { color: var(--progress-red); }

#progress .los-progress-scroll-wrapper {
    position: relative;
    width: 100%;
}

#progress .los-progress-scroll {
    position: relative;
    display: flex;
    gap: 40px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    cursor: grab;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black 65%, transparent 100%);
    mask-image: linear-gradient(to right, black 65%, transparent 100%);
}

#progress .los-progress-scroll::-webkit-scrollbar { display: none; }
#progress .los-progress-scroll.is-dragging { cursor: grabbing; user-select: none; }
#progress .los-progress-scroll.is-at-end { -webkit-mask-image: none; mask-image: none; }

#progress .los-progress-item {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-width: 220px;
    max-width: 280px;
    padding-top: 50px;
}

#progress .los-progress-item::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    z-index: 1;
    width: calc(100% + 40px);
    height: 2px;
}

#progress .los-progress-blue .los-progress-item::before { background: var(--progress-blue-dark); }
#progress .los-progress-red .los-progress-item::before { background: var(--progress-red-dark); }
#progress .los-progress-item:last-child::before { width: 100%; }

#progress .los-progress-node {
    position: absolute;
    top: 25px;
    left: 0;
    z-index: 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
}

#progress .los-progress-blue .los-progress-node { background: #85c1e9; box-shadow: 0 0 10px #85c1e9; }
#progress .los-progress-red .los-progress-node { background: #f1948a; box-shadow: 0 0 10px #f1948a; }

#progress .los-progress-item h4 {
    margin: 0 0 10px;
    font-family: var(--los-font-body);
    font-size: clamp(13px, 0.82vw, 15px);
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(210, 216, 222, 0.78);
}

#progress .los-progress-item p {
    margin: 0;
    font-family: var(--los-font-body);
    font-size: clamp(12px, 0.76vw, 14px);
    line-height: 1.5;
    color: rgba(160, 170, 178, 0.68);
}

#progress .los-progress-arrow {
    position: absolute;
    top: 25px;
    right: 5px;
    z-index: 10;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--progress-blue-dark);
    background: rgba(10, 15, 20, 0.8);
    color: var(--progress-blue);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

#progress .los-progress-arrow:hover {
    background: rgba(31, 97, 141, 0.3);
    box-shadow: 0 0 15px rgba(93, 173, 226, 0.4);
}

#progress .los-progress-red .los-progress-arrow {
    border-color: var(--progress-red-dark);
    background: rgba(20, 10, 10, 0.8);
    color: var(--progress-red);
}

#progress .los-progress-red .los-progress-arrow:hover {
    background: rgba(123, 36, 28, 0.3);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

#progress .los-progress-scroll-wrapper.is-ended .los-progress-arrow {
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
}

#progress .los-progress-more {
    display: none;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-family: var(--los-font-body);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

#progress .los-progress-blue .los-progress-more { color: var(--progress-blue); }
#progress .los-progress-red .los-progress-more { color: var(--progress-red); }

/* ================================================= */
/* TEAM */
/* ================================================= */

#team.los-team {
    --team-content-top: clamp(20px, 3.5vh, 60px);
    --team-wrap-width: min(100%, 1500px);
    --team-photo-size: clamp(210px, 15vw, 330px);
    --team-member-width: var(--team-photo-size);
    --team-gap-x-top: clamp(60px, 6vw, 140px);
    --team-gap-x-bottom: clamp(14px, 2.3vw, 52px);
    --team-row-gap: clamp(58px, 6vh, 110px);
    --team-name-size: clamp(22px, 1.45vw, 32px);
    --team-role-size: clamp(13px, 0.85vw, 18px);
    --team-name-height: 34px;
    --team-role-height: 44px;
    --team-photo-gap: 10px;
    overflow: visible;
}

#team.los-section-layout,
#team.los-section-layout > .los-section-shell,
#team .los-section-content {
    overflow: visible;
}

#team .los-section-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#team .los-team-wrap {
    width: var(--team-wrap-width);
    max-width: 100%;
    margin: 0 auto;
    padding-top: var(--team-content-top);
    overflow: visible;
}

#team .los-team-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

#team .los-team-row-top {
    gap: var(--team-gap-x-top);
    margin-bottom: var(--team-row-gap);
}

#team .los-team-row-bottom {
    gap: var(--team-gap-x-bottom);
}

#team .los-team-member {
    width: var(--team-member-width);
    flex: 0 0 var(--team-member-width);
    display: grid;
    grid-template-rows: var(--team-name-height) var(--team-role-height) var(--team-photo-gap) var(--team-photo-size);
    justify-items: center;
    align-items: start;
    text-align: center;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

#team .los-team-name {
    grid-row: 1;
    margin: 0;
    font-family: var(--los-font-title);
    font-size: var(--team-name-size);
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: rgba(218, 225, 242, 0.92);
}

#team .los-team-role {
    grid-row: 2;
    margin: 0;
    font-family: var(--los-font-title);
    font-size: var(--team-role-size);
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    color: rgba(168, 178, 204, 0.82);
}

#team .los-team-photo {
    grid-row: 4;
    display: block;
    width: var(--team-photo-size);
    height: var(--team-photo-size);
    object-fit: contain;
    object-position: center center;
    border-radius: 50%;
    user-select: none;
    pointer-events: none;
}

#team .los-team-member:hover,
#team .los-team-row:hover .los-team-member,
#team .los-team-row:hover .los-team-member:hover,
#team .los-team-grid:hover .los-team-member,
#team .los-team-grid:hover .los-team-member:hover {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

/* ================================================= */
/* TEAM — MOBILE FIX: CAPTIONS CLOSE TO PHOTOS */
/* put at the VERY END */
/* ================================================= */

@media (max-width: 767px) {
    #team.los-team {
        --team-photo-size: clamp(125px, 36vw, 175px);
        --team-name-size: clamp(20px, 5.8vw, 28px);
        --team-role-size: clamp(12px, 3.6vw, 16px);

        --team-mobile-gap-x: 16px;
        --team-mobile-gap-y: 34px;
    }

    /* общий grid: все участники подряд в 2 колонки */
    #team .los-team-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: var(--team-mobile-gap-x) !important;
        row-gap: var(--team-mobile-gap-y) !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-items: center !important;
        align-items: start !important;
    }

    #team .los-team-row,
    #team .los-team-row-top,
    #team .los-team-row-bottom {
        display: contents !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    /* ВАЖНО: внутри карточки больше НЕ grid, а flex */
    #team .los-team-member {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;

        gap: 0 !important;
        row-gap: 0 !important;

        grid-template-rows: none !important;
        grid-auto-rows: auto !important;
    }

    #team .los-team-name {
        margin: 0 0 4px !important;
        padding: 0 !important;

        font-size: var(--team-name-size) !important;
        line-height: 1 !important;
    }

    #team .los-team-role {
        margin: 0 0 6px !important;
        padding: 0 !important;

        height: auto !important;
        min-height: 0 !important;

        font-size: var(--team-role-size) !important;
        line-height: 1.06 !important;
    }

    #team .los-team-photo {
        display: block !important;
        width: var(--team-photo-size) !important;
        height: var(--team-photo-size) !important;

        margin: 0 !important;
        padding: 0 !important;

        grid-row: auto !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    /* отменяем старое центрирование отдельных карточек */
    #team .los-team-row-top .los-team-member:nth-child(3),
    #team .los-team-row-bottom .los-team-member:last-child {
        grid-column: auto !important;
        width: 100% !important;
        justify-self: center !important;
    }
}

@media (max-width: 390px) {
    #team.los-team {
        --team-photo-size: clamp(112px, 35vw, 150px);
        --team-name-size: clamp(18px, 5.4vw, 25px);
        --team-role-size: clamp(11px, 3.4vw, 14px);

        --team-mobile-gap-x: 12px;
        --team-mobile-gap-y: 30px;
    }
}

/* ================================================= */
/* CONTACTS / EMPTY */
/* ================================================= */

#contacts .los-section-content {
    min-height: 0;
}

/* ================================================= */
/* WIDE MONITORS */
/* ================================================= */

@media (min-width: 1921px) {
    :root {
        --los-content-width: min(86vw, 2400px);
        --los-section-x: clamp(70px, 5vw, 160px);
        --los-title-size: clamp(128px, 5.2vw, 190px);
        --los-title-zone-height: clamp(260px, 20vh, 400px);
    }

    #gameplay .los-gameplay-image-wrap {
        height: clamp(560px, 30vw, 760px);
    }

    #characters.los-characters {
        --characters-image-height: clamp(980px, 72vh, 1380px);
    }

    #team.los-team {
        --team-wrap-width: min(100%, 1800px);
        --team-photo-size: clamp(300px, 12vw, 410px);
        --team-gap-x-bottom: clamp(24px, 2vw, 82px);
        --team-gap-x-top: clamp(100px, 6vw, 220px);
    }
}

/* ================================================= */
/* TABLET */
/* ================================================= */

@media (max-width: 1180px) {
    :root {
        --los-section-x: clamp(22px, 5vw, 56px);
        --los-title-size: clamp(58px, 9vw, 104px);
        --los-title-zone-height: clamp(155px, 18vh, 220px);
        --los-title-content-gap: 22px;
        --los-body-size: 16px;
        --los-small-size: 15px;
    }

    .los-section-layout {
        min-height: auto;
        padding-bottom: 64px;
    }

    .los-section-layout > .los-section-shell {
        min-height: auto;
        grid-template-rows: var(--los-title-zone-height) auto;
    }

    #about .los-section-content {
        justify-content: flex-start;
    }

    #about .los-about-main {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    #about .los-about-text {
        max-width: 880px;
    }

    #about .los-about-slider {
        max-width: 860px;
        justify-self: start;
    }

    #gameplay .los-gameplay-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 64px 76px;
    }

    #gameplay .los-gameplay-image-wrap {
        height: clamp(360px, 48vw, 520px);
    }

    #characters.los-characters {
        --characters-labels-y: 30px;
        --characters-image-drop: 40px;
        --characters-image-height: clamp(620px, 72vh, 860px);
        --characters-hover-scale: 1.08;
        --characters-text-bottom: 120px;
    }

    #characters .los-characters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px;
    }

    #characters .los-character-card {
        min-height: 640px;
        padding: 18px 20px 24px;
    }

    #characters .los-character-visual {
        min-height: 470px;
    }

    #location.los-location {
        --location-grid-height: auto;
        --location-grid-gap: 8px;
    }

    #location.los-section-layout {
        padding-left: var(--los-section-x);
        padding-right: var(--los-section-x);
        padding-bottom: 64px;
    }

    #location.los-section-layout > .los-section-shell,
    #location .los-section-content {
        width: min(100%, var(--los-content-width));
        max-width: 100%;
    }

    #location .los-section-content {
        display: block;
        overflow: visible;
    }

    #location .los-location-grid {
        width: 100%;
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(280px, 34vh);
    }

    #location .los-loc-item {
        grid-area: auto !important;
        min-height: 280px;
    }

    #progress .los-progress-wrap {
        padding-top: 0;
    }

    #progress .los-progress-timeline {
        padding: 24px;
    }

    #team.los-team {
        --team-content-top: 22px;
        --team-photo-size: clamp(190px, 24vw, 270px);
        --team-gap-x-top: clamp(30px, 5vw, 60px);
        --team-gap-x-bottom: clamp(30px, 5vw, 60px);
        --team-row-gap: 58px;
        --team-name-size: clamp(22px, 2.6vw, 30px);
        --team-role-size: clamp(13px, 1.7vw, 17px);
    }

    #team .los-team-row-top,
    #team .los-team-row-bottom {
        flex-wrap: wrap;
        row-gap: 58px;
    }
}

/* ================================================= */
/* MOBILE */
/* ================================================= */

@media (max-width: 767px) {
    :root {
        --los-section-x: 20px;
        --los-section-bottom: 56px;
        --los-title-size: clamp(38px, 11vw, 58px);
        --los-title-zone-height: 128px;
        --los-title-content-gap: 18px;
        --los-body-size: 14.5px;
        --los-small-size: 14px;
    }

    .los-section,
    .los-screen,
    .los-section-layout {
        min-height: auto;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .los-section-title {
        letter-spacing: 0.035em;
        line-height: 0.86;
    }

    #home.limbus-hero {
        min-height: 100dvh;
    }

    #home .hero-logo {
        top: 18px;
        width: 96vw;
    }

    #home .art-circle {
        top: 32%;
        width: 220vw;
        min-width: 220vw;
        opacity: 0.25;
    }

    #home .art-char-center {
        top: clamp(105px, 29vw, 135px);
        bottom: auto;
        height: 68dvh;
        left: 50%;
        transform: translateX(-50%);
    }

    #home .art-char-left {
        top: clamp(125px, 34vw, 155px);
        bottom: auto;
        height: 48dvh;
        left: 43%;
        transform: translateX(-112%);
    }

    #home .art-char-right {
        top: clamp(125px, 34vw, 155px);
        bottom: auto;
        height: 48dvh;
        left: 55%;
        transform: translateX(6%);
    }

    #about .los-about-main {
        gap: 34px;
    }

    #about .los-slider-frame {
        aspect-ratio: 4 / 3;
    }

    #about .los-news-strip {
        grid-auto-columns: minmax(220px, 76vw);
        margin-top: 36px;
    }

    #gameplay .los-gameplay-grid {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    #gameplay .los-gameplay-grid:hover .los-gameplay-card,
    #gameplay .los-gameplay-grid:hover .los-gameplay-card:hover {
        opacity: 1;
        filter: none;
    }

    #gameplay .los-gameplay-image-wrap {
        height: clamp(320px, 96vw, 500px);
    }

    #gameplay .los-gameplay-card-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    #gameplay .los-gameplay-divider {
        max-width: 82vw;
        margin: 16px auto 24px;
    }

    #gameplay .los-gameplay-text {
        max-width: 360px;
        font-size: 15px;
    }

    #characters.los-characters {
        --characters-labels-y: 0px;
        --characters-image-gap: 16px;
        --characters-image-drop: 0px;
        --characters-image-height: auto;
        --characters-hover-scale: 1;
    }

    #characters .los-characters-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 0;
    }

    #characters .los-characters-grid:hover .los-character-card,
    #characters .los-characters-grid:hover .los-character-card:hover {
        opacity: 1;
        filter: none;
    }

    #characters .los-character-card {
        min-height: auto;
        padding: 0;
        cursor: default;
    }

    #characters .los-character-name {
        font-size: clamp(30px, 8vw, 44px);
    }

    #characters .los-character-divider {
        width: min(300px, 82vw);
        margin: 12px auto 18px;
    }

    #characters .los-character-visual {
        width: 100%;
        min-height: auto;
        clip-path: none;
        -webkit-mask-image: none;
        mask-image: none;
    }

    #characters .los-character-image {
        width: min(112%, 560px);
        height: auto;
        max-width: none;
        transform: none;
    }

    #characters .los-character-card:hover .los-character-image {
        transform: none;
    }

    #characters .los-character-text {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 520px;
        margin: 18px auto 0;
        opacity: 1;
        pointer-events: auto;
        background: rgba(4, 7, 12, 0.58);
    }

    #characters .los-character-card:hover .los-character-text {
        transform: none;
    }

    #location .los-location-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(240px, 58vw);
        gap: 8px;
    }

    #location .los-loc-item {
        min-height: 240px;
    }

    #location .los-loc-overlay {
        width: min(88%, 420px);
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    #location .los-loc-item::after {
        opacity: 0.74;
    }

    #location .los-loc-overlay h3 {
        font-size: clamp(24px, 7vw, 36px);
    }

    #location .los-loc-overlay p {
        font-size: 14px;
    }

    #progress .los-progress-wrap {
        width: 100%;
    }

    #progress .los-progress-timeline {
        padding: 20px;
        margin-bottom: 22px;
    }

    #progress .los-progress-header {
        margin-bottom: 24px;
        font-size: 14px;
    }

    #progress .los-progress-scroll {
        flex-direction: column;
        gap: 25px;
        overflow-x: hidden;
        overflow-y: visible;
        padding-bottom: 0;
        cursor: default;
        -webkit-mask-image: none;
        mask-image: none;
    }

    #progress .los-progress-arrow {
        display: none;
    }

    #progress .los-progress-item {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        padding-top: 0;
        padding-left: 30px;
    }

    #progress .los-progress-node {
        top: 10px;
        left: 0;
    }

    #progress .los-progress-item::before {
        top: 10px;
        left: 4px;
        width: 2px;
        height: calc(100% + 25px);
    }

    #progress .los-progress-scroll:not(.is-expanded) .los-progress-item:nth-child(n+5) {
        display: none;
    }

    #progress .los-progress-scroll:not(.is-expanded) .los-progress-item:nth-child(4)::before,
    #progress .los-progress-item:last-child::before {
        height: 0;
    }

    #progress .los-progress-more {
        display: block;
    }

    #team.los-team {
        --team-content-top: 8px;
        --team-photo-size: clamp(190px, 62vw, 280px);
        --team-member-width: min(100%, var(--team-photo-size));
        --team-row-gap: 46px;
        --team-name-size: clamp(24px, 8vw, 34px);
        --team-role-size: clamp(14px, 4.5vw, 19px);
        --team-name-height: auto;
        --team-role-height: auto;
        --team-photo-gap: 16px;
    }

    #team .los-team-wrap {
        width: 100%;
        padding-top: var(--team-content-top);
    }

    #team .los-team-row,
    #team .los-team-row-top,
    #team .los-team-row-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 46px;
        margin-bottom: 0;
    }

    #team .los-team-row-top {
        margin-bottom: 46px;
    }

    #team .los-team-member {
        width: var(--team-member-width);
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #team .los-team-name {
        margin-bottom: 6px;
    }

    #team .los-team-role {
        margin-bottom: var(--team-photo-gap);
    }
}

/* ================================================= */
/* SMALL MOBILE */
/* ================================================= */

@media (max-width: 480px) {
    :root {
        --los-section-x: 16px;
        --los-title-size: clamp(36px, 10.8vw, 52px);
        --los-title-zone-height: 112px;
        --los-title-content-gap: 16px;
    }

    .los-section-title {
        letter-spacing: 0.025em;
    }
}

@media (max-width: 390px) {
    :root {
        --los-section-x: 14px;
        --los-title-size: clamp(34px, 10.5vw, 46px);
        --los-title-zone-height: 104px;
    }

    #home .hero-logo {
        top: 14px;
        width: 98vw;
    }

    #home .art-char-center {
        top: 105px;
        height: 66dvh;
    }

    #home .art-char-left,
    #home .art-char-right {
        top: 125px;
        height: 46dvh;
    }

    #team.los-team {
        --team-photo-size: clamp(170px, 66vw, 240px);
        --team-name-size: clamp(22px, 8vw, 30px);
        --team-role-size: clamp(13px, 4.5vw, 17px);
    }
}

/* iPhone Safari background/overscroll safety */
@supports (-webkit-touch-callout: none) {
    html,
    body,
    #page,
    .site,
    .site-content,
    .site-main,
    .los-landing,
    .los-section {
        background-color: var(--los-bg) !important;
    }
}
/* ================================================= */
/* TEAM — MOBILE PULL PHOTOS CLOSER TO TEXT */
/* put at the VERY END */
/* ================================================= */

@media (max-width: 767px) {
    #team .los-team-member {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    #team .los-team-name {
        margin: 0 0 4px !important;
        padding: 0 !important;
    }

    #team .los-team-role {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        line-height: 1.05 !important;
    }

    /* ВОТ ЭТО ГЛАВНОЕ: тянем кружки вверх */
    #team .los-team-photo {
        margin-top: -38px !important;
        width: var(--team-photo-size) !important;
        height: var(--team-photo-size) !important;
        object-fit: contain !important;
        transform: none !important;
    }
}

/* ================================================= */
/* CONTACTS — FINAL */
/* ================================================= */

#contacts.los-contacts {
    overflow: visible;
}

#contacts .los-section-content {
    width: 100%;
    height: 100%;
    display: block;
}

#contacts .los-contacts-wrap {
    width: min(100%, 1320px);
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}

/* big intro text */
#contacts .los-contacts-intro {
    width: min(100%, 1040px);
    margin: 0 auto clamp(48px, 6vh, 82px);

    text-align: center;
}

#contacts .los-contacts-intro p {
    margin: 0;

    font-family: var(--los-font-body);
    font-size: clamp(26px, 2vw, 40px);
    line-height: 1.25;

    color: rgba(225, 230, 242, 0.72);
}

/* main two-column block */
#contacts .los-contacts-main {
    width: 100%;

    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    gap: clamp(46px, 5vw, 86px);

    align-items: start;
}

/* form side */
#contacts .los-contacts-form-col {
    width: 100%;
}

#contacts .los-contact-form {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#contacts .los-form-hidden {
    display: none;
}

#contacts .los-form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    text-align: left;
}

#contacts .los-form-field-message {
    grid-column: 1 / -1;
}

#contacts .los-form-field span {
    font-family: var(--los-font-title);
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: rgba(190, 200, 222, 0.68);
}

#contacts .los-form-field input,
#contacts .los-form-field textarea {
    width: 100%;
    padding: 18px 20px;

    font-family: var(--los-font-body);
    font-size: 17px;
    line-height: 1.4;

    color: rgba(245, 248, 255, 0.92);

    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(220, 226, 238, 0.16);
    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.22s ease,
        background 0.22s ease;
}

#contacts .los-form-field textarea {
    min-height: 210px;
    resize: vertical;
}

#contacts .los-form-field input:focus,
#contacts .los-form-field textarea:focus {
    border-color: rgba(220, 226, 238, 0.52);
    background: rgba(255, 255, 255, 0.045);
}

#contacts .los-form-submit {
    grid-column: 1 / -1;

    justify-self: start;

    min-width: 230px;
    padding: 18px 32px;

    font-family: var(--los-font-title);
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    color: rgba(245, 248, 255, 0.9);

    background: transparent !important;
    border: 1px solid rgba(220, 226, 238, 0.42);
    box-shadow: none !important;

    cursor: pointer;

    transition:
        color 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

#contacts .los-form-submit:hover {
    color: rgba(255, 255, 255, 1);
    border-color: rgba(220, 226, 238, 0.78);
    background: rgba(255, 255, 255, 0.04) !important;
}

#contacts .los-form-message {
    width: 100%;
    margin: 0 0 24px;
    padding: 16px 20px;

    font-family: var(--los-font-body);
    font-size: 15px;
    line-height: 1.4;

    border: 1px solid rgba(220, 226, 238, 0.18);
    background: rgba(255, 255, 255, 0.025);

    box-sizing: border-box;
}

#contacts .los-form-success {
    color: rgba(210, 235, 220, 0.9);
}

#contacts .los-form-error {
    color: rgba(245, 190, 190, 0.9);
}

/* contact info side */
#contacts .los-contacts-info-col {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 22px;
}

#contacts .los-contact-info-box {
    width: 100%;
    padding: 32px 30px;

    border: 1px solid rgba(220, 226, 238, 0.14);
    background: rgba(255, 255, 255, 0.018);

    box-sizing: border-box;
}

#contacts .los-contact-info-box h3 {
    margin: 0 0 30px;

    font-family: var(--los-font-title);
    font-size: clamp(25px, 1.8vw, 38px);
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: rgba(235, 238, 245, 0.88);
}

#contacts .los-contact-line {
    display: block;

    padding: 18px 0;

    text-decoration: none;

    border-top: 1px solid rgba(220, 226, 238, 0.09);
}

#contacts .los-contact-line span {
    display: block;
    margin-bottom: 8px;

    font-family: var(--los-font-title);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: rgba(190, 200, 222, 0.48);
}

#contacts .los-contact-line strong {
    display: block;

    font-family: var(--los-font-body);
    font-size: clamp(16px, 1vw, 20px);
    line-height: 1.45;
    font-weight: 400;

    color: rgba(235, 238, 245, 0.78);
}

#contacts a.los-contact-line:hover strong {
    color: rgba(255, 255, 255, 0.95);
}

/* map */
#contacts .los-contact-map {
    width: 100%;
    height: 260px;

    overflow: hidden;

    border: 1px solid rgba(220, 226, 238, 0.14);
    background: rgba(255, 255, 255, 0.018);

    box-sizing: border-box;
}

#contacts .los-contact-map iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;

    filter: grayscale(100%) invert(92%) contrast(0.85) brightness(0.68);
    opacity: 0.7;
}

/* copyright footer — pushed lower */
/* copyright footer */
#contacts .los-contacts-footer {
    width: 100%;

    margin-top: clamp(48px, 6vh, 78px);
    padding-top: 0;
    padding-bottom: 22px;

    text-align: center;
}

#contacts .los-contacts-footer::before {
    content: "";
    display: block;

    width: min(100%, 1120px);
    height: 1px;

    margin: 0 auto 26px;

    background: rgba(220, 226, 238, 0.09);
}

#contacts .los-contacts-footer p {
    width: min(100%, 1040px);
    margin: 0 auto 10px;

    font-family: var(--los-font-body);
    font-size: 13px;
    line-height: 1.5;

    color: rgba(220, 226, 238, 0.34);
}

/* ================================================= */
/* CONTACTS — TABLET */
/* ================================================= */

@media (max-width: 1100px) {
    #contacts .los-contacts-main {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    #contacts .los-contact-info-box {
        text-align: left;
    }

    #contacts .los-contact-map {
        height: 300px;
    }
}

/* ================================================= */
/* CONTACTS — MOBILE */
/* ================================================= */

@media (max-width: 767px) {
    #contacts.los-section-layout {
        min-height: auto !important;
        padding-bottom: 70px !important;
    }

    #contacts .los-contacts-wrap {
        width: 100%;
        min-height: auto;
    }

    #contacts .los-contacts-intro {
        margin-bottom: 36px;
    }

    #contacts .los-contacts-intro p {
        font-size: clamp(21px, 6.4vw, 30px);
        line-height: 1.28;
    }

    #contacts .los-contacts-main {
        gap: 38px;
    }

    #contacts .los-contact-form {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    #contacts .los-form-field span {
        font-size: 13px;
    }

    #contacts .los-form-field input,
    #contacts .los-form-field textarea {
        padding: 16px 17px;
        font-size: 16px;
    }

    #contacts .los-form-field textarea {
        min-height: 170px;
    }

    #contacts .los-form-submit {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    #contacts .los-contact-info-box {
        padding: 28px 22px;
    }

    #contacts .los-contact-info-box h3 {
        font-size: 27px;
    }

    #contacts .los-contact-map {
        height: 230px;
    }

    #contacts .los-contacts-footer {
        margin-top: 44px;
        padding-top: 0;
        padding-bottom: 0;
    }

    #contacts .los-contacts-footer p {
        font-size: 12px;
    }
}

/* ================================================= */
/* SOCIAL SIDE RAIL */
/* ================================================= */

.los-social-rail {
    position: fixed;
    left: 24px;
    right: auto;
    top: 50%;
    z-index: 9998;

    display: flex;
    flex-direction: column;
    gap: 10px;

    transform: translateY(-50%);

    pointer-events: auto;
}

.los-social-link {
    position: relative;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(220, 226, 238, 0.68);
    text-decoration: none;

    background: rgba(2, 5, 9, 0.56);
    border: 1px solid rgba(220, 226, 238, 0.12);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: none;

    transition:
        color 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease;
}

.los-social-link svg {
    width: 19px;
    height: 19px;

    display: block;

    fill: currentColor;
}

.los-social-link span {
    position: absolute;
    left: calc(100% + 10px);
    right: auto;
    top: 50%;

    padding: 7px 10px;

    font-family: var(--los-font-body);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;

    color: rgba(235, 238, 245, 0.88);

    background: rgba(2, 5, 9, 0.88);
    border: 1px solid rgba(220, 226, 238, 0.12);

    opacity: 0;
    pointer-events: none;

    transform: translate(-8px, -50%);

    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.los-social-link:hover {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(220, 226, 238, 0.36);
    background: rgba(255, 255, 255, 0.045);

    transform: translateX(3px);
}

.los-social-link:hover span {
    opacity: 1;
    transform: translate(0, -50%);
}

/* hide social rail while mobile menu is open */
.los-main-nav.is-open ~ .los-social-rail {
    opacity: 0;
    pointer-events: none;
}

/* ================================================= */
/* SOCIAL RAIL — TABLET */
/* ================================================= */

@media (max-width: 1100px) {
    .los-social-rail {
        left: 16px;
        right: auto;
    }

    .los-social-link {
        width: 40px;
        height: 40px;
    }

    .los-social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* ================================================= */
/* SOCIAL RAIL — MOBILE */
/* ================================================= */

@media (max-width: 767px) {
    .los-social-rail {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 14px;

        width: calc(100% - 28px);
        max-width: 390px;

        flex-direction: row;
        justify-content: center;
        gap: 8px;

        padding: 8px;

        background: rgba(2, 5, 9, 0.62);
        border: 1px solid rgba(220, 226, 238, 0.1);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        transform: translateX(-50%);

        box-sizing: border-box;
    }

    .los-social-link {
        width: 36px;
        height: 36px;

        background: transparent;
        border-color: transparent;
    }

    .los-social-link svg {
        width: 17px;
        height: 17px;
    }

    .los-social-link:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.045);
        border-color: rgba(220, 226, 238, 0.14);
    }

    .los-social-link span {
        display: none;
    }
}

/* very small mobile */
@media (max-width: 390px) {
    .los-social-rail {
        gap: 5px;
        padding: 7px;
    }

    .los-social-link {
        width: 32px;
        height: 32px;
    }

    .los-social-link svg {
        width: 16px;
        height: 16px;
    }
}


/* ================================================= */
/* FINAL TARGETED FIXES v5 — COPY/PASTE FULL CSS */
/* Fixes only: section title offset, Mac HOME, Characters, About, Gameplay, Location, Contacts */
/* ================================================= */

html {
    scroll-padding-top: var(--los-nav-height);
}

@media (min-width: 901px) {
    /* Titles should not hide under fixed navigation */
    .los-section-layout:not(#home) {
        padding-top: var(--los-nav-height) !important;
        scroll-margin-top: var(--los-nav-height) !important;
    }

    .los-section-layout:not(#home) > .los-section-shell {
        min-height: calc(100vh - var(--los-nav-height) - var(--los-section-bottom)) !important;
        min-height: calc(100dvh - var(--los-nav-height) - var(--los-section-bottom)) !important;
    }

    /* Do not let hover/large images create a horizontal white strip */
    html,
    body,
    .los-landing {
        overflow-x: clip !important;
    }
}

/* ================================================= */
/* HOME — LOW HEIGHT / MACBOOK ONLY */
/* normal PC hero stays old */
/* ================================================= */

@media (min-width: 901px) and (max-height: 900px) {
    #home.limbus-hero {
        height: 100vh !important;
        min-height: 700px !important;
        overflow: hidden !important;
    }

    #home.limbus-hero .hero-logo {
        top: 18px !important;
        width: 66vw !important;
        max-width: none !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    #home.limbus-hero .art-circle {
        top: 58% !important;
        width: 88vw !important;
        min-width: 88vw !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        opacity: 0.5 !important;
    }

    /* опускаем персонажей вниз только на низких экранах */
    #home.limbus-hero .art-char-left {
        top: auto !important;
        left: 36% !important;
        bottom: -36vh !important;
        height: 132vh !important;
        transform: translateX(-50%) !important;
    }

    #home.limbus-hero .art-char-center {
        top: auto !important;
        left: 50% !important;
        bottom: -70vh !important;
        height: 184vh !important;
        transform: translateX(-50%) !important;
    }

    #home.limbus-hero .art-char-right {
        top: auto !important;
        left: 61% !important;
        bottom: -38vh !important;
        height: 132vh !important;
        transform: translateX(-50%) !important;
    }
}

@media (min-width: 901px) and (max-height: 780px) {
    #home.limbus-hero .hero-logo {
        width: 62vw !important;
        top: 14px !important;
    }

    #home.limbus-hero .art-char-left,
    #home.limbus-hero .art-char-right {
        bottom: -42vh !important;
        height: 128vh !important;
    }

    #home.limbus-hero .art-char-center {
        bottom: -78vh !important;
        height: 178vh !important;
    }
}

/* ================================================= */
/* TITLES + COMPACT LAYOUT FOR LOW HEIGHT SCREENS */
/* ================================================= */

@media (min-width: 901px) and (max-height: 900px) {
    :root {
        --los-title-size: clamp(66px, 5.8vw, 112px);
        --los-title-zone-height: 170px;
        --los-title-content-gap: 24px;
        --los-body-size: clamp(14px, 0.9vw, 17px);
        --los-small-size: clamp(13px, 0.8vw, 15px);
    }

    .los-section-title {
        margin-top: 0 !important;
    }
}

@media (min-width: 901px) and (max-height: 780px) {
    :root {
        --los-title-size: clamp(58px, 5.1vw, 96px);
        --los-title-zone-height: 150px;
        --los-title-content-gap: 18px;
    }
}

/* ================================================= */
/* CHARACTERS — FIX WHITE STRIP, HOVER CLIP AND EXTRA SCROLL */
/* ================================================= */

@media (min-width: 901px) {
    #characters.los-section-layout {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow-x: clip !important;
        overflow-y: hidden !important;
    }

    #characters.los-section-layout > .los-section-shell {
        height: calc(100vh - var(--los-nav-height)) !important;
        height: calc(100dvh - var(--los-nav-height)) !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #characters .los-section-content {
        height: calc(100vh - var(--los-nav-height) - var(--los-title-zone-height)) !important;
        height: calc(100dvh - var(--los-nav-height) - var(--los-title-zone-height)) !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    #characters.los-characters {
        --characters-labels-y: clamp(8px, 2vh, 24px);
        --characters-image-drop: clamp(22px, 4vh, 54px);
        --characters-image-height: clamp(620px, 68vh, 940px);
        --characters-hover-scale: 1.10;
        --characters-text-bottom: clamp(82px, 14vh, 180px);
    }

    #characters .los-characters-grid {
        height: 100% !important;
        min-height: 0 !important;
        margin-top: var(--characters-labels-y) !important;
        overflow: visible !important;
    }

    #characters .los-character-card {
        height: calc(100% - var(--characters-labels-y)) !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    #characters .los-character-visual {
        height: calc(100% - 76px) !important;
        min-height: 0 !important;
        overflow: visible !important;
        clip-path: none !important;
        -webkit-clip-path: none !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
        contain: none !important;
    }

    #characters .los-character-card:hover {
        z-index: 80 !important;
    }

    #characters .los-character-card:hover .los-character-image {
        transform: translateY(var(--characters-image-drop)) scale(var(--characters-hover-scale)) !important;
    }
}

@media (min-width: 901px) and (max-height: 900px) {
    #characters.los-characters {
        --characters-labels-y: 4px;
        --characters-image-drop: 18px;
        --characters-image-height: clamp(520px, 62vh, 700px);
        --characters-hover-scale: 1.08;
        --characters-text-bottom: clamp(60px, 11vh, 120px);
    }

    #characters .los-character-name {
        font-size: clamp(24px, 1.55vw, 36px) !important;
    }

    #characters .los-character-divider {
        margin: 10px auto 0 !important;
        width: min(250px, 86%) !important;
    }
}

/* ================================================= */
/* ABOUT — MAC GRID ALIGNMENT + VISIBLE NEWS */
/* ================================================= */

@media (min-width: 901px) and (max-height: 900px) {
    #about.los-about {
        --about-content-width: min(100%, 1320px);
        --about-main-gap: clamp(42px, 4vw, 64px);
        --about-text-width: 650px;
        --about-image-width: 560px;
        --about-news-top: 28px;
        --about-news-card-width: clamp(180px, 12vw, 230px);
    }

    #about .los-about-main {
        width: var(--about-content-width) !important;
        max-width: var(--about-content-width) !important;
        align-items: center !important;
    }

    #about .los-about-text {
        max-width: var(--about-text-width) !important;
    }

    #about .los-about-slider {
        max-width: var(--about-image-width) !important;
    }

    #about .los-text {
        font-size: clamp(14px, 0.9vw, 16px) !important;
        line-height: 1.45 !important;
    }

    #about .los-text + .los-text {
        margin-top: 12px !important;
    }

    #about .los-news-strip {
        width: var(--about-content-width) !important;
        max-width: var(--about-content-width) !important;
        margin: var(--about-news-top) auto 0 !important;
        grid-auto-columns: var(--about-news-card-width) !important;
    }

    #about .los-news-content {
        padding: 12px 10px 15px !important;
    }

    #about .los-news-title {
        margin: 0 0 12px !important;
        font-size: clamp(17px, 1.08vw, 22px) !important;
        line-height: 1.05 !important;
    }

    #about .los-news-date {
        font-size: 11px !important;
    }
}

@media (min-width: 901px) and (max-height: 780px) {
    #about.los-about {
        --about-content-width: min(100%, 1240px);
        --about-text-width: 610px;
        --about-image-width: 520px;
        --about-news-card-width: clamp(160px, 10.8vw, 200px);
        --about-news-top: 22px;
    }

    #about .los-news-content {
        padding: 9px 8px 12px !important;
    }
}

/* ================================================= */
/* GAMEPLAY — BIGGER IMAGES BUT TEXT STILL FITS */
/* ================================================= */

@media (min-width: 901px) and (max-height: 900px) {
    #gameplay .los-gameplay-grid {
        gap: clamp(30px, 3vw, 62px) !important;
    }

    #gameplay .los-gameplay-card-title {
        font-size: clamp(25px, 1.55vw, 36px) !important;
        margin-bottom: 8px !important;
    }

    #gameplay .los-gameplay-divider {
        max-width: 310px !important;
        margin: 10px auto 16px !important;
    }

    #gameplay .los-gameplay-image-wrap {
        height: clamp(340px, 43vh, 500px) !important;
    }

    #gameplay .los-gameplay-image {
        max-width: 112% !important;
        max-height: 112% !important;
    }

    #gameplay .los-gameplay-divider-bottom {
        margin: 16px auto 10px !important;
    }

    #gameplay .los-gameplay-text {
        width: min(100%, 370px) !important;
        font-size: clamp(12px, 0.76vw, 14px) !important;
        line-height: 1.32 !important;
    }
}

@media (min-width: 901px) and (max-height: 780px) {
    #gameplay .los-gameplay-image-wrap {
        height: clamp(300px, 39vh, 440px) !important;
    }

    #gameplay .los-gameplay-grid {
        gap: clamp(22px, 2.4vw, 48px) !important;
    }
}

/* ================================================= */
/* LOCATION — FIT GRID INTO ONE SCREEN / SMOOTH TRANSITION */
/* ================================================= */

@media (min-width: 901px) {
    #location.los-section-layout {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    #location.los-section-layout > .los-section-shell {
        height: calc(100vh - var(--los-nav-height)) !important;
        height: calc(100dvh - var(--los-nav-height)) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #location .los-section-content {
        height: calc(100vh - var(--los-nav-height) - var(--los-title-zone-height)) !important;
        height: calc(100dvh - var(--los-nav-height) - var(--los-title-zone-height)) !important;
        min-height: 0 !important;
        overflow: hidden !important;
        align-items: stretch !important;
    }

    #location .los-location-grid {
        height: 100% !important;
        min-height: 0 !important;
    }
}

@media (min-width: 901px) and (max-height: 900px) {
    #location .los-loc-overlay h3 {
        font-size: clamp(22px, 1.45vw, 34px) !important;
    }

    #location .los-loc-overlay p {
        font-size: clamp(12px, 0.76vw, 15px) !important;
        line-height: 1.32 !important;
    }
}

/* ================================================= */
/* CONTACTS — COMPACT LOW HEIGHT FIT */
/* ================================================= */

@media (min-width: 901px) and (max-height: 900px) {
    #contacts .los-contacts-wrap {
        width: min(100%, 1280px) !important;
    }

    #contacts .los-contacts-intro {
        margin-bottom: 26px !important;
    }

    #contacts .los-contacts-intro p {
        font-size: clamp(21px, 1.35vw, 29px) !important;
        line-height: 1.18 !important;
    }

    #contacts .los-contacts-main {
        gap: clamp(32px, 3.4vw, 58px) !important;
    }

    #contacts .los-contact-form {
        gap: 14px !important;
    }

    #contacts .los-form-field {
        gap: 8px !important;
    }

    #contacts .los-form-field span {
        font-size: 12px !important;
    }

    #contacts .los-form-field input,
    #contacts .los-form-field textarea {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }

    #contacts .los-form-field textarea {
        min-height: 126px !important;
    }

    #contacts .los-form-submit {
        min-width: 210px !important;
        padding: 14px 24px !important;
        font-size: 14px !important;
    }

    #contacts .los-contact-info-box {
        padding: 22px 24px !important;
    }

    #contacts .los-contact-info-box h3 {
        margin-bottom: 20px !important;
        font-size: clamp(22px, 1.45vw, 31px) !important;
    }

    #contacts .los-contact-line {
        padding: 12px 0 !important;
    }

    #contacts .los-contact-line span {
        margin-bottom: 6px !important;
        font-size: 11px !important;
    }

    #contacts .los-contact-line strong {
        font-size: clamp(14px, 0.9vw, 17px) !important;
        line-height: 1.28 !important;
    }

    #contacts .los-contact-map {
        height: 160px !important;
    }

    #contacts .los-contacts-footer {
        margin-top: 28px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #contacts .los-contacts-footer::before {
        margin-bottom: 18px !important;
    }

    #contacts .los-contacts-footer p {
        font-size: 11px !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
    }
}

@media (min-width: 901px) and (max-height: 780px) {
    #contacts .los-contact-map {
        height: 130px !important;
    }

    #contacts .los-form-field textarea {
        min-height: 105px !important;
    }
}

