/* ================= FIX GLOBAL ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ui-bg: rgba(44, 62, 80, 1);
    --ui-bg-opacity: rgba(44, 62, 80, 0.8);
    --btn-color: rgba(20, 181, 187, 0.3);
    --btn-color-hover: rgba(20, 181, 187, 0.6);
}


html,
body {
    padding-top: env(safe-area-inset-top);
    min-height: var(--tg-viewport-height, 100vh);
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    font-family: 'Exo 2', system-ui, sans-serif;

    flex-direction: column;

    min-height: 100dvh;

    -webkit-tap-highlight-color: transparent;
    background-color: rgba(0, 0, 0)
}

/* ================= GLOBE ================= */
#globe-container {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
    pointer-events: none;

    overflow: hidden;
}

#globe-container::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.85));

    pointer-events: none;
}

.atlas-card,
.atlas-card * {
    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
}

.card-content {
    background: rgba(0, 0, 0, 0.15);
    user-select: none;
    -webkit-user-select: none;
}

.atlas-card {
    -webkit-tap-highlight-color: transparent;
}

.atlas-card {
    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;

    -webkit-user-drag: none;

    text-decoration: none;
    color: inherit;
}

.atlas-card * {
    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
}


/* ================= HEADER ================= */
header {
    padding-top: calc(6px + var(--tg-top, 0px));
    /* было 10px */
    min-height: calc(60px + var(--tg-top, 0px));
    /* было 74px */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: left;


    padding: calc(10px + env(safe-area-inset-top)) 0 10px 0;

    min-height: 74px;

    display: flex;
    align-items: center;

    background: var(--ui-bg-opacity);
    backdrop-filter: blur(12px);

    z-index: 5;
}

/* ================= BOARD ================= */
.board {
    display: grid;

    gap: clamp(16px, 2vw, 32px);
    padding: clamp(16px, 4vw, 60px);

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    justify-content: center;
}

@media (max-width: 1100px) {
    .board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .board {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================= CARDS ================= */
.card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;

    border-radius: 16px;
    overflow: hidden;

    background-size: cover;
    background-position: center;

    background-color: rgba(0, 0, 0, 0.4);

    display: flex;
    align-items: flex-end;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);

    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.6s ease forwards;
}

.atlas-card--vertical {
    aspect-ratio: 2 / 3;
}

.atlas-card--vertical img {
    object-fit: contain;
    background: rgba(0, 0, 0, 0.5);
}

.card:nth-child(1) {
    animation-delay: .1s
}

.card:nth-child(2) {
    animation-delay: .2s
}

.card:nth-child(3) {
    animation-delay: .3s
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }
}

@media (hover: none) {
    .card:active {
        transform: scale(0.97);
    }
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

.card-content {
    position: relative;
    padding: 15px;
    color: white;
    width: 100%;
    text-align: center;
}

/* ================= MODAL ================= */
.modal {
    position: fixed;

    top: var(--header-height, 74px);
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: auto;

    background: rgba(0, 0, 0, 0.9);

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

    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    overflow: hidden;

    z-index: 99999;

    padding: 20px;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;

    max-width: 1100px;
    width: 100%;

    max-height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal img {
    width: 100%;
}

.modal-body {
    padding: 20px;
    color: white;
    text-align: center;

    overflow: hidden;
    flex: 1;

    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/* ================= FOOTER ================= */
footer {
    width: 100%;
    margin-top: auto;

    background: var(--ui-bg-opacity);
    backdrop-filter: blur(12px);

    color: #d1d5db;

    padding:
        20px 15px calc(20px + env(safe-area-inset-bottom));

    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

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

    width: 100%;
}

.footer-disclaimer {
    font-size: 12px;
    line-height: 1.5;
}

.footer-metrics {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.footer-copy {
    font-size: 12px;
    text-align: right;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-copy {
        text-align: center;
    }

    .card {
        aspect-ratio: 3 / 2;
    }

    .atlas-card--vertical {
        aspect-ratio: 2 / 3;
    }

    .header-inner {
        white-space: normal;
    }

    .header-text {
        font-size: 14px;
        line-height: 1.3;
    }

    .modal-body {
        max-height: none;
        overflow-y: auto;
        flex: none;
    }
}

/* layering */
.board,
footer {
    position: relative;
    z-index: 1;
}

.modal-layout {
    display: flex;
    flex-direction: column;
}

.modal-image {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .modal-image img {
        max-height: 55vh;
    }
}

@media (min-width: 768px) {
    .modal-layout {
        flex-direction: row;
        height: 90vh;
    }

    .modal-image {
        width: 70%;
        height: auto;
    }

    .modal-image img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
    }

    .modal-body {
        width: 30%;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .nav-btn.left {
        left: 20px;
    }

    .nav-btn.right {
        right: 20px;
    }
}

/* ================= MODAL NAV ================= */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.5);
    border: none;

    width: 48px;
    height: 48px;
    border-radius: 50%;

    cursor: pointer;

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

    z-index: 5;
    transition: 0.25s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.nav-btn.left {
    left: 12px;
}

.nav-btn.right {
    right: 12px;
}

.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .nav-btn {
        width: 50px;
        height: 50px;
    }

    .modal-image img {
        max-height: 55vh;
    }

    .modal-content {
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .modal-layout {
        height: auto;
    }
}

/* ================= ARROW ICON ================= */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.6);
    border: none;

    width: 50px;
    height: 50px;
    border-radius: 50%;

    cursor: pointer;

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

    z-index: 20;
    transition: 0.2s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.nav-btn::before {
    content: "";
    width: 14px;
    height: 14px;

    border-top: 3px solid white;
    border-right: 3px solid white;

    transform: rotate(45deg);
    transition: 0.2s;
}

.nav-btn.left::before {
    transform: rotate(-135deg);
}

.nav-btn.right::before {
    transform: rotate(45deg);
}

.nav-btn.left {
    left: 10px;
}

.nav-btn.right {
    right: 10px;
}

.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ================= SLIDE ANIMATION ================= */

.modal-image img,
.modal-body {
    transition: transform 0.35s cubic-bezier(.22, .61, .36, 1),
        opacity 0.25s ease;
}

.slide-out-left {
    transform: translateX(-80px);
    opacity: 0;
}

.slide-out-right {
    transform: translateX(80px);
    opacity: 0;
}

.slide-in-left {
    transform: translateX(-80px);
    opacity: 0;
}

.slide-in-right {
    transform: translateX(80px);
    opacity: 0;
}

/* ================= HEADER LAYOUT ================= */

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    padding: 0 10px;

    flex-wrap: nowrap;
}

#globeViz {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    transform: rotate(23.5deg);
}

