*{
    font-family: inter, sans-serif;
    font-weight: 400;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}
:focus-visible{
    outline: #f44336;
}

body{
    margin: 0;
    background: #2b2d39;
    height: 100vh;
    width: 100vw;
}

:root {
    --ui-blur: blur(30px);
    --header-bg: rgba(0, 0, 0, 0.25);;
    --header-hover-bg: rgb(255 255 255 / 10%);
    --header-active-bg: rgb(255 255 255 / 10%);
    --transition-speed: 0.3s;
    --blur: blur(100px);
}
header {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: fixed;
    width: 100%;
    top: 20px;
    z-index: 10;
    padding: 0 20px;
    box-sizing: border-box;
    pointer-events: none;
    transition: none;
    animation: none;
}
.head {
    display: flex;
    gap: 10px;
    background-color: var(--header-bg);
    padding: 6px;
    border-radius: 100px;
    backdrop-filter: var(--ui-blur);
    -webkit-backdrop-filter: var(--ui-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: none;
    animation: none;
    pointer-events: auto;
}
.head:hover {
    transform: none;
}
header a {
    color: inherit;
    text-decoration: none;
    display: contents;
}

header .nav-link {
    position: relative;
    overflow: hidden;
}

header .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
}

header .nav-link:hover::before {
    opacity: 1;
}

/* Анимация нажатия */
header .nav-link:active {
    transform: scale(0.95);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект свечения для активной ссылки */
header .nav-link.active {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.prerovn{
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
}

.loadingcontainer{
    width: 100%;
    height: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
}

.loadingcontainer img{
    width: 90px;
    height: auto;
    display: flex;
    animation: loadinglogo 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

/* Стили для плавного появления букв и точек в Loading... */
.loading-text {
    display: flex;
    color: white;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
}

.letter, .dot {
    opacity: 0;
    animation: fadeLetter 2.4s infinite ease-in-out;
    display: inline-block;
}

/* Анимация для букв */
.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.1s; }
.letter:nth-child(3) { animation-delay: 0.2s; }
.letter:nth-child(4) { animation-delay: 0.3s; }
.letter:nth-child(5) { animation-delay: 0.4s; }
.letter:nth-child(6) { animation-delay: 0.5s; }
.letter:nth-child(7) { animation-delay: 0.6s; }

/* Анимация для точек */
.dot-1 { animation-delay: 0.7s; }
.dot-2 { animation-delay: 0.8s; }
.dot-3 { animation-delay: 0.9s; }

@keyframes fadeLetter {
    0%, 100% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px) scale(1.05);
    }
}

@keyframes loadinglogo {
    0%{
        transform: scale(1) perspective(80px) rotateY(0deg) rotateX(0deg);
    }
    100%{
        transform: scale(1) perspective(80px) rotateY(180deg) rotateX(0deg);
    }
}

/* 
@media (prefers-color-scheme: dark) {
    .head {
        background-color: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
}*/
.nav-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 6px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border-radius: 50px;
    gap: 8px;
    min-width: 80px;
}

.nav-link:hover {
    background-color: var(--header-hover-bg);
    transform: translateY(-2px);
}

.nav-link:active {
    background-color: var(--header-active-bg);
    transform: translateY(0);
}

.nav-link.active {
    background-color: var(--header-active-bg);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 2px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 2;
    fill: none;
}

.nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-icon {
    stroke: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.nav-link:hover .nav-avatar {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.08);
}

.nav-link.active .nav-icon {
    stroke: white;
    stroke-width: 5;
}

.nav-link.active .nav-avatar {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.nav-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-text {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link.active .nav-text {
    color: white;
    font-weight: 600;
}
.separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

@media (max-width: 480px) {
    .nav-text {
        font-size: 10px;
    }
    #endimg{
        position: absolute;
        opacity: 1;
        width: 80%;
        height: 90%;
        object-fit: cover;
        object-position: center;
        z-index: -1;
        border-radius: 20px;
        transition: all ease 0.1s;
        aspect-ratio: 5 / 10;
    }
}
@media (max-width: 350px) {
    .nav-link {
        min-width: 68px;
    }
    
}
    
a{
    cursor: pointer;
    transition: all ease 0.1s;
    text-decoration: none;
}
a:hover{
    color: rgba(255, 255, 255, 0.452);
}
.stay{
    display: none;
    align-items: center;
    font-weight: 200;
}

.backgroundcont {
    display: flex;
    width: 100%;
    height: 100vh; /* Занимает всю высоту экрана */
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Обрезаем всё, что выходит за границы */
}

#endimg {
    position: absolute;
    opacity: 1;
    width: auto;
    height: auto; /* Занимает всю высоту контейнера */
    object-fit: cover; /* Обрезает изображение, сохраняя пропорции */
    object-position: center; /* Центрирует изображение */
    z-index: -1;
    border-radius: 20px;
    transition: all ease 0.1s;
    animation: loadingend 60s linear infinite; /*60s*/
    aspect-ratio: 16 / 7;
}

