@import url('variables.css');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--background);
    color: var(--dark-blue);
}


/* Превью раздела */
.preview-container {
    margin-top: 3rem;
    max-width: 1000px;
    width: 100%;
}

.preview {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    animation: slideIn 0.4s ease-out;
}

.preview img {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.preview-text h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-size: 1.4rem;
}

.preview-text p {
    color: var(--addit-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.video-albums {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;

}

.video-item video {
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.photo {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}


/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .preview {
        flex-direction: column;
    }

    .preview img {
        width: 100%;
        height: 180px;
    }

    .dropdown {
        left: 0;
        transform: translateY(10px);
    }
}

/* Анимация */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .life-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2rem;
    }
}



/* --------------------------НОВОЕ----------------------------- */
/* Контейнер */
.life-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Заголовок */
.life-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.life-hero h1 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin: 0;
}

.life-hero h1 span {
    color: var(--blue);
}

.life-hero .life-subtitle {
    color: var(--addit-text);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Общие стили кнопок */
.btn-primary {
    margin: 1.5rem auto;
    text-align: center;
    display: block;
    max-width: 350px;
    padding: 0.8rem 1.8rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: #258ed6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(43, 163, 236, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-outline:hover {
    background: var(--blue);
    color: white;
}

/* Галерея */
.life-gallery h2,
.life-projects h2,
.life-events h2,
.life-history h2,
.life-cta h2 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Проекты */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card i {
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-card h3 {
    color: var(--dark-blue);
    margin: 0.5rem 0;
}

.project-card p {
    color: var(--addit-text);
    margin: 0.5rem 0 1rem;
}

/* Мероприятия */
/* Карточки мероприятий */
.events-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 1.8rem 1.5rem;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.event-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
    font-size: 1.4rem;
}

.event-card-icon.bg-blue {
    background: var(--blue);
}

.event-card-icon.bg-accent {
    background: var(--accent);
}

.event-card-icon.bg-purple {
    background: #7a5ce8;
    /* Можно заменить на свою переменную */
}

.event-card h3 {
    color: var(--dark-blue);
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.event-card p {
    color: var(--addit-text);
    margin: 0;
    line-height: 1.6;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.event-icon {
    background: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.event-content h3 {
    margin: 0 0 0.3rem;
    color: var(--dark-blue);
    font-size: 1.2rem;
}

.event-content p {
    margin: 0;
    color: var(--addit-text);
}

/* История */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.history-item {
    background: white;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.history-item i {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.history-item h3 {
    color: var(--dark-blue);
    margin: 0.5rem 0;
}

.history-item a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.history-item a:hover {
    text-decoration: underline;
}

/* Призыв к действию */
.life-cta {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--blue);
    color: white;
    border-radius: 16px;
    margin-top: 2rem;
}

.life-cta h2 {
    color: var(--text);
    font-size: 2rem;
    margin: 0 0 1rem;
}

.life-cta p {
    color: var(--banana);
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 1.5rem;
}

.life-cta .btn-primary {
    background: white;
    color: var(--blue);
}

.life-cta .btn-primary:hover {
    background: var(--banana);
    color: var(--dark-blue);
}

.albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.album {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.album:hover {
    transform: translateY(-5px);
}

.album img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.album-info {
    padding: 15px;
}

.album-name {
    color: var(--dark-blue);
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    
}

.album-count {
    color: #777;
    font-size: 0.9em;
}

.photo:focus img {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: fit-content;
}
.photo{
    transition: transform 0.2s ease;
}
.photo:hover{
    cursor: pointer;
    transform: translateY(-2px);
}
/* Подложка для модального окна */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;
}

/* Большое изображение в модальном окне */
.modal-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    animation: fadeIn 0.3s ease;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .life-hero h1 {
        font-size: 2rem;
    }

    .life-hero .life-subtitle {
        font-size: 1rem;
    }

    .gallery-grid,
    .projects-grid,
    .history-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .event-icon {
        margin-bottom: 0.5rem;
    }

    .life-cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .life-container {
        padding: 1rem;
    }

    .gallery-item {
        height: 160px;
    }

    .btn-primary,
    .btn-outline {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}