:root {
    --main: #fafafa;
    --element: #f3f3f3;
    --subelement: hwb(0deg 90% 10% / 32%);
    --accent: #333333;
    --header-height:48px;
    --galleryindex: 2;
    --filter: invert(0);
    --overlay: hwb(0deg 0% 100% / 40%);
    --grad1: #ff1531;
    --grad2:#06dbee;
    --border: hwb(0deg 0% 100% / 16%);
    --text: #333333;
    --subtext:hwb(0deg 20% 80% / 64%);
    --highlight: hwb(203deg 0% 0% / 16%);
    --gradfill: linear-gradient(135deg, #ff1531, #06dbee);
    --textfilter: invert(1);
    --introelement: white;
    --introsubelement: hwb(0deg 100% 0% / 16%);
    --shadow: hwb(0deg 100% 0% / 16%);
}

@media (prefers-color-scheme: dark) {
    :root {
    --main: #050505;
    --element: #121212;
    --subelement: hwb(0deg 10% 90% / 32%);
    --accent: #f3f3f3;
    --filter: invert(1);
    --overlay: hwb(0deg 100% 0% / 32%);
    --border: rgba(255, 255, 255, 0.15);
    --text: #fafafa;
    --subtext:hwb(0deg 98% 2% / 64%);
    --shadow: hwb(0deg 0% 100% / 16%);
    }
}

/* Принудительная светлая тема */
.theme-light {
    --main: #fafafa;
    --element: #f3f3f3;
    --subelement: hwb(0deg 90% 10% / 32%);
    --accent: #333333;
    --filter: invert(0);
    --overlay: hwb(0deg 0% 100% / 40%);
    --border: hwb(0deg 0% 100% / 16%);
    --text: #333333;
    --subtext: hwb(0deg 20% 80% / 64%);
        --shadow: hwb(0deg 0% 100% / 16%);
}

/* Принудительная тёмная тема */
.theme-dark {
    --main: #050505;
    --element: #121212;
    --subelement: hwb(0deg 10% 90% / 32%);
    --accent: #f3f3f3;
    --filter: invert(1);
    --overlay: hwb(0deg 100% 0% / 32%);
    --border: rgba(255, 255, 255, 0.15);
    --text: #fafafa;
    --subtext: hwb(0deg 98% 2% / 64%);
        --shadow: hwb(0deg 100% 0% / 16%);
}












* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    height: 100vh;
    width: 100vw;
    background: var(--main);
    font-family: 'Space Grotesk', -apple-system, system-ui, sans-serif;
    user-select: none; 
    -webkit-user-drag: none;
    font-size: clamp(12px, 10vw, 24px);
    z-index:0;
}


/* === АНИМАЦИЯ === */
[data-animate] {
    opacity: 0.2;
}

[data-animate].animate {
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
}

[data-animate="fade"].animate {
    animation-name: fadeIn;
}

@keyframes fadeIn {
    from { opacity: 0.2; }
    to { opacity: 1; }
}

[data-animate="fade-up"].animate {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


[data-animate="fade-scale"].animate {
    animation-name: fadeInScale;
}

@keyframes fadeInScale {
    from {
        opacity: 0.2;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

[data-animate] {
    opacity: 0.2;
}

[data-animate].animate {
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

[data-animate="fade"].animate {
    animation-name: fadeIn;
}

@keyframes fadeIn {
    from { opacity: 0.33; }
    to { opacity: 1; }
}

/* ÐŸÐ¾ÑÐ²Ð»ÐµÐ½Ð¸Ðµ ÑÐ½Ð¸Ð·Ñƒ */
[data-animate="fade-up"].animate {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(48px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate="fade-scale"].animate {
    animation-name: fadeInScale;
}

@keyframes fadeInScale {
    from {
        opacity: 0.2;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === Ð”Ð ÐžÐŸÐ”ÐÐ£Ð Ð¡Ð¢Ð ÐÐÐ˜Ð¦ (Ð¼Ð¾Ð±Ð¸Ð»ÑŒÐ½Ð°Ñ Ð²ÐµÑ€ÑÐ¸Ñ) === */
.page-dropdown {
    position: relative;
    display: inline-block;
}

.page-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--element);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.page-dropdown-trigger:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 4px;
}

.page-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--element);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
}

.page-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 400;
}

.page-dropdown-item:hover {
    background: rgba(255,255,255,0.08);
}

.page-dropdown-item.active {
    background: rgba(255,255,255,0.1);
    font-weight: 600;
}

.page-dropdown-item:disabled {
    cursor: default;
    opacity: 1;
}

.page-dropdown-item.active::after {
    content: '';
}

/* === ÐŸÐ•Ð Ð•ÐšÐ›Ð®Ð§ÐÐ¢Ð•Ð›Ð¬ Ð¯Ð—Ð«ÐšÐžÐ’ === */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-trigger::after {
    content: 'â–¼';
    font-size: 9px;
    opacity: 0.6;
    margin-left: 2px;
}

.lang-item:hover {
    background: rgb(255 0 0 / 8%);
}

.lang-item.active {
    background: rgb(255 0 0 / 10%);
    font-weight: 600;
}

.lang-item.active::after {
    content: '';
    opacity: 0.8;
}

.lang-switcher {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.lang-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: transparent;
border:none;
    color: var(--introelement);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1;
}

.lang-trigger::after {
    content: '';
    font-size: 12px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: hwb(0deg 100% 0% / 27%);
    border-radius: 24px;
    backdrop-filter:blur(6px);
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 8px 48px rgb(0 0 0 / 16%);
    display: none;
    padding: 6px 24px;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 6px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--introelement);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top:6px;
}

.lang-item:hover {
    background: rgba(255,255,255,0.08);
}

.lang-item.active {
    background: rgb(255 255 255 / 27%);
}

/* Анимация для data-animate */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="fade"] {
    opacity: 0;
}

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
}

[data-animate="fade-scale"] {
    opacity: 0;
    transform: scale(0.9);
}

[data-animate].animate {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}