/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: bold;
}

.nav {
    display: flex;
    align-items: center;
}

.user-email {
    margin-right: 10px;
    font-size: 14px;
    color: white;
    font-weight: 500;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

/* Необрутализм стили */
.modal-content.brutalist {
    background: #f8f9fa;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0 #000;
    font-family: 'Courier New', monospace;
}

.brutalist-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}

.brutalist-card {
    background: white;
    border: 2px solid #000;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 #000;
}

.brutalist-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #000;
}

.brutalist-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.brutalist-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.brutalist-divider {
    height: 2px;
    background: #000;
    margin: 20px 0;
}

.brutalist-form {
    margin-top: 1rem;
}

.brutalist-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    background: white;
    margin-bottom: 1rem;
}

.brutalist-input:focus {
    outline: none;
    box-shadow: 4px 4px 0 #000;
}

.brutalist-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid #000;
    border-radius: 0;
    background: #000;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.brutalist-btn:hover {
    background: white;
    color: #000;
    box-shadow: 4px 4px 0 #000;
}

.btn-telegram {
    width: 100%;
    padding: 15px;
    border: 2px solid #0088cc;
    border-radius: 0;
    background: #0088cc;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-telegram:hover {
    background: white;
    color: #0088cc;
    box-shadow: 4px 4px 0 #0088cc;
}

.btn-gmail {
    padding: 12px 20px;
    border: 2px solid #ea4335;
    border-radius: 0;
    background: #ea4335;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px;
}

.btn-gmail:hover {
    background: white;
    color: #ea4335;
    box-shadow: 3px 3px 0 #ea4335;
}

.btn-apple {
    padding: 12px 20px;
    border: 2px solid #000;
    border-radius: 0;
    background: #000;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px;
}

.btn-apple:hover {
    background: white;
    color: #000;
    box-shadow: 3px 3px 0 #000;
}

.auth-section {
    display: none;
}

.auth-section.active {
    display: block;
}

.alternative-auth {
    text-align: center;
    margin: 20px 0;
}

.alternative-auth h4 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #000;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brutalist-tab {
    padding: 10px 20px;
    border: 2px solid #000;
    border-radius: 0;
    background: white;
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px;
}

.brutalist-tab.active,
.brutalist-tab:hover {
    background: #000;
    color: white;
    box-shadow: 3px 3px 0 #000;
}
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Табы авторизации */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.tab-content {
    display: none;
}

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

/* Секреты */
.secret-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.secret-card:hover {
    transform: translateY(-2px);
}

.secret-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.secret-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.secret-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.secret-type {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
}

/* Видео */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    margin: 15px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Карта */
#map {
    height: calc(100vh - 200px);
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Футер */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.footer-section p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.footer-section a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .map-controls {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px;
    }
}

/* Анимации */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Утилиты */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

/* Сообщения */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
