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 {
    background: #141414;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
}

header > div {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin: 0 auto;
}

header nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

header a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    border: 1px solid transparent;
    white-space: nowrap;
}

header a:hover {
    color: #ff3333;
    background: #1f1f1f;
    border-color: #2a2a2a;
}

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

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.dropdown-menu a:hover {
    background: #222;
    color: #ff3333;
    border-color: #2a2a2a;
}

.dropdown-menu a i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Мобильная версия выпадающего меню */
@media (max-width: 768px) {
    .profile-dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: absolute;
        right: 20px;
        left: auto;
        width: auto;
        min-width: 200px;
    }
    
    .profile-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.logo {
    color: #ff3333;
    font-family: 'EB Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
    min-width: 150px;
    display: inline-block;
}

.logo:hover {
    color: #ff4d4d;
}
.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 {
    background: #141414;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    margin-top: auto;
}
footer p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}
footer a {
    color: #ff3333;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}
footer a:hover {
    color: #ff4d4d;
}
.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;
}