/* Общие стили для всех страниц сайта театральной студии "Лампочка" */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #000000;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: #000000;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: #000000;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    color: #000000;
}

.btn-primary {
    background-color: #FFD700;
    color: #000000;
}

.btn-primary:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background-color: #000000;
    color: #FFD700;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #000000;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #FFD700;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Шапка сайта */
header {
    background-color: #FFD700;
    color: #000000;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: #000000;
    font-weight: 500;
    padding: 8px 0;
    transition: opacity 0.3s;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    opacity: 0.8;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000000;
    bottom: -5px;
    left: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #000000;
    font-size: 24px;
    cursor: pointer;
}

/* Логотип */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000000;
    background-color: #FFD700;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
}

.logo-accent-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #000000;
    opacity: 0.9;
}

/* Герой секция */
.hero {
    background: linear-gradient(rgba(255, 215, 0, 0.9), rgba(255, 215, 0, 0.8)), url('../images/photo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #000000;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 50px;
}

.hero h1 {
    font-size: 48px;
    color: #000000;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #000000;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid #000000;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    color: #000000;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin: 0;
    color: #000000;
}

/* Особенности */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #FFD700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: #000000;
    font-size: 30px;
}

/* События */
.events-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    background-color: #000000;
    color: #FFD700;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 28px;
    font-weight: bold;
}

.event-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

.event-content {
    padding: 20px;
    flex: 1;
}

.event-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #000000;
}

.event-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #333333;
}

/* CTA секция */
.cta {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #000000;
    text-align: center;
}

.cta h2 {
    color: #000000;
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    color: #000000;
}

/* Подвал */
footer {
    background-color: #000000;
    color: #FFD700;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #FFD700;
    bottom: 0;
    left: 0;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFD700;
}

.footer-logo i {
    color: #FFD700;
    font-size: 24px;
}

.footer-logo span {
    color: #FFD700;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #333333;
    color: #FFD700;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: #FFD700;
    color: #000000;
    transform: translateY(-3px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #FFD700;
}

.footer-contact i {
    color: #FFD700;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: #FFD700;
}

.footer-bottom a {
    color: #FFD700;
}

.footer-bottom a:hover {
    color: #FFFFFF;
}

/* Заголовок страницы */
.page-header {
    background: linear-gradient(rgba(255, 215, 0, 0.9), rgba(255, 215, 0, 0.8)), url('https://images.unsplash.com/photo-1513106580091-1d82408b8cd6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: #000000;
    text-align: center;
    padding: 150px 0 80px;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 42px;
    color: #000000;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb li {
    margin: 0 5px;
    font-size: 14px;
    color: #000000;
}

.breadcrumb li:not(:last-child):after {
    content: '/';
    margin-left: 10px;
    color: #000000;
}

.breadcrumb a {
    color: #000000;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Расписание */
.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.calendar-day {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.day-header {
    background: #FFD700;
    color: #000;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.day-schedule {
    padding: 15px;
    min-height: 200px;
}

.time-slot {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid #FFD700;
}

.time-slot .time {
    font-weight: bold;
    color: #FFD700;
    display: block;
}

.schedule-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: #FFD700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000000;
    font-size: 24px;
    margin: 0 auto 20px;
}

/* Спектакли */
.performances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.performance-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
}

.performance-card:hover {
    transform: translateY(-10px);
    border-color: #FFD700;
}

.performance-img {
    height: 220px;
    overflow: hidden;
}

.performance-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.performance-card:hover .performance-img img {
    transform: scale(1.05);
}

.performance-info {
    padding: 25px;
}

.performance-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #000;
}

.performance-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.performance-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #FFD700;
    margin: 15px 0;
}

/* Галерея */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #000000;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background-color: #FFD700;
    color: #000000;
    border-color: #000000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 2px solid #e0e0e0;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: #FFD700;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #FFD700;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid #000;
}

.news-content {
    padding: 22px;
}

.news-category {
    display: inline-block;
    background: #FFD700;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 12px;
    border: 1px solid #000;
}

.news-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #000;
}

.news-description {
    color: #444;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.contact-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-detail i {
    font-size: 30px;
    color: #FFD700;
}

.contact-detail h3 {
    margin-bottom: 5px;
    color: #000;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Анимации */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container { width: 95%; }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 36px; }
    .hero-subtitle { font-size: 18px; }
    .hero-stats { gap: 20px; padding: 20px; }
    .stat-item h3 { font-size: 28px; }
    .contact-grid, .news-card.featured { grid-template-columns: 1fr; }
    .calendar-week { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #FFD700;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    nav ul.show { display: flex; }
    nav ul li { margin: 10px 0; }
    .mobile-menu-btn { display: block; }
    
    .hero {
        padding: 150px 0 80px;
        background-attachment: scroll;
    }
    
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    
    .event-card { flex-direction: column; }
    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 15px;
    }
    
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .performances-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { grid-template-columns: 1fr; gap: 15px; }
    .features-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 32px; }
    .btn-large { padding: 12px 24px; font-size: 16px; }
}

/* Аутентификация */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.auth-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    border: 3px solid #FFD700;
    animation: slideInUp 0.5s ease-out;
}

.auth-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    padding: 40px;
    text-align: center;
    color: #000000;
}

.auth-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #000000;
}

.auth-header p {
    margin: 0;
    opacity: 0.8;
    color: #000000;
}

.auth-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #000;
    font-weight: bold;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .auth-body {
        padding: 30px 20px;
    }
}
/* Дополнительные стили для объявления на странице расписания */
.schedule-comment p {
    margin: 0 0 10px 0;
    padding: 0;
}

.schedule-comment p:last-child {
    margin-bottom: 0;
}

.comment-body {
    line-height: 1.6;
}

.comment-body br {
    display: block;
    margin: 5px 0;
}