@keyframes loadingend {
    0%{ 
        background-image: url(background/2_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(5deg) rotateX(3deg);
    }
    16%{
        background-image: url(background/2_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(10deg) rotateX(5deg);
    }
    16.67%{ 
        background-image: url(background/3_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    32.67%{
        background-image: url(background/3_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(-10deg) rotateX(-5deg);
    }
    33.33%{ 
        background-image: url(background/5_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(-10deg) rotateX(5deg);
    }
    49.33%{
        background-image: url(background/5_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    50%{ 
        background-image: url(background/4_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(5deg) rotateX(3deg);
    }
    66%{
        background-image: url(background/4_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(-5deg) rotateX(-3deg);
    }
    66.67%{ 
        background-image: url(background/6_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(5deg) rotateX(3deg);
    }
    82.67%{
        background-image: url(background/6_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(10deg) rotateX(5deg);
    }
    83.33%{ 
        background-image: url(background/7_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(5deg) rotateX(3deg);
    }
    100%{
        background-image: url(background/7_BG.webp);
        transform: scale(0.8) perspective(1000px) rotateY(-15deg) rotateX(5deg);
    }
}

.loadingendopacity{
    animation: loadingendopacity 60s linear infinite; /*60s*/
}

@keyframes loadingendopacity {
    0%{ 
        opacity: 0;
    }
    1%{ 
        opacity: 0;
    }
    5%{
        opacity: 1;
    }
    12%{
        opacity: 1;
    }
    16%{
        opacity: 0;
    }
    16.67%{ 
        opacity: 0;
    }
    20.67%{
        opacity: 1;
    }
    28.67%{
        opacity: 1;
    }
    32.67%{
        opacity: 0;
    }
    33.33%{ 
        opacity: 0;
    }
    37.33%{
        opacity: 1;
    }
    45.33%{
        opacity: 1;
    }
    49.33%{
        opacity: 0;
    }
    50%{ 
        opacity: 0;
    }
    54%{
        opacity: 1;
    }
    62%{
        opacity: 1;
    }
    66%{
        opacity: 0;
    }
    66.67%{ 
        opacity: 0;
    }
    70.67%{
        opacity: 1;
    }
    78.67%{
        opacity: 1;
    }
    82.67%{
        opacity: 0;
    }
    83.33%{ 
        opacity: 0;
    }
    87.33%{
        opacity: 1;
    }
    95.33%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

@keyframes loadingendopacity-blur {
    0%{ 
        opacity: 0;
        filter: var(--blur);
    }
    1%{ 
        opacity: 0;
        filter: var(--blur);
    }
    5%{
        opacity: 1;
        filter: blur(0px);
    }
    12%{
        opacity: 1;
        filter: blur(0px);
    }
    16%{
        opacity: 0;
        filter: var(--blur);
    }
    16.67%{ 
        opacity: 0;
    }
    20.67%{
        opacity: 1;
        filter: blur(0px);
    }
    28.67%{
        opacity: 1;
        filter: blur(0px);
    }
    32.67%{
        opacity: 0;
        filter: var(--blur);
    }
    33.33%{ 
        opacity: 0;
        filter: var(--blur);
    }
    37.33%{
        opacity: 1;
        filter: blur(0px);
    }
    45.33%{
        opacity: 1;
        filter: blur(0px);
    }
    49.33%{
        opacity: 0;
        filter: var(--blur);
    }
    50%{ 
        opacity: 0;
        filter: var(--blur);
    }
    54%{
        opacity: 1;
        filter: blur(0px);
    }
    62%{
        opacity: 1;
        filter: blur(0px);
    }
    66%{
        opacity: 0;
        filter: var(--blur);
    }
    66.67%{ 
        opacity: 0;
        filter: var(--blur);
    }
    70.67%{
        opacity: 1;
        filter: blur(0px);
    }
    78.67%{
        opacity: 1;
        filter: blur(0px);
    }
    82.67%{
        opacity: 0;
        filter: var(--blur);
    }
    83.33%{ 
        opacity: 0;
        filter: var(--blur);
    }
    87.33%{
        opacity: 1;
        filter: blur(0px);
    }
    95.33%{
        opacity: 1;
        filter: blur(0px);
    }
    100%{
        opacity: 0;
        filter: var(--blur);
    }
}


#upimg{
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    transition: all ease 0.1s;
    animation: loadingup 60s linear infinite;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    opacity: 1;
}

@keyframes loadingup {
    0%{ 
        background-image: url(background/2_FG.webp);
        right: 20%;
    }
    16%{
        background-image: url(background/2_FG.webp);
        right: 10%;
    }
    16.67%{ 
        background-image: url(background/3_FG.webp);
        right: -30%;
    }
    32.67%{
        background-image: url(background/3_FG.webp);
        right: -20%;
    }
    33.33%{ 
        background-image: url(background/5_FG.webp);
        right: 30%;
    }
    49.33%{
        background-image: url(background/5_FG.webp);
        right: 20%;
    }
    50%{ 
        background-image: url(background/4_FG.webp);
        right: -30%;
    }
    66%{
        background-image: url(background/4_FG.webp);
        right: -20%;
    }
    66.67%{ 
        background-image: url(background/6_FG.webp);
        right: 25%;
    }
    82.67%{
        background-image: url(background/6_FG.webp);
        right: 15%;
    }
    83.33%{ 
        background-image: url(background/7_FG.webp);
        right: 15%;
    }
    100%{
        background-image: url(background/7_FG.webp);
        right: 25%;
    }
}

@media (max-width: 1600px){
    #endimg {
        width: 110%;
        height: 90%;
    }

    @keyframes loadingup {
        0%{ 
            background-image: url(background/2_FG.webp);
            right: 20%;
        }
        16%{
            background-image: url(background/2_FG.webp);
            right: 10%;
        }
        16.67%{ 
            background-image: url(background/3_FG.webp);
            right: -25%;
        }
        32.67%{
            background-image: url(background/3_FG.webp);
            right: -15%;
        }
        33.33%{ 
            background-image: url(background/5_FG.webp);
            right: 30%;
        }
        49.33%{
            background-image: url(background/5_FG.webp);
            right: 20%;
        }
        50%{ 
            background-image: url(background/4_FG.webp);
            right: -25%;
        }
        66%{
            background-image: url(background/4_FG.webp);
            right: -15%;
        }
        66.67%{ 
            background-image: url(background/6_FG.webp);
            right: -15%;
        }
        82.67%{
            background-image: url(background/6_FG.webp);
            right: -25%;
        }
        83.33%{ 
            background-image: url(background/7_FG.webp);
            right: 5%;
        }
        100%{
            background-image: url(background/7_FG.webp);
            right: 15%;
        }
    }
}

@media (max-width: 1100px){
    #endimg {
        position: absolute;
        opacity: 1;
        height: 90%;
        object-fit: cover; /* Обрезает изображение, сохраняя пропорции */
        object-position: center; /* Центрирует изображение */
        z-index: -1;
        border-radius: 20px;
        transition: all ease 0.1s;
        aspect-ratio: auto;
    }
    #upimg{
        opacity: 1;
        width: auto;
        height: 120%;
    }
    @keyframes loadingend1 {
        0%{ 
            background-image: url(background/2_BG.webp);
            transform: scale(1);
        }
        16%{
            background-image: url(background/2_BG.webp);
            transform: scale(1);
        }
        16.67%{ 
            background-image: url(background/3_BG.webp);
            transform: scale(1);transform: scale(1);
        }
        32.67%{
            background-image: url(background/3_BG.webp);
            transform: scale(1);transform: scale(1);
        }
        33.33%{ 
            background-image: url(background/5_BG.webp);
            transform: scale(1);transform: scale(1);
        }
        49.33%{
            background-image: url(background/5_BG.webp);
            transform: scale(1);transform: scale(1);
        }
        50%{ 
            background-image: url(background/4_BG.webp);
            transform: scale(1);transform: scale(1);
        }
        66%{
            background-image: url(background/4_BG.webp);
            transform: scale(1);
        }
        66.67%{ 
            background-image: url(background/6_BG.webp);
            transform: scale(1);
        }
        82.67%{
            background-image: url(background/6_BG.webp);
            transform: scale(1);
        }
        83.33%{ 
            background-image: url(background/7_BG.webp);
            transform: scale(1);
        }
        100%{
            background-image: url(background/7_BG.webp);
            transform: scale(1);
        }
    }
}

@media (max-width: 750px){
    @keyframes loadingup {
        0%{ 
            background-image: url(background/2_FG.webp);
            right: 20%;
        }
        16%{
            background-image: url(background/2_FG.webp);
            right: 0%;
        }
        16.67%{ 
            background-image: url(background/3_FG.webp);
            right: -25%;
        }
        32.67%{
            background-image: url(background/3_FG.webp);
            right: -15%;
        }
        33.33%{ 
            background-image: url(background/5_FG.webp);
            right: 0%;
        }
        49.33%{
            background-image: url(background/5_FG.webp);
            right: -10%;
        }
        50%{ 
            background-image: url(background/4_FG.webp);
            right: -25%;
        }
        66%{
            background-image: url(background/4_FG.webp);
            right: -15%;
        }
        66.67%{ 
            background-image: url(background/6_FG.webp);
            right: -65%;
        }
        82.67%{
            background-image: url(background/6_FG.webp);
            right: -75%;
        }
        83.33%{ 
            background-image: url(background/7_FG.webp);
            right: -20%;
        }
        100%{
            background-image: url(background/7_FG.webp);
            right: 0%;
        }
    }
}

@media (max-width: 500px){
    @keyframes loadingup {
        0%{ 
            background-image: url(background/2_FG.webp);
            right: 0%;
        }
        16%{
            background-image: url(background/2_FG.webp);
            right: -20%;
        }
        16.67%{ 
            background-image: url(background/3_FG.webp);
            right: -20%;
        }
        32.67%{
            background-image: url(background/3_FG.webp);
            right: -10%;
        }
        33.33%{ 
            background-image: url(background/5_FG.webp);
            right: 0%;
        }
        49.33%{
            background-image: url(background/5_FG.webp);
            right: -10%;
        }
        50%{ 
            background-image: url(background/4_FG.webp);
            right: -25%;
        }
        66%{
            background-image: url(background/4_FG.webp);
            right: -15%;
        }
        66.67%{ 
            background-image: url(background/6_FG.webp);
            right: -80%;
        }
        82.67%{
            background-image: url(background/6_FG.webp);
            right: -100%;
        }
        83.33%{ 
            background-image: url(background/7_FG.webp);
            right: -20%;
        }
        100%{
            background-image: url(background/7_FG.webp);
            right: 0%;
        }
    }
}

img{
    user-select: none; 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

#markers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.info {
    left: 20px;
    bottom: 20px;
    height: 48px;
    position: absolute;
    display: flex;
    gap: 30px;
    padding: 0 20px;
    opacity: 0;
    border-radius: 100px;
    backdrop-filter: var(--ui-blur);
    -webkit-backdrop-filter: var(--ui-blur);
    justify-content: center;
    user-select: none; 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: fixed;
    z-index: 8;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 2s cubic-bezier(0, 0, 0.2, 1);
}

.info.active {
    opacity: 1;
    transition: opacity 0.3s ease;
}
#infoxy{
    display: none;
    width: 90px;
    height: 100px;
    align-content: center;
}
h3{
    transition: all ease 0.1s;
    margin: 10px;
    display: flex;
    align-items: center;
}
@media (max-width: 1000px){
    .info{
        display: none;
    }
}

/* Стили для меток на карте */
.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: auto;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: #ff6666;
}

.map-marker.pending {
    background: #ffaa00;
}

.map-marker.pending:hover {
    background: #ffbb33;
}

.map-marker.rejected {
    background: #666666;
}

.map-marker.rejected:hover {
    background: #888888;
}

.map-marker::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid inherit;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.map-marker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    animation: pulse 2s infinite;
}

.conteinerhelpers{
    display: flex;
    position: fixed;
    bottom: 0;
    margin-bottom: 20px;
    width: 100%;
    height: 50px;
    z-index: 8;
    justify-content: center;
    pointer-events: none;
}

.helpers{
    display: flex;
    gap: 6px;
    background-color: var(--header-bg);
    padding: 6px;
    border-radius: 100px;
    backdrop-filter: var(--ui-blur);
    -webkit-backdrop-filter: var(--ui-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    pointer-events: auto;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.edithelp{
    width: 60px;
    display: flex;
    padding: 6px 0px;
    border-radius: 100px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0);
    transition: all 0.2s ease;
}

.edithelp.active{
    background: rgba(255, 255, 255, 0.1);
}

.edithelpicon{
    width: 100%;
    height: 26px;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 2;
    transition: all 0.2s ease;
}

.edithelp.active .edithelpicon{
    stroke: white;
    stroke-width: 4;
}

.edithelp:hover:not(.active){
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.edithelp:hover .edithelpicon{
    stroke: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.2s ease;
}

.close:hover {
    color: white;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: white;
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

button {
    color: white;
}

button[type="submit"] {
    background: #ffffff1c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
}

/* Стили для профиля */
.profile-container {
    padding: 100px 20px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.avatar-container {
    position: relative;
    cursor: pointer;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.profile-info {
    flex: 1;
}

.username-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.edit-username-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-username-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.profile-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 24px;
    transition: .4s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.input-with-btn {
    display: none;
    gap: 10px;
    align-items: center;
}

.save-btn-small {
    background: #4CAF50;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.save-btn-small:hover {
    background: #45a049;
}

.input-feedback {
    margin-top: 5px;
    font-size: 12px;
}

.input-feedback.success {
    color: #4CAF50;
}

.input-feedback.error {
    color: #f44336;
}

.setting-description {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 5px 0 0 0;
}

.privacy-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.privacy-option:hover {
    background: rgba(255,255,255,0.08);
}

.option-info h4 {
    margin: 0 0 5px 0;
    color: rgba(255,255,255,0.9);
}

.option-info p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* Стили для модального окна аватарок */
.avatars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.avatar-option {
    cursor: pointer;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.avatar-option:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.avatar-option img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-main {
        flex-direction: column;
        text-align: center;
    }
    
    .username-container {
        justify-content: center;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .privacy-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.profile-header {
    text-align: center;
    margin-bottom: 140px;
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid rgba(255,255,255,0.2);
}

.profile-header h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
}

.logout-btn {
    background: rgba(255, 0, 0, 0.3);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.1);
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
    color: white;
}

.markers-list {
    background: rgba(0, 0, 0, 0.274);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.markers-list h3 {
    margin-top: 0;
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
}

.marker-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.2s ease;
}

.marker-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.marker-info {
    flex: 1;
}

.marker-info strong {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.status-pending { 
    color: #ffaa00; 
    font-weight: 500;
}
.status-approved { 
    color: #00cc00; 
    font-weight: 500;
}
.status-rejected { 
    color: #ff4444; 
    font-weight: 500;
}

/* Стили для админ-логина */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-form {
    background: rgba(0, 0, 0, 0.274);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.notification {
    position: relative;
    width: 320px;
    max-width: 400px;
    background-color: var(--header-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--ui-blur);
    -webkit-backdrop-filter: var(--ui-blur);
    border-radius: 12px;
    padding: 16px;
    border-left-width: 4px;
    border-left-style: solid;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Важно: transition для всех свойств */
    pointer-events: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

.notification:not(.active) {
    transform: translateX(120%) scale(0.8);
    opacity: 0;
    margin-top: -50px;
    pointer-events: none;
}

.notification.active {
    transform: translateX(0);
    opacity: 1;
}

.notification.hiding {
    transform: translateX(120%) scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.error {
    border-left-color: #f44336;
}

.notification.warning {
    border-left-color: #ff9900;
}

.notification.success {
    border-left-color: #4CAF50;
}

.notification.info {
    border-left-color: #2196F3;
}

.notification-title {
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
    padding-right: 24px;
}

.notification-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    transform-origin: left;
    animation: progressShrink linear forwards;
}

@media (max-width: 768px) {
    .notification {
        width: auto;
        max-width: min(100vw - 20px, 420px);
        min-width: 0;
        border-radius: 10px;
        padding: 12px 12px 14px;
    }

    .notification-title {
        font-size: 14px;
        margin-bottom: 4px;
        line-height: 1.25;
    }

    .notification-message {
        font-size: 13px;
        line-height: 1.35;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes progressShrink {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Кнопка сброса на карте */
.reset-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 11;
    background: rgba(0, 0, 0, 0.274);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-button:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.login-btn {
    background: white;
    color: black;
    padding: 12px 100px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    color: black;
}

.login-prompt {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

.login-prompt h3 {
    margin-top: 0;
    color: rgba(255,255,255,0.9);
}

.login-prompt p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

/* Предотвращение выделения текста на всей странице */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Стили для скроллбара (где разрешен скролл) */
.markers-list {
    overflow-y: auto;
    max-height: 400px;
}

/* Анимация загрузки */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.zone {
    fill: rgba(255, 255, 255, 0);
    stroke: rgba(255, 255, 255, 0);
    stroke-width: 2;
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zone:hover {
    fill: rgba(255, 255, 0, 0.15);
    stroke: rgba(255, 255, 0, 0.8);
    stroke-width: 3;
}

.zone.active {
    fill: rgba(0, 255, 255, 0.01);
    stroke: rgba(0, 255, 255, 0.01);
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.116));
}

/* Добавьте в style5.css */
.zones-legend {
    position: fixed;
    top: 120px;
    right: 20px;
    background: rgba(0, 0, 0, 0.274);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    z-index: 10;
    max-width: 200px;
}

.zones-legend h4 {
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 16px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.legend-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(-5px);
}

.zones-overlay {
    pointer-events: none;
}

.zones-overlay .zone {
    fill: rgba(0, 255, 255, 0.3);
    stroke: rgba(0, 255, 255, 0.8);
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
    transition: all 0.3s ease;
}

#zones-overlay svg {
    width: 100%;
    height: 100%;
}

.remove-point {
    background: rgba(255, 0, 0, 0.3);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.remove-point:hover {
    background: rgba(255, 0, 0, 0.5);
    transform: scale(1.1);
}

/* Улучшенные стили для маркеров точек */
.point-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    border: 2px solid white;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.custom-marker {
    position: absolute;
    border-radius: 50%;
    text-align: center;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transform: translate(-50%, -50%);
}

.zone-polygon {
    transition: all 0.3s ease;
}
/* Стили для режима редактирования */
.zone-item:hover .edit-btn {
    opacity: 1;
}

.edit-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.point-marker.highlighted {
    background: #ff4444 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8) !important;
    transform: translate(-50%, -50%) scale(1.5) !important;
}

.edit-mode-notice {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 153, 0, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 14px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease;
}

/* Анимация скрытия */
@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(30px);
        opacity: 0;
    }
}

/* Стили для формы редактирования */
.edit-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.edit-form-actions button {
    flex: 1;
}

.btn-save {
    background: #4CAF50 !important;
}

.btn-cancel {
    background: #ff4444 !important;
}

.btn-edit {
    background: #ff9900 !important;
}

/* Подсказка для удаления точек */
.point-delete-hint {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Интеграция кастомного скроллбара с существующими элементами */
.markers-list,
.grid-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.markers-list::-webkit-scrollbar,
.grid-container::-webkit-scrollbar {
    width: 8px;
}

.markers-list::-webkit-scrollbar-track,
.grid-container::-webkit-scrollbar-track {
    background: transparent;
}

.markers-list::-webkit-scrollbar-thumb,
.grid-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.markers-list::-webkit-scrollbar-thumb:hover,
.grid-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.cookie-notice {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 120;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 18, 0.85);
    color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transform: translateY(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow: visible;
}

.cookie-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-notice.is-hidden {
    display: none;
}

.cookie-notice__text {
    font-size: 14px;
    line-height: 1.45;
    overflow: visible;
    max-width: 340px;
}

.cookie-notice__text a {
    color: #9bc3ff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(155, 195, 255, 0.85);
}

.cookie-notice__text a:hover {
    color: #c6ddff;
}

.cookie-notice__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.cookie-notice__btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-notice__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cookie-notice {
        left: 12px;
        bottom: 12px;
    }

    .cookie-notice__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 520px) {
    header{
        top: 10px
    }
}