body {
    font-family: 'Roboto Mono', monospace;
    background: #0a0a0a;
    color: #d4d4d4;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 51, 51, 0.05), rgba(51, 51, 255, 0.05));
    opacity: 0.2;
    z-index: -1;
}
/* Современный Header */
header {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.98) 0%, rgba(15, 15, 20, 0.98) 100%);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1600px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    margin: 0 auto;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: 'EB Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo i {
    color: #ff6b6b;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.logo:hover {
    color: #ff6b6b;
}

.logo:hover i {
    transform: rotate(15deg);
}

/* Навигация */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    white-space: nowrap;
    position: relative;
}

.nav-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link.login-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link.register-link {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 51, 51, 0.2) 100%);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.nav-link.register-link:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 51, 51, 0.3) 100%);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff3333;
}

/* Выпадающее меню профиля */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 107, 0.3);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff3333 100%);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.profile-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
}

.dropdown-icon {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.profile-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.98) 0%, rgba(15, 15, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.profile-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #ff6b6b;
}

.dropdown-item:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #fff;
    padding-left: 20px;
}

.dropdown-item.logout {
    color: rgba(255, 107, 107, 0.8);
}

.dropdown-item.logout:hover {
    background: rgba(255, 51, 51, 0.15);
    color: #ff3333;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* Мобильная версия */
@media (max-width: 968px) {
    .header-container {
        padding: 12px 20px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(145deg, rgba(20, 20, 25, 0.98) 0%, rgba(15, 15, 20, 0.98) 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 20px;
        gap: 8px;
        backdrop-filter: blur(20px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
    
    .profile-dropdown {
        width: 100%;
    }
    
    .profile-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .profile-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }
    
    .logo {
        gap: 0;
    }
}
.container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    flex: 1;
}
h1 {
    font-family: 'EB Garamond', serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: #fff;
}
h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    margin: 50px 0 20px;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-link {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    padding: 6px 15px;
    background: transparent;
    border: 1px solid #4a4a4a;
    color: #a0a0a0;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}
.section-link:hover {
    background: #1f1f1f;
    border-color: #666;
    color: #fff;
    transform: translateY(-2px);
}
p {
    text-align: center;
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 30px;
}
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #ff3333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #ff4d4d;
    transform: translateY(-2px);
}
.secondary-btn {
    background: transparent;
    border: 1px solid #4a4a4a;
    color: #a0a0a0;
}
.secondary-btn:hover {
    background: #1f1f1f;
    border-color: #666;
    color: #fff;
    transform: translateY(-2px);
}
.events-row, .masters-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.event, .master {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #2a2a2a;
    flex: 1;
    min-width: 300px;
    transition: border-color 0.3s;
    text-align: center;
}
.event:hover, .master:hover {
    border-color: #ff3333;
}
.event h3, .master h3 {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: 1px;
}
.event p, .master p {
    font-size: 13px;
    color: #a0a0a0;
    margin: 5px 0;
}
.master {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.master-photo {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    background-color: #444;
    border: 1px solid #ff3333;
}
.master-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.review {
    border-top: 1px solid #333;
    padding-top: 10px;
    margin-top: 15px;
    font-size: 13px;
    color: #a0a0a0;
}
.review-form {
    margin-top: 20px;
}
.review-form textarea {
    width: 100%;
    padding: 8px;
    background: #222;
    color: #d4d4d4;
    border: 1px solid #333;
    border-radius: 3px;
    resize: none;
    font-size: 13px;
    transition: border-color 0.3s;
}
.review-form textarea:focus {
    border-color: #ff3333;
    outline: none;
}
.review-form button {
    margin-top: 10px;
}
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}
/* Современный Footer */
footer {
    background: linear-gradient(145deg, rgba(15, 15, 20, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    backdrop-filter: blur(20px);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 40px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'EB Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.footer-title i {
    color: #ff6b6b;
    font-size: 28px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    transform: translateY(-2px);
}

.footer-heading {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.footer-links a:hover {
    color: #ff6b6b;
    padding-left: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ff6b6b;
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Адаптивность Footer */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-section:last-child {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section:last-child {
        grid-column: 1;
        margin-top: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .footer-copyright p {
        text-align: left;
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .footer-legal .separator {
        display: none;
    }
}
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Improved Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #1c1c1c;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ff3333;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.2);
    position: relative;
}
.modal-content h3 {
    font-family: 'EB Garamond', serif;
    font-size: 24px;
    color: #fff;
    margin: 0 0 20px;
    text-align: center;
    letter-spacing: 1px;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #a0a0a0;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal:hover {
    color: #ff3333;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    color: #d4d4d4;
    margin-bottom: 8px;
    font-weight: 400;
}
.form-group input {
    width: 100%;
    padding: 10px;
    background: #222;
    color: #d4d4d4;
    border: 1px solid #333;
    border-radius: 5px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.form-group input:focus {
    border-color: #ff3333;
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.3);
    outline: none;
}
.error-message {
    color: #ff3333;
    font-size: 12px;
    margin-top: 5px;
    font-family: 'Roboto Mono', monospace;
    display: none;
}
.modal-content button.btn {
    width: 100%;
    padding: 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    margin-top: 10px;
}