:root {
    color-scheme: light;
    color: #1f1f1f;
    background: #ffffff;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    width: 100%;
}

body {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid rgba(31, 31, 31, 0.12);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.brand-link {
    color: #1f1f1f;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

.nav-right {
    display: flex;
    gap: 32px;
    text-transform: uppercase;
}

.nav-links a {
    color: #1f1f1f;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #6750a4;
}

.main-container {
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.section {
    display: none;
    width: 100%;
    height: 100%;
    background: #fff;
}

.section:target {
    display: flex;
}

.section-fullscreen:target {
    display: block;
}

.section-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px;
}

.section h1 {
    margin: 0 0 16px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.section p {
    margin: 12px 0;
    font-size: 1rem;
    color: #49454e;
    line-height: 1.75;
}

.section a {
    color: #6750a4;
    text-decoration: none;
    font-weight: 600;
}

.section a:hover {
    color: #7c3aed;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.search-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 90%;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(31, 31, 31, 0.12);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #6750a4;
}

.search-bar input::placeholder {
    color: #999999;
}

.notification {
    position: absolute;
    top: 78px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 90%;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.97);
    color: #1f1f1f;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 15;
}

.notification.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.right-panel {
    position: absolute;
    right: 20px;
    top: 80px;
    width: 300px;
    max-height: calc(100% - 120px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
    z-index: 20;
    padding: 16px;
    overflow-y: auto;
}

.right-panel h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f1f1f;
}

.panel-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(31, 31, 31, 0.12);
}

.tab-button {
    padding: 8px 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: #999999;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    flex: 1;
}

.tab-button:hover {
    color: #1f1f1f;
}

.tab-button.active {
    color: #6750a4;
    border-bottom-color: #6750a4;
}

.tab-content {
    display: flex;
    flex-direction: column;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(31, 31, 31, 0.12);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6750a4;
    box-shadow: 0 0 0 2px rgba(103, 80, 164, 0.1);
}

.form-group textarea {
    min-height: 80px;
    max-height: 120px;
}

.char-count {
    display: block;
    font-size: 0.75rem;
    color: #999999;
    margin-top: 4px;
    text-align: right;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1f1f1f;
}

.location-item:hover {
    background: #e8e8e8;
}

.location-remove {
    padding: 6px 10px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.location-remove:hover {
    background: #c0392b;
}

.marker-popup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-button-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #000;
    border-radius: 12px;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.popup-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.popup-button:hover {
    transform: translateY(-1px);
    background: #222;
}

.popup-remove {
    background: #fff;
    color: #000;
    border-color: #000;
}

.popup-remove:hover {
    background: #e8e8e8;
}

.sponsors {
    min-height: auto;
}

.sponsor-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.sponsor-card {
    display: block;
    padding: 20px 22px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.18);
}

.sponsor-card strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.sponsor-card span {
    color: #555;
}

@media (max-width: 820px) {
    .nav-links {
        gap: 22px;
        padding: 14px 20px;
    }
    .section-content {
        padding: 32px 20px;
    }
}

@media (max-width: 560px) {
    .nav-links {
        gap: 18px;
        padding: 12px 16px;
        flex-direction: column;
        align-items: center;
    }
    .nav-right {
        gap: 20px;
    }
    .section-content {
        padding: 28px 16px;
    }
    .section h1 {
        font-size: 1.4rem;
    }
}
