/* Глобальные стили */
* {
    box-sizing: border-box;
    text-decoration: none
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0f1419 100%);
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 222, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(74, 222, 128, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #1a1a1a;
}

.links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.form-container {
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}

.header_logo-link {
    color: #4ade80 !important;
    font-weight: bold;
    font-size: 1.4em;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(74, 222, 128, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.header_logo-link:hover {
    background: rgba(74, 222, 128, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.header_logo-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(74, 222, 128, 0.3);
}

/* Карты сетка */
.third_row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 40px;
    background: rgba(10, 50, 10, .8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 66, .3);
    border-radius: 15px;
    margin: 30px auto;
    max-width: 1200px;
    width: 98%;
}

.selected_links-info,
.header_container_map_name {
    display: contents;
}

.third_row .map_btn {
    padding: 18px 25px;
    margin: 0;
    background: rgba(0, 255, 66, .15);
    color: #00ff88;
    border: 2px solid rgba(0, 255, 66, .5);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .3s;
    text-shadow: 0 0 8px rgba(0, 255, 66, .6);
    text-align: center;
    min-width: 160px;
    white-space: normal;
    line-height: 1.3;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.third_row .map_btn:hover {
    background: linear-gradient(145deg, rgba(0, 255, 66, .4), rgba(40, 255, 100, .3));
    box-shadow: 0 0 30px rgba(0, 255, 66, .8), inset 0 0 20px rgba(0, 255, 66, .2);
    transform: translateY(-4px) scale(1.05);
    border-color: #00ff66;
    z-index: 1;
}

/* Форма и кнопки */
.autoCompleteHeader {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #4ade80;
    border-radius: 4px;
    background: #0f0f0f;
    color: #fff;
}

.login-btn {
    background: #333;
    color: #fff;
    border: 1px solid #4ade80;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #4ade80;
    color: #000;
}

.links_elem.selected_links {
    color: #4ade80;
    font-weight: 600;
    border-bottom: 2px solid #4ade80;
}

/* Адаптивность */
@media (max-width: 768px) {
    .third_row {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 25px;
    }
    .third_row .map_btn {
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .header_container {
        flex-direction: column;
        gap: 10px;
    }
    .third_row {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 12px;
    }
    .third_row .map_btn {
        padding: 10px 20px;
        font-size: 1em;
        min-width: 140px;
    }
}

:root {
    --grid-major: #1f1f23;
    --grid-minor: #141417;
}


#map {

    background-color: #09090b;
    background-image:
            linear-gradient(var(--grid-major) 2px, transparent 2px),
            linear-gradient(90deg, var(--grid-major) 2px, transparent 2px),
            linear-gradient(var(--grid-minor) 1px, transparent 1px),
            linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}