/* meropriyatiya.css — стили для страницы мероприятий */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-image: url(../img/hed.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
}

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

/* Шапка сайта */
.header-line {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.header-logo img {
    height: 60px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.header-logo img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    margin-right: 25px;
    transition: color 0.5s linear;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF7400;
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: #FF7400;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item.active {
    color: #FF7400;
}

.nav-item.active::after {
    width: 100%;
}

.phone {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-holder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-img img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.num {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.5s linear;
}

.num:hover {
    color: #FF7400;
}

.phone-text {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 5px;
}

.button {
    background-color: #FF7400;
    color: #fff;
    text-decoration: none;
    padding: 14px 18px;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s linear;
    box-shadow: 0 4px 15px rgba(255, 116, 0, 0.3);
}

.button:hover {
    background-color: #c1671d;
    box-shadow: 0 6px 20px rgba(255, 116, 0, 0.5);
    transform: translateY(-2px);
}

/* Заголовок страницы мероприятий */
.meropriyatiya-title {
    font-family: 'Tinos', serif;
    font-size: 54px;
    text-align: center;
    margin: 50px 0 40px;
    color: #D67E35;
    position: relative;
    padding-bottom: 20px;
}

.meropriyatiya-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF7400, transparent);
}

.meropriyatiya-title span {
    color: #D67E35;
}

/* Сетка мероприятий */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Карточка мероприятия */
.event-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: #FF7400;
    box-shadow: 0 15px 40px rgba(255, 116, 0, 0.3);
}

.event-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF7400;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.event-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-family: 'Tinos', serif;
    font-size: 28px;
    color: #D67E35;
    margin-bottom: 15px;
}

.event-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    flex: 1;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.event-price {
    font-size: 24px;
    font-weight: 700;
    color: #FF7400;
    letter-spacing: 0.5px;
}

.event-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-btn {
    display: inline-block;
    background-color: #FF7400;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    cursor: pointer;
    margin-top: auto;
}

.event-btn:hover {
    background-color: #c1671d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 116, 0, 0.4);
}

/* Баннер акции */
.event-banner {
    background: linear-gradient(135deg, rgba(255, 116, 0, 0.25), rgba(0, 0, 0, 0.85));
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    margin: 50px 0;
    border: 1px solid rgba(255, 116, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.8s ease-out;
}

.banner-content h2 {
    font-family: 'Tinos', serif;
    font-size: 36px;
    color: #D67E35;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.banner-btn {
    display: inline-block;
    background-color: #FF7400;
    color: #fff;
    text-decoration: none;
    padding: 14px 35px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background-color: #c1671d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 116, 0, 0.4);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }

/* Адаптивность */
@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .meropriyatiya-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .header-line {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav {
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 10px;
    }
    
    .phone {
        align-items: center;
    }
    
    .phone-text {
        text-align: center;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .meropriyatiya-title {
        font-size: 42px;
    }
    
    .event-title {
        font-size: 24px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .event-banner {
        padding: 35px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .meropriyatiya-title {
        font-size: 32px;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-title {
        font-size: 22px;
    }
    
    .event-price {
        font-size: 20px;
    }
    
    .event-desc {
        font-size: 14px;
    }
    
    .banner-content h2 {
        font-size: 22px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .banner-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}