.header-text {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);

    line-height: 1.25;
    font-size: clamp(12px, 1.6vw, 20px);

    text-align: left;

    white-space: normal;
    overflow-wrap: break-word;

    flex: 1;
    font-size: 20px;
}

@media (max-width: 480px) {
    .header-text {
        font-size: 14px;
    }
}

@media (max-width: 900px) {

    .header-inner {
        align-items: center;
    }
}

@media (max-width: 1200px) {
    .header-text {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .header-text {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .header-text {
        font-size: 14px;
        line-height: 1.3;
    }
}

@media (max-width: 400px) {
    .header-text {
        font-size: 12px;
        line-height: 1.35;
    }
}

/* ================= LAYOUT WITH SIDEBAR ================= */

html,
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout {
    flex: 1;
    display: flex;
    overflow: visible;
}

.main-content {
    z-index: 1;
    margin-top: 74px;
    margin-left: 220px;
    width: calc(100% - 220px);
}

@media (max-width: 768px) {
    .sidebar_subnav {
        position: static;
        display: block !important;

        max-height: 0;
        overflow: hidden;

        transition: max-height 0.35s ease;
        padding-left: 15px;
    }

    .sidebar_item.open>.sidebar_subnav {
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.sidebar {
    pointer-events: auto;
    z-index: 6;
    width: 220px;
    font-size: 1.05rem;
    background: var(--ui-bg-opacity);
    backdrop-filter: blur(12px);


    color: white;

    height: calc(100dvh - 74px);
    z-index: 4;
    overflow-y: auto;
    overflow-x: visible;
    position: fixed;
    top: 74px;
    left: 0;
    padding-bottom: 50px;

    width: 220px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    will-change: auto;
}

.sidebar_nav,
.sidebar_subnav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar_nav {
    max-height: 100%;
    overflow-y: auto;
}

.sidebar_item {
    position: relative;
    cursor: pointer;
}

.sidebar_item .has-children {
    cursor: default;
}

.sidebar_item_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar_item:hover>.sidebar_item_link {
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar_selected>.sidebar_item_link {
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar_subnav {
    background: var(--ui-bg);
    border-radius: 0 10px 10px 0;
    z-index: 1000;
    min-width: 200px;
    z-index: 1000;
}

@media (min-width: 769px) {
    .sidebar_subnav {
        position: fixed;
        display: none;

        min-width: 220px;
        z-index: 9999;

        background: var(--ui-bg);

        border-radius: 0 10px 10px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar_subnav.open {
        display: block;
    }

    footer {
        margin-left: 220px;
        width: calc(100% - 220px);
    }

    .modal {
        left: 220px;
        width: calc(100% - 220px);
    }
}

.sidebar_subnav .sidebar_item_link {
    padding-left: 30px;
    font-size: 0.95em;
    opacity: 0.9;
}

.sidebar_subnav .sidebar_item:hover>.sidebar_item_link {
    background-color: rgba(255, 255, 255, 0.1);
}

.arrow {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.sidebar_item:hover>.sidebar_item_link .arrow {
    opacity: 0.7;
    transform: rotate(0deg);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.sidebar_item.open>.sidebar_item_link .arrow {
    transform: rotate(90deg);
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 74px;
        left: 0;

        width: 100%;
        height: calc(100vh - 74px);

        transform: translateX(-100%);
        transition: transform 0.35s ease;

        z-index: 20;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar_item:hover>.sidebar_subnav {
        display: none;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        overflow: visible;
    }
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;

    width: 40px;
    height: 40px;

    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    width: 22px;
    background: white;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }
}

/* ================= CUSTOM SCROLL ================= */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#submenu-root {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.floating-submenu {
    position: fixed;
    min-width: 220px;

    background: rgba(44, 62, 80, 0.95);

    border-radius: 0;
    box-shadow: none;

    padding: 0;
}

.floating-submenu .sidebar_item_link {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
}

.teacher,
.pupils {
    grid-column: 1 / -1;
}

.teacher h1,
.pupils h1 {
    margin-bottom: 20px;
    font-size: clamp(22px, 3vw, 32px);
    color: white;
    text-align: left;
}

.cards-grid {
    display: grid;
    gap: clamp(16px, 2vw, 30px);
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.teacher,
.pupils {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: clamp(16px, 3vw, 30px);
}

.board {
    gap: 50px;
}

/* ================= INTRO ================= */

.intro {
    position: relative;
    z-index: 1;

    max-width: 1200px;
    margin: 100px auto 40px;
    padding: clamp(16px, 3vw, 40px);

    border-radius: 20px;
}

.intro-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.intro-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.intro-text h1 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 10px;
}

.intro-text h2 {
    font-size: clamp(16px, 2vw, 22px);
    margin-bottom: 20px;
    opacity: 0.85;
}

.intro-text p {
    margin-bottom: 15px;
}

.intro-image {
    width: 280px;
    flex-shrink: 0;
}

.intro-image img {
    width: 100%;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .intro-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .intro-image {
        width: 70%;
        max-width: 260px;
        margin: 15px 0;
    }

    .intro-text {
        text-align: left;
    }
}

/* ================= AWARDS TITLE ================= */

.awards-title {
    position: relative;
    z-index: 1;

    max-width: 1200px;
    margin: 40px auto 10px;
    padding: 0 clamp(16px, 4vw, 60px);
}

.awards-title h2 {
    font-size: clamp(24px, 3vw, 36px);
    color: white;

    font-weight: 600;

    position: relative;
    display: inline-block;
}

.awards-title h2::after {
    content: "";
    display: block;
    margin-top: 8px;

    width: 60%;
    height: 2px;

    background: linear-gradient(to right,
            rgba(25, 0, 255, 0.8),
            transparent);
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.canvas_main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.counter {
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;

    color: #fff;
    font-weight: 600;
}

.footer-telegram {
    margin-top: 10px;
}

.footer-telegram a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);

    color: white;
    text-decoration: none;
    font-size: 14px;

    transition: all 0.25s ease;
}

.footer-telegram a:hover {
    background: rgba(0, 136, 204, 0.8);
    transform: translateY(-2px);
}

.tg-icon {
    width: 16px;
    height: 16px;

    display: inline-block;

    background: white;
    mask: url("https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/telegram.svg") no-repeat center;
    -webkit-mask: url("https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/telegram.svg") no-repeat center;

    mask-size: contain;
    -webkit-mask-size: contain;
}

@media (max-width: 768px) {
    .footer-telegram {
        text-align: center;
    }
}

.footer-telegram-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 10px;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;

    font-size: 13px;
    line-height: 1;

    transition: 0.2s;
}

.tg-btn:hover {
    background: rgba(0, 136, 204, 0.8);
    transform: translateY(-1px);
}

.tg-icon {
    width: 14px;
    height: 14px;
}

.footer-links.inline {
    display: flex;
    gap: 8px;
}

.footer-links.inline img {
    height: 24px;
    width: auto;
}

.footer-links.inline a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 4px 6px;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.05);
    transition: 0.25s;
}

.footer-links.inline a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ================= EXTRA SMALL DEVICES ================= */
@media (max-width: 480px) {

    .footer-container {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .footer-disclaimer,
    .footer-metrics,
    .footer-copy {
        text-align: center;
    }

    .footer-telegram-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .tg-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-links.inline {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer-links.inline a {
        padding: 6px;
    }

    .footer-links.inline img {
        height: 22px;
    }
}

/* ================= ATLAS CARDS ================= */

.atlas-card {
    position: relative;
    overflow: hidden;
}

.atlas-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.atlas-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.2));

    z-index: 1;
}

.atlas-card .card-content {
    position: relative;
    z-index: 2;

    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;

    text-align: center;
}

@media (hover: hover) {
    .atlas-card:hover img {
        transform: scale(1.08);
    }
}

/* ================= ATLAS TITLE ================= */

.back-container {
    text-align: center;
}

.atlas-title {
    text-align: center;
    position: relative;
    z-index: 1;

    max-width: 1200px;
    margin: 110px auto 10px;
    padding: 0 clamp(16px, 4vw, 60px);
}

.atlas-title h1 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    color: white;

    display: inline-block;
    position: relative;

    letter-spacing: 0.02em;

    opacity: 0;
    transform: translateY(20px);
    animation: titleFade 0.8s ease forwards;
}

.atlas-title h1::after {
    content: "";
    display: block;

    margin-top: 10px;

    width: 70%;
    height: 3px;
    border-radius: 2px;

    background: linear-gradient(90deg,
            rgba(0, 140, 255, 0.9) 0%,
            rgba(0, 255, 200, 0.9) 60%,
            rgba(0, 255, 200, 0.0) 100%);
}

@keyframes titleFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= PAGE BACKGROUND ================= */

.page-bg {
    position: fixed;
    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: scale(1);
    animation: bgZoom 20s ease-in-out infinite alternate;

    z-index: 0;
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.85));

    pointer-events: none;
}

@keyframes bgZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* ================= ATLAS LIST ================= */

.atlas-list {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 clamp(16px, 4vw, 40px);

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

.atlas-row {
    display: flex;
    align-items: center;

    text-decoration: none;
    color: white;

    font-size: clamp(16px, 2vw, 22px);
    font-weight: 500;

    padding: 10px 0;

    transition: 0.25s ease;
}

.atlas-page {
    white-space: nowrap;
}

.atlas-dots {
    flex: 1;
    height: 1px;
    margin: 0 12px;

    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 6px 2px;
    background-repeat: repeat-x;
    background-position: center;
}

.atlas-label {
    white-space: nowrap;
    opacity: 0.7;
    font-size: 0.9em;
}

@media (hover: hover) {
    .atlas-row:hover {
        transform: translateX(6px);
        color: #7dd3fc;
    }

    .atlas-row:hover .atlas-dots {
        background-image: radial-gradient(circle, rgba(125, 211, 252, 0.7) 1px, transparent 1px);
    }
}

@media (max-width: 600px) {
    .atlas-row {
        font-size: 16px;
    }
}

/* ================= BACK BUTTON ================= */

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;

    border-radius: 12px;

    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;

    background: var(--btn-color);
    transition: 0.25s ease;
}

.back-arrow {
    width: 12px;
    height: 12px;

    border-left: 2px solid white;
    border-bottom: 2px solid white;

    transform: rotate(45deg);
    transform-origin: center;
    display: inline-block;

    transition: transform 0.25s ease;
}

@media (hover: hover) {
    .back-btn:hover {
        background: var(--btn-color-hover);
    }

    .back-btn:hover .back-arrow {
        transform: translateX(-4px) rotate(45deg);
    }
}

@media (max-width: 600px) {
    .back-btn {
        font-size: 14px;
        padding: 8px 14px;
    }
}

/* ================= REBUS GRID ================= */

.rebus_container {
    display: grid;
    gap: clamp(16px, 2vw, 30px);
    padding: clamp(16px, 3vw, 40px);

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    max-width: 1200px;
    margin: 0 auto;
}

/* ================= CARD ================= */

.rebus_card {
    perspective: 1000px;
    cursor: pointer;
}

.rebus_inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.1;

    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.rebus_card.flipped .rebus_inner {
    transform: rotateY(180deg);
}

