* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik Dirt', cursive;
    background-color: #1a1a1a;
    color: #e5e5e5;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
}

.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #e5e5e5;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 50px;
}

.lang-buttons {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    background-color: #2d2d2d;
    color: #e5e5e5;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Rubik Dirt', cursive;
    font-size: 12px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #3d3d3d;
}

.lang-btn.active {
    background-color: #a855f7;
    border-color: #a855f7;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 64px;
    left: -300px;
    width: 300px;
    height: calc(100vh - 64px);
    background-color: #242424;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-content {
    padding: 2rem 0;
}

.menu-item {
    display: block;
    padding: 1rem 2rem;
    color: #e5e5e5;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background-color: #2d2d2d;
    border-left-color: #a855f7;
}

.menu-item.active {
    background-color: #2d2d2d;
    border-left-color: #a855f7;
    color: #a855f7;
}

/* Page Content */
.page-content {
    margin-top: 64px;
    padding: 3rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}


.gallery {
    column-count: 4;
    column-gap: 20px;
    margin-top: 40px;
}

.gallery .item {
    width: 100%;
    display: block;
    margin-bottom: 20px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(120px);
    break-inside: avoid;
}

@media (max-width: 1200px) {
    .gallery { column-count: 3; }
}
@media (max-width: 768px) {
    .gallery { column-count: 2; }
}
@media (max-width: 480px) {
    .gallery { column-count: 1; }
}



.gallery .item {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(120px);
    border-radius: 12px;
    margin-bottom: 20px;
    break-inside: avoid;
    transition: transform 0.3s ease, opacity 0.3s ease;
}




/* ===== FULLSCREEN VIEWER ===== */
.img-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
}

.img-viewer.active {
    display: flex;
}

.img-viewer img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8 px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.close-viewer {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 48px;
    color: #ff4444;
    cursor: pointer;
    text-shadow: 0 0 15px red;
    transition: 0.2s;
}

.close-viewer:hover {
    transform: scale(1.2);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #ffbbbb;
    background: none;
    border: none;
    cursor: pointer;
    text-shadow: 0 0 15px red;
    transition: transform 0.2s;
}

.nav-btn:hover {
    transform: scale(1.2) translateY(-50%);
}

.prev { left: 25px; }
.next { right: 25px; }

/* Hover highlight on small images */
.gallery .item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,60,60,0.7);
    
    transition: 0.1s ease;
}


.rainbow-link {
    text-decoration: underline;
    font-weight: bold;
    background: linear-gradient(90deg, #ff4c4c, #ffffff, #ff4c4c); /* градиент слева направо */
    background-size: 200% 100%; /* чтобы градиент можно было анимировать */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite; /* медленное переливание */
}

@keyframes gradientMove {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


.page-title-wrapper {
    display: flex;
    justify-content: center; /* горизонтальное центрирование */
    text-align: center;      /* текст внутри тоже по центру */
    width: 100%;             /* занимает всю ширину родителя */
}

.page-title-wrapper h2 {
    margin: 0;
}



.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #0088cc;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.telegram-btn img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.telegram-btn:hover {
    transform: scale(1.1);
    background-color: #00aaff;
}

.telegram-btn:hover img {
    transform: scale(1.2);
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* чтобы видео покрывало весь экран */
    z-index: -1; /* чтобы было позади контента */
    pointer-events: none; /* чтобы не мешало кликам */
    filter: blur(10px); /* <<< вот размытость */
    z-index: -1; 
}