.rebus_front,
.rebus_back {
    position: absolute;
    inset: 0;

    border-radius: 16px;
    overflow: hidden;

    backface-visibility: hidden;

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

.rebus_front {
    background: rgba(0, 0, 0, 0.4);
}

.rebus_front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rebus_back {
    background: rgba(20, 20, 20, 0.95);
    transform: rotateY(180deg);

    padding: 20px;
}

.rebus_answer {
    color: white;
    font-size: clamp(16px, 2vw, 22px);
    text-align: center;
    line-height: 1.4;
}

@media (hover: hover) {
    .rebus_card:hover {
        transform: translateY(-6px);
    }
}

/* ================= NOMENCLATURE ================= */

.class-block {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.class-block h2 {
    font-size: clamp(24px, 3vw, 34px);
    color: white;
    margin-bottom: 16px;

    position: relative;
    display: inline-block;
}

.class-block h2::after {
    content: "";
    display: block;
    margin-top: 6px;

    width: 60%;
    height: 2px;

    background: linear-gradient(to right,
            rgba(0, 140, 255, 0.9),
            rgba(0, 255, 200, 0.4),
            transparent);
}

.nomenklatura-text {
    color: rgba(255, 255, 255, 0.92);

    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.75;

    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;

    padding: 22px 24px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    column-count: 2;
    column-gap: 40px;

    text-align: justify;

    transition: 0.25s ease;
}

@media (hover:hover) {
    .nomenklatura-text:hover {
        background: rgba(255, 255, 255, 0.07);
        transform: translateY(-2px);
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 900px) {
    .nomenklatura-text {
        column-count: 1;
    }
}

.class-block+.class-block {
    margin-top: 50px;
}

/* ================= REBUS TIMER ================= */

.rebus_timer {
    position: absolute;
    bottom: 0;
    left: 0;

    height: 4px;
    width: 100%;

    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.rebus_timer::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(90deg, #00c6ff, #0072ff);

    transform: scaleX(0);
    transform-origin: left;
}

.rebus_card.flipped .rebus_timer::after {
    animation: timerBar 3s linear forwards;
}

@keyframes timerBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.rebus-subtitle {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ================= CLASS WITH PRESENTATION ================= */

.class-flex {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.class-flex .nomenklatura-text {
    flex: 1.2;
}

.presentation-box {
    flex: 1;
    position: relative;

    border-radius: 18px;
    overflow: hidden;
}

.presentation-box iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;

    border: none;
}

@media (max-width: 900px) {
    .class-flex {
        flex-direction: column;
    }

    .presentation-box iframe {
        min-height: 400px;
    }
}

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

.contacts-section {
    max-width: 900px;
    margin: 100px auto 40px;

    display: grid;
    gap: 20px;
    width: 100%;
    min-width: 0;

    padding: 0 16px;
    padding: 0 clamp(12px, 4vw, 24px);
}

.contact-card {
    display: flex;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    gap: 18px;

    padding: 18px 22px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.05);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transition: 0.25s ease;

    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(120deg,
            rgba(0, 140, 255, 0.15),
            rgba(0, 255, 200, 0.05),
            transparent);

    opacity: 0;
    transition: 0.3s;
}

@media (hover:hover) {
    .contact-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .contact-card:hover::before {
        opacity: 1;
    }
}

.contact-icon {
    user-select: none;
    font-size: 28px;
    flex-shrink: 0;

    width: 50px;
    height: 50px;

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

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);
}

.contact-content {
    min-width: 0;
    flex: 1;
}

@media (max-width: 600px) {
    .contacts-title h2 {
        flex-direction: column;
        gap: 8px;
    }

    .ornament {
        width: 60px;
        height: 20px;
    }

    .ornament.right {
        transform: none;
    }
}

.contact-content a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: white;
    font-size: 16px;
}

.contact-content h3 {
    user-select: none;
    margin: 0 0 6px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-content a {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 18px;
    font-weight: 500;

    text-decoration: none;

    transition: 0.2s;
}

.contact-content a:hover {
    color: #7dd3fc;
}

.teacher-card .contact-icon {
    background: rgba(0, 140, 255, 0.2);
}

.dev-card .contact-icon {
    background: rgba(0, 255, 200, 0.2);
}

@media (max-width: 600px) {
    .contact-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .contact-header {
        flex-direction: row;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .contact-content a {
        font-size: 16px;
    }
}


/* ================= CONTACTS TITLE PREMIUM ================= */

.contacts-title {
    text-align: center;
    margin-bottom: 40px;
}

.contacts-title h2 {
    font-family: 'Playfair Display', serif;

    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;

    color: white;
    letter-spacing: 0.08em;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    opacity: 0;
    transform: translateY(20px);
    animation: titleFade 0.8s ease forwards;
}

.ornament {
    width: 80px;
    height: 20px;
    display: flex;
    align-items: center;
}

.ornament svg {
    width: 100%;
    height: 100%;
}

.ornament path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.ornament.right {
    transform: scaleX(-1);
}

.contacts-title::after {
    content: "";
    display: block;

    margin: 14px auto 0;

    width: 140px;
    height: 1px;

    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
}

.contacts-title h2 {
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.15),
        0 0 18px rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .ornament {
        width: 50px;
    }

    .contacts-title h2 {
        gap: 10px;
        font-size: 26px;
    }
}

/* ================= ORNAMENT PREMIUM CURL ================= */

.ornament {
    width: 100px;
    height: 30px;
    display: flex;
    align-items: center;
}

.ornament svg {
    width: 100%;
    height: 100%;
}

.ornament path {
    fill: none;

    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;

    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

.ornament.right {
    transform: scaleX(-1);
}

.ornament path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw 2.25s ease forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ================= TESTS PAGE ================= */

.tests-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    color: white;
}

.tests-hero {
    text-align: center;
    margin-bottom: 40px;
}

.tests-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 10px;
}

.tests-hero p {
    opacity: 0.7;
    font-size: 18px;
}

.tests-block {
    margin-bottom: 50px;
}

.tests-block.center {
    text-align: center;
}

.btn-download {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 12px;

    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    text-decoration: none;
    font-weight: 600;

    transition: 0.25s;
}

.btn-download:hover {
    transform: translateY(-2px);
}

.class-card {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.04);
}

.class-card h3 {
    margin-bottom: 15px;
}

.test-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.test-link {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 16px;
    border-radius: 10px;

    text-decoration: none;
    color: white;

    background: rgba(255, 255, 255, 0.05);
    transition: 0.25s;
}

.test-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.test-name {
    opacity: 0.9;
}

.test-download {
    font-size: 14px;
    opacity: 0.6;
}

/* ================= VIDEO ================= */

.video-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;

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

    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;

    transition: 0.3s;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.85);
    position: relative;
}

.play-btn::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 22px;

    border-left: 18px solid black;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
}

.success {
    font-size: 32px;
}

/* ================= VIDEO FULLSCREEN MOBILE ================= */

.video-fullscreen {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 999999 !important;

    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    background: black;

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

.video-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-wrapper {
    transition: all 0.35s ease;
}

/* ================= VIDEO PREVIEW ================= */

.video-preview {
    position: relative;
    max-width: 700px;
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.video-preview img {
    width: 100%;
    display: block;
}

.play-btn.big {
    position: absolute;
    inset: 0;
    margin: auto;

    width: 80px;
    height: 80px;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);
}

/* ================= VIDEO MODAL ================= */

.video-modal {
    position: fixed;
    inset: 0;

    background: black;

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

    z-index: 999999;

    opacity: 0;
    pointer-events: none;

    transition: 0.3s;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    inset: 0;

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

    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.video-modal.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    position: relative;
}

.play-btn::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 22px;

    border-left: 18px solid black;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

/* ================= PRESENTATIONS ================= */

.presentations-intro {
    max-width: 1100px;
    margin: 100px auto 30px;
    padding: 0 clamp(16px, 4vw, 40px);

    text-align: center;
}

.presentations-intro h2 {
    font-size: clamp(26px, 4vw, 38px);
    color: white;
    margin-bottom: 10px;
}

.presentations-intro .extended-presentation-title {
    font-size: 1.5rem !important;
    color: #dadada;
    text-align: justify;
    position: relative;
    display: block;

    border-radius: 18px;
    overflow: hidden;
    padding: 10px;

    text-decoration: none;

    background: rgba(255, 255, 255, 0.05);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transform: translateY(20px);
    opacity: 0;

    animation: cardFade 0.6s ease forwards;
}

.extended-presentation-title a {
    display: inline-block;
    margin-top: 6px;

    padding: 6px 12px;
    border-radius: 8px;

    color: #7dd3fc;
    text-decoration: none;
    font-weight: 500;

    background: rgba(125, 211, 252, 0.08);

    position: relative;
    overflow: hidden;

    transition: all 0.25s ease;
}

.extended-presentation-title a::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(120deg,
            rgba(0, 140, 255, 0.25),
            rgba(0, 255, 200, 0.15),
            transparent);

    opacity: 0;
    transition: 0.3s;
}

.extended-presentation-title a:hover {
    color: #fff;
    transform: translateY(-1px);

    background: rgba(0, 136, 204, 0.35);
}

.extended-presentation-title a:hover::before {
    opacity: 1;
}

.presentations-intro p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.presentations-grid {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 clamp(16px, 4vw, 40px);

    display: grid;
    gap: clamp(16px, 2vw, 28px);

    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.presentation-card {
    position: relative;
    display: block;

    border-radius: 18px;
    overflow: hidden;

    aspect-ratio: 16 / 10;

    text-decoration: none;

    background: rgba(255, 255, 255, 0.05);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transform: translateY(20px);
    opacity: 0;

    animation: cardFade 0.6s ease forwards;
}

.presentation-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.presentation-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;

    padding: 16px;

    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.2),
            transparent);
}

.presentation-title {
    color: white;
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 600;

    line-height: 1.3;
}

@media (hover: hover) {
    .presentation-card:hover img {
        transform: scale(1.08);
    }

    .presentation-card:hover {
        transform: translateY(-6px);
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}

@keyframes cardFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.presentation-card:nth-child(1) {
    animation-delay: .05s
}

.presentation-card:nth-child(2) {
    animation-delay: .1s
}

.presentation-card:nth-child(3) {
    animation-delay: .15s
}

.presentation-card:nth-child(4) {
    animation-delay: .2s
}

.presentation-card:nth-child(5) {
    animation-delay: .25s
}

@media (max-width: 600px) {
    .presentation-card {
        aspect-ratio: 16 / 11;
    }
}

.presentation-iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;

    border: none;

    background: transparent;
}

.presentation-box {
    position: relative;
    overflow: hidden;
}

.presentation-iframe {
    display: block;
}

/* ================= FANCY TITLE ================= */

.fancy-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    color: white;

    display: inline-block;
    text-align: center;
    width: 100%;
    position: relative;

    margin-bottom: 20px;
}

.fancy-title::after {
    content: "";
    display: block;

    margin: 10px auto 0;

    width: 70%;
    height: 3px;
    border-radius: 2px;

    background: linear-gradient(90deg,
            rgba(0, 140, 255, 0.9) 0%,
            rgba(0, 255, 200, 0.9) 60%,
            rgba(0, 255, 200, 0.0) 100%);
}

.presentation-preview {
    position: relative;
    cursor: pointer;
    max-width: 600px;
    margin: auto;
}

.presentation-preview img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.nomenklatura-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;

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

    font-size: 48px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px 30px;

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

.presentation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 999999;
}

.presentation-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 6px 14px;
    cursor: pointer;
    z-index: 1000000;
}

@media (max-width: 768px) {
    .close-btn {
        font-size: 22px;
        top: 10px;
        right: 10px;
    }
}

/* ================= GLOBUS PAGE ================= */

.globus-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.globus-preview {
    margin: 30px 0 50px;
    border-radius: 18px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.05);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.globus-preview-frame {
    width: 100%;
    height: 500px;
    border: none;
}

.globus-title {
    margin-bottom: 25px;
}

.globus-title h2 {
    font-size: clamp(24px, 3vw, 34px);
    color: white;

    position: relative;
    display: inline-block;
}

.globus-title h2::after {
    content: "";
    display: block;
    margin-top: 6px;

    width: 60%;
    height: 2px;

    background: linear-gradient(to right,
            rgba(0, 140, 255, 0.9),
            rgba(0, 255, 200, 0.4),
            transparent);
}

/* ===== TASK LIST (как единый лист) ===== */

.globus-grid {
    display: flex;
    flex-direction: column;

    gap: 0;

    max-width: 800px;
    margin: 0 auto;
}

.globus-card {
    border-radius: 0;
    overflow: hidden;

    background: transparent;

    box-shadow: none;

    padding: 0;

    display: block;
}

.globus-card img {
    width: 100%;
    height: auto;

    max-height: none;
    object-fit: contain;

    display: block;
}

/* ===== MAIN TITLE ===== */

.globus-main-title {
    max-width: 800px;
    margin: 20px auto 30px;
}

.globus-main-title h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: white;

    letter-spacing: 0.02em;

    position: relative;
    display: inline-block;
}

.globus-main-title h1::after {
    content: "";
    display: block;

    margin-top: 10px;

    width: 70%;
    height: 3px;
    border-radius: 2px;

    background: linear-gradient(90deg,
            rgba(0, 140, 255, 0.9) 0%,
            rgba(0, 255, 200, 0.9) 60%,
            rgba(0, 255, 200, 0.0) 100%);
}

/* ================= VIDEO BACKGROUND ================= */

.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;

    min-width: 100%;
    min-height: 100%;

    width: auto;
    height: auto;

    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-bg::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.85));

    pointer-events: none;
}

.fancy-title-wrapper {
    text-align: center;
}

/* ===== INTRO TEXT ===== */

.globus-intro {
    max-width: 800px;
    margin: 0 auto 40px;

    padding: 24px 28px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.04);

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

    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.7;

    text-align: justify;
}

.globus-intro p {
    margin-bottom: 14px;
}

.globus-intro-end {
    margin-top: 10px;
    font-weight: 500;
    text-align: right;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .globus-intro {
        padding: 18px 16px;
    }

    .globus-intro-end {
        text-align: left;
    }
}

/* ===== VIDEO GRID ===== */
.videos-grid {
    max-width: 1100px;
    margin: 100px auto 40px;
    padding: 0 clamp(16px, 4vw, 40px);

    display: grid;
    gap: 24px;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;

    aspect-ratio: 16 / 10;

    background: rgba(255, 255, 255, 0.05);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: flex-end;

    padding: 14px;

    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.2),
            transparent);
}

.video-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.video-modal {
    position: fixed;
    inset: 0;

    background: black;

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

    opacity: 0;
    pointer-events: none;

    transition: 0.3s;
    z-index: 999999;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-player-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    inset: 0;

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

    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.video-modal.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    position: relative;
}

.play-btn::after {
    content: "";
    position: absolute;
    left: 32px;
    top: 26px;

    border-left: 20px solid black;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;

    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;

    padding: 8px 12px;
    border-radius: 8px;

    cursor: pointer;
    z-index: 10;
}

.video-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 10px 14px;

    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7),
            transparent);

    opacity: 0;
    transition: 0.25s;
}

.video-player-wrapper:hover .video-controls {
    opacity: 1;
}

.progress-bar {
    height: 20px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
}

.progress-buffer {
    position: absolute;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.3);
}

.progress-played {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    /* 🔵 */
}

.controls-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    position: relative;
    z-index: 10;
}

#playPauseBtn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

#timeDisplay {
    font-size: 13px;
    opacity: 0.85;
}

.play-toggle {
    width: 36px;
    height: 36px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.play-toggle::before {
    content: "";
    position: absolute;

    left: 11px;
    top: 50%;
    transform: translateY(-50%);

    border-left: 14px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.play-toggle {
    width: 36px;
    height: 36px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.play-toggle .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.play-toggle:not(.pause) .icon {
    width: 0;
    height: 0;

    border-left: 14px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.play-toggle.pause .icon {
    width: 14px;
    height: 18px;
    display: flex;
    justify-content: space-between;

    border: none;
}

.play-toggle.pause .icon::before,
.play-toggle.pause .icon::after {
    content: "";
    width: 4px;
    height: 100%;
    background: white;
}

#playPauseBtn::before {
    content: none;
}

.progress-played::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;

    width: 12px;
    height: 12px;

    background: #00c6ff;
    border-radius: 50%;

    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(0, 198, 255, 0.8);
}

.progress-bar:hover .progress-played::after {
    transform: translateY(-50%) scale(1.3);
}

.video-modal.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-modal.hide-ui .video-controls {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-controls {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.progress-bar {
    cursor: pointer;
    touch-action: none;
}

.progress-bar {
    height: 4px;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 8px;
}

.progress-bar:active {
    height: 10px;
}

.progress-played {
    position: relative;
}

.progress-bar:hover .progress-played::after,
.progress-bar:active .progress-played::after {
    opacity: 1;
}

#timeDisplay {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    user-select: none;
    pointer-events: none;
    min-width: 50px;
    text-align: left;
}

.video-overlay {
    pointer-events: none;
}

.video-overlay .play-toggle {
    pointer-events: auto;
}

.fullscreen-btn {
    margin-left: auto;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.fullscreen-btn .icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fullscreen-btn .expand {
    opacity: 1;
}

.fullscreen-btn.active .expand {
    opacity: 0;
}

.fullscreen-btn.active .collapse {
    opacity: 1;
}

.progress-played::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: #1e90ff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.progress-bar:hover .progress-played::after {
    transform: translate(50%, -50%) scale(1);
}

.video-modal.dragging .progress-played::after {
    transform: translate(50%, -50%) scale(1.2);
}

.progress-bar {
    position: relative;
}

.progress-bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;

    top: -16px;
    height: 32px;

    pointer-events: auto;
}

.videos-header {
    margin-bottom: 24px;
    max-width: 700px;
}

.videos-description {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.videos-header {
    text-align: center;
    margin: 40px auto 30px;
    max-width: 900px;
    padding: 0 20px;
}

.videos-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.videos-header p {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .videos-header {
        margin: 25px auto 20px;
    }

    .videos-header h1 {
        font-size: 24px;
    }

    .videos-header h1::after {
        width: 60%;
        height: 3px;
    }

    .videos-header p {
        font-size: 14px;
    }
}

.video-card {
    position: relative;
    cursor: pointer;
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);

    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);

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

    transition: 0.25s ease;
}

.video-card .play-icon::before {
    content: "";
    display: block;
    margin-left: 4px;

    width: 0;
    height: 0;

    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.75);
}

@media (max-width: 600px) {
    .video-card .play-icon {
        width: 55px;
        height: 55px;
    }

    .video-card .play-icon::before {
        border-left: 16px solid white;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }
}

.video-darken {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    transition: 0.3s;
    z-index: 1;
}

.video-card:hover .video-darken {
    background: rgba(0, 0, 0, 0.4);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.contact-header h3 {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);

    white-space: normal;
    overflow-wrap: break-word;
}

/* ================= BOOKS ================= */

.books-page {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 clamp(16px, 4vw, 40px);
    color: white;
}

.books-disclaimer {
    margin: 20px auto 40px;
    padding: 16px 20px;

    max-width: 800px;

    font-size: 14px;
    line-height: 1.6;

    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.books-disclaimer a {
    color: #7dd3fc;
    text-decoration: none;
}

.books-grid {
    display: grid;
    gap: 40px;

    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.book-card {
    text-decoration: none;
    color: white;
    text-align: center;
}

.book-3d {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;

    transform-style: preserve-3d;
    perspective: 1000px;

    transition: transform 0.4s ease;
}

.book-cover {
    position: absolute;
    inset: 0;

    border-radius: 8px;
    overflow: hidden;

    transform: rotateY(-20deg);
    transform-origin: left;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.6);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-spine {
    position: absolute;
    top: 0;
    left: 0;

    width: 12px;
    height: 100%;

    background: rgba(255, 255, 255, 0.15);

    transform: rotateY(90deg) translateX(-6px);
    transform-origin: left;

    border-radius: 2px;
}

@media (hover: hover) {
    .book-card:hover .book-3d {
        transform: rotateY(10deg) scale(1.05);
    }
}

.book-title {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.85;
}

.presentations-description {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 clamp(16px, 4vw, 40px);

    display: flex;
    justify-content: flex-end;
}

.presentations-description-inner {
    max-width: 800px;
    width: 100%;

    padding: 22px 26px;
    border-radius: 18px;

    background: rgba(0, 0, 0, 0.2);

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

    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.7;

    text-align: justify;
}

.presentations-description-inner p {
    margin-bottom: 14px;
    text-align: justify;
    margin-bottom: 14px;
}

.presentations-sign {
    margin-top: 12px;
    text-align: right;
    font-style: italic;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .presentations-description {
        justify-content: center;
    }

    .presentations-description-inner {
        padding: 18px 16px;
    }
}

.presentations-list {
    margin: 10px 0 14px;
    padding-left: 16px;
    list-style: none;
}

.presentations-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;

    text-align: left;
}

.presentations-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);

    color: #7dd3fc;
    font-size: 18px;
    line-height: 1;
}

/* ================= PRESENTATIONS CTA ================= */

.presentations-cta {
    max-width: 1200px;
    margin: 10px auto 30px;
    padding: 0 clamp(16px, 4vw, 40px);

    display: flex;
    justify-content: center;
}

.presentations-cta-text {
    padding: 14px 20px;
    border-radius: 14px;

    background: rgba(0, 140, 255, 0.12);

    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 500;

    text-align: center;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ================= SIDEBAR GROUPS ================= */
.sidebar_group_2>.sidebar_item_link {
    background: linear-gradient(90deg,
            rgba(255, 80, 160, 0.12) 0%,
            rgba(255, 80, 160, 0.10) 70%,
            rgba(120, 160, 255, 0.06) 100%);

    border-left: 3px solid rgba(255, 80, 160, 1);
}

.sidebar_group_2:hover>.sidebar_item_link {
    background: linear-gradient(90deg,
            rgba(255, 80, 160, 0.18) 0%,
            rgba(255, 80, 160, 0.14) 70%,
            rgba(120, 160, 255, 0.08) 100%);
}

.sidebar_group_2.sidebar_selected>.sidebar_item_link {
    background: linear-gradient(90deg,
            rgba(255, 80, 160, 0.28) 0%,
            rgba(255, 80, 160, 0.25) 70%,
            rgba(120, 160, 255, 0.23) 100%);
}


.sidebar_group_3>.sidebar_item_link {
    background: linear-gradient(90deg,
            rgba(0, 140, 255, 0.18),
            rgba(0, 255, 200, 0.08));

    border-left: 3px solid rgba(0, 255, 200, 0.8);
    font-weight: 600;
}

.sidebar_group_3:hover>.sidebar_item_link {
    background: linear-gradient(90deg,
            rgba(0, 140, 255, 0.28),
            rgba(0, 255, 200, 0.12));
}

.sidebar_group_3.sidebar_selected>.sidebar_item_link {
    background: linear-gradient(90deg,
            rgba(0, 140, 255, 0.45),
            rgba(0, 255, 200, 0.26));
}

.lp {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px clamp(16px, 4vw, 60px);
}

.lp-hero-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.lp-hero-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
}

.lp-hero-text h1 {
    font-size: clamp(30px, 4vw, 46px);
    margin-bottom: 8px;
}

.lp-hero-text h2 {
    margin-bottom: 20px;
    font-size: clamp(18px, 2vw, 24px);
    opacity: 0.8;
}

.lp-hero-text p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.lp-hero-photo {
    width: 260px;
}

.lp-hero-photo img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lp-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 22px;

    border-radius: 14px;
    text-decoration: none;

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

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.15);

    transition: 0.25s ease;
}

.lp-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.lp-info {
    margin-bottom: 60px;
    padding: 22px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.lp-section {
    margin-bottom: 70px;
}

.lp-title {
    font-size: clamp(26px, 3vw, 38px);
    color: white;
    margin-bottom: 25px;
    font-weight: 700;
}

.lp-title::after {
    content: "";
    display: block;
    margin-top: 10px;
    width: 60%;
    height: 3px;

    background: linear-gradient(90deg, #00c6ff, #00ffd0, transparent);
}

.lp-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lp-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;

    min-height: 260px;

    background: rgba(255, 255, 255, 0.04);

    display: flex;
    align-items: flex-end;

    text-decoration: none;
    color: white;

    transition: 0.35s ease;
}

.lp-card img,
.lp-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: brightness(0.9) saturate(1.05);
}

.lp-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.1) 100%);

    z-index: 1;
}

.lp-card-content {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: 18px;

    background: rgba(0, 0, 0, 0.25);

    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-card-content h3 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
}

.lp-card-content p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

@media (hover:hover) {

    .lp-card:hover {
        transform: translateY(-6px) scale(1.015);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    }

    .lp-card:hover img,
    .lp-card:hover video {
        filter: brightness(1) saturate(1.15);
    }

    .lp-card:hover::before {
        background:
            linear-gradient(to top,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.45) 60%,
                rgba(0, 0, 0, 0.15) 100%);
    }

    .lp-card:hover .lp-card-content {
        background: rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 768px) {

    .lp {
        padding: 20px 14px;
    }

    .lp-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
        margin-bottom: 30px;
    }

    .lp-hero-text {
        display: contents;
    }

    .lp-hero-text>*:not(.lp-btn) {
        order: 1;
    }

    .lp-hero-photo {
        order: 2;
        width: 60%;
        margin-top: 6px;
    }

    .lp-btn {
        order: 3;
        margin-top: 12px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .lp-hero-text h1 {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .lp-hero-text h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .lp-hero-text p {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .lp-info {
        margin-bottom: 30px;
        padding: 14px;
        font-size: 14px;
    }

    .lp-section {
        margin-bottom: 40px;
    }

    .lp-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .lp-grid {
        gap: 14px;
    }

    .lp-card {
        min-height: 180px;
        border-radius: 16px;
    }

    .lp-card-content {
        padding: 12px;
    }

    .lp-card-content h3 {
        font-size: 15px;
    }

    .lp-card-content p {
        font-size: 13px;
    }
}

.extended-presentation-title {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 28px 32px;

    border-radius: 20px;

    background: rgba(0, 0, 0, 0.2);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);

    color: rgba(255, 255, 255, 0.4);

    position: relative;
    overflow: hidden;
}

.extended-presentation-title::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(120deg,
            rgba(0, 140, 255, 0.12),
            rgba(0, 255, 200, 0.06),
            transparent);

    opacity: 0.4;
    pointer-events: none;
}

.extended-presentation-title p {
    position: relative;
    z-index: 1;

    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.8;

    margin-bottom: 14px;

    color: rgba(255, 255, 255, 0.85);
}

.extended-presentation-title p:last-child {
    margin-top: 18px;
    font-weight: 500;
}

.extended-presentation-title .fancy-title {
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .extended-presentation-title {
        padding: 20px 18px;
        margin: 30px auto 60px;
    }

    .extended-presentation-title p {
        line-height: 1.7;
    }
}

.atlas-title {
    margin: 110px auto 10px;
    padding: 0 16px;
    text-align: center;
}

.atlas-title h1 {
    margin: 0 auto;

    display: inline-block;
    text-align: center;

    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    color: white;

    letter-spacing: 0.02em;
    background: none;
    box-shadow: none;

    opacity: 0;
    transform: translateY(20px);
    animation: titleFade 0.8s ease forwards;
}

.atlas-title h1::after {
    content: "";
    display: block;

    margin: 10px auto 0;

    width: 70%;
    height: 3px;
    border-radius: 2px;

    background: linear-gradient(90deg,
            rgba(0, 140, 255, 0.9) 0%,
            rgba(0, 255, 200, 0.9) 60%,
            rgba(0, 255, 200, 0.0) 100%);
}


/* ================= PRACTIC INTRO (CENTERED) ================= */

.practic-intro {
    max-width: 900px;
    margin: 20px auto 30px;

    padding: 20px 24px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.04);

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

    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.7;

    text-align: center;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ================= PDF LIST ================= */

.pdf-list {
    max-width: 900px;
    margin: 0 auto 60px;

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

    padding: 0 clamp(16px, 4vw, 40px);
}

.pdf-card {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 16px 18px;
    border-radius: 16px;

    text-decoration: none;
    color: white;

    background: rgba(255, 255, 255, 0.05);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transition: 0.25s ease;

    position: relative;
    overflow: hidden;
}

.pdf-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(120deg,
            rgba(0, 140, 255, 0.15),
            rgba(0, 255, 200, 0.05),
            transparent);

    opacity: 0;
    transition: 0.3s;
}

@media (hover: hover) {
    .pdf-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .pdf-card:hover::before {
        opacity: 1;
    }
}

.pdf-icon {
    font-size: 26px;

    width: 48px;
    height: 48px;

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

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);
}

.pdf-info {
    flex: 1;
    min-width: 0;
}

.pdf-name {
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-meta {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 4px;
}

.pdf-arrow {
    width: 12px;
    height: 12px;

    border-top: 2px solid white;
    border-right: 2px solid white;

    transform: rotate(45deg);
    opacity: 0.6;

    transition: 0.2s;
}

@media (hover: hover) {
    .pdf-card:hover .pdf-arrow {
        transform: translateX(4px) rotate(45deg);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .pdf-card {
        padding: 14px;
    }

    .pdf-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .pdf-name {
        font-size: 15px;
    }

    .practic-intro {
        text-align: left;
    }
}

/* ================= ВИТРИНА АТЛАСА ================= */

.atlas-shop-layout {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 clamp(16px, 4vw, 40px);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Обложка (левая колонка) */
.atlas-cover {
    flex-shrink: 0;
    width: 260px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.5);
    aspect-ratio: 2/3;
}

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

/* Правая колонка */
.atlas-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Информационная карточка */
.atlas-info-card {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 20px 22px;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-size: 15px;
    line-height: 1.5;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-label {
    opacity: 0.7;
    font-weight: 500;
    white-space: nowrap;
}

.info-value {
    font-weight: 600;
    text-align: right;
    flex: 1;
    margin-left: auto;
}

@media (max-width: 600px) {
    .info-value {
        text-align: left;
    }
}

.info-description {
    margin-top: 14px;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}

/* Оглавление с фиксированной высотой и прокруткой */
.atlas-toc {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    /* фиксированная высота */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.toc-header {
    padding: 0 22px 14px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.02em;
    position: relative;
}

.toc-header::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin-top: 6px;
    background: linear-gradient(90deg, rgba(0, 140, 255, 0.9) 0%, rgba(0, 255, 200, 0.9) 60%, rgba(0, 255, 200, 0.0) 100%);
    border-radius: 1px;
}

.toc-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 8px 22px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Каждая строка оглавления */
.toc-row {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s;
}

.toc-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.toc-label {
    font-weight: 500;
    opacity: 0.8;
    white-space: nowrap;
}

.toc-dots {
    flex: 1;
    height: 1px;
    margin: 0 12px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 6px 2px;
    background-repeat: repeat-x;
    background-position: center;
}

.toc-page-num {
    font-weight: 700;
    font-size: 1.05em;
    color: #7dd3fc;
    min-width: 2em;
    text-align: right;
}

/* Стилизация скроллбара внутри оглавления */
.toc-list::-webkit-scrollbar {
    width: 6px;
}

.toc-list::-webkit-scrollbar-track {
    background: transparent;
}

.toc-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .atlas-shop-layout {
        flex-direction: column;
        align-items: center;
    }

    .atlas-cover {
        width: 200px;
        aspect-ratio: 2/3;
    }

    .toc-row {
        padding: 8px 8px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ================= LIGHTBOX (FULLSCREEN COVER) ================= */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    width: 100%;
    height: 100%;
    padding: 1rem;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.atlas-cover-img {
    cursor: zoom-in;
}

/* ================= НАВИГАЦИЯ МЕЖДУ АТЛАСАМИ ================= */
.atlas-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 0 clamp(16px, 4vw, 40px);
}

.atlas-pagination {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    background: var(--btn-color);
    transition: 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.pagination-btn:hover {
    background: var(--btn-color-hover);
    transform: translateY(-2px);
}

.pagination-label {
    display: inline-block;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.arrow-left,
.arrow-right {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    flex-shrink: 0;
}

.arrow-left {
    transform: rotate(-135deg);
}

.arrow-right {
    transform: rotate(45deg);
}

.pagination-btn .arrow-left+.pagination-label {
    margin-left: 4px;
}

.pagination-btn .pagination-label+.arrow-right {
    margin-left: 4px;
}

/* Существующие стили для мобильных (max-width: 600px) остаются без изменений */
@media (max-width: 600px) {
    .atlas-nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .atlas-pagination {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .atlas-pagination.only-prev {
        justify-content: flex-start;
    }

    .atlas-pagination.only-next {
        justify-content: flex-end;
    }

    .atlas-pagination.both {
        justify-content: space-between;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .pagination-label {
        max-width: 120px;
        display: inline-block;
    }

    .arrow-left,
    .arrow-right {
        width: 12px;
        height: 12px;
    }

    @media (max-width: 400px) {
        .pagination-btn {
            padding: 6px 10px;
            /* чуть просторнее, чем 4px 8px */
            font-size: 13px;
            /* комфортный размер, не уменьшаем */
            gap: 6px;
        }

        .pagination-label {
            max-width: 110px;
            /* больше места для текста */
        }

        .arrow-left,
        .arrow-right {
            width: 12px;
            height: 12px;
        }

        /* Две кнопки – ставим рядом по центру */
        .atlas-pagination.both {
            justify-content: center;
            /* вместо space-between */
            gap: 10px;
            flex-wrap: nowrap;
        }

        /* Убираем лишний отступ, теперь достаточно gap */
        .atlas-pagination.both .pagination-btn:not(:last-child) {
            margin-right: 0;
        }

        /* Одна кнопка – без изменений, прижата к своему краю */
        .atlas-pagination.only-prev,
        .atlas-pagination.only-next {
            gap: 0;
        }
    }
}

.apps-section {
    max-width: 900px;
    margin: 10px auto 40px;
    display: grid;
    gap: 20px;
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    padding: 0 clamp(12px, 4vw, 24px);
}

.apk-image {
    width: 50px;
    border-radius: 4px;
}

.useful-links-section {
    max-width: 900px;
    margin: 10px auto 40px;
    display: grid;
    gap: 20px;
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    padding: 0 clamp(12px, 4vw, 24px);
}