/* Общие стили */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a {
    color: #d79d41;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #555;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-height: 60px;
    width: auto;
}

/* НОВЫЙ БЛОК: Кнопка переключения меню (гамбургер) */
.menu-toggle {
    display: none; /* Скрыть по умолчанию (на десктопе) */
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    order: 2; /* Порядок, чтобы располагалась между лого и языковым переключателем */
}

/* Навигация */
.main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-nav > li {
    position: relative;
    margin-left: 25px;
}

.main-nav > li > a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav > li > a:hover {
    color: #d79d41;
    text-decoration: none;
}

/* Выпадающее меню */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    border-radius: 5px;
    top: 100%;
    left: 0;
}

.dropdown-content li a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    text-transform: none;
    font-weight: normal;
}

.dropdown-content li a:hover {
    background-color: #d79d41;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Переключатель языка */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}
.language-switcher .button {
    background-color: #e9e9e9;
    color: #555;
    border: 1px solid #ccc;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.language-switcher .button.active {
    background-color: #d79d41;
    color: white;
    border-color: #d79d41;
}

.language-switcher .button:hover:not(.active) {
    background-color: #d0d0d0;
    color: #333;
}

/* Main Content Sections */
main {
    padding-top: 0px;
    flex-grow: 1;
}

.content-section {
    background-color: #ffffff;
    padding: 20px 0; 
    margin-bottom: 0px;
    border-radius: 0px;
    box-shadow: none;
}

.content-section h1,
.content-section h2,
.content-section h3 {
    text-align: center;
    color: #d79d41;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

.content-section h2 {
    font-size: 2em;
}

.content-section h3 {
    font-size: 1.6em;
    color: #444;
}

.content-section p {
    text-align: justify;
    margin-bottom: 15px;
    padding: 0 40px;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Стили для афиши */
.project-content-with-image {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 0 40px;
}

.project-text {
    flex-grow: 1;
}

.project-text p {
    padding: 0;
}

.project-poster {
    flex-shrink: 0;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.project-poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content-overlay {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 20px;
    background: none;
    border-radius: 10px;
}

.hero-section h1 {
    font-size: 3.5em;
    color: #f5f5f5;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.3em;
    color: #d79d41;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.hero-section .cta-button {
    background-color: #d79d41;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #c29a3e;
    text-decoration: none;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 40px;
}

.gallery-item {
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    padding: 15px;
    font-size: 0.95em;
    color: #555;
    background-color: #f9f9f9;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gallery-item .caption p {
    margin: 0;
}


/* Contact Form */
.contact-form-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 24px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: #d79d41;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #c29a3e; /* Изменено на более темный оттенок для hover */
}

.contact-info-list {
    list-style: none;
    padding: 0;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-info-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-info-list li strong {
    color: #d79d41;
}


/* Footer */
footer {
    background-color: #333;
    color: #969696;
    padding: 30px 0;
    margin-top: 0px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.9em;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    position: relative;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.social-icon-front {
    opacity: 1;
}

.social-links a:hover .social-icon-front {
    opacity: 0;
}

.social-icon-back {
    background-size: cover;
    opacity: 0;
}

.social-links a:hover .social-icon-back {
    opacity: 1;
}

/* Стили для эффекта переворота изображений */
.image-flip-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%;
    overflow: hidden;
}

.image-flip-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.image-flip-container .front-image {
    opacity: 1;
}

.image-flip-container .back-image {
    opacity: 0;
}

.project-item:hover .front-image,
.gallery-item:hover .front-image {
    opacity: 0;
}

.project-item:hover .back-image,
.gallery-item:hover .back-image {
    opacity: 1;
}

/* Стили для секции "О нас" с изображением */
.about-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
    padding: 0 40px;
}

.about-image {
    width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.about-text {
    flex-grow: 1;
    text-align: justify;
}

.about-text p {
    padding: 0;
    margin-bottom: 15px;
    text-align: justify;
}

/* ================================== */
/* СТИЛИ ДЛЯ ВРЕМЕННОЙ ШКАЛЫ (таймлайна) */
/* ================================== */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background-color: #ddd;
}

.timeline-event {
    margin-bottom: 30px;
    position: relative;
    padding-left: 60px; /* Отступ для текста */
}

.timeline-event::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 23px; /* Выравнивание круга */
    width: 15px;
    height: 15px;
    background-color: #d79d41; /* Цвет круга */
    border-radius: 50%;
    z-index: 1;
    border: 2px solid #fff;
}

.timeline-date {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.timeline-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

/* Стиль для выделения ключевых дат и мест */
.timeline-highlight {
    color: #d79d41; /* Золотой/желтый цвет */
    font-weight: 700;
}

/* Стили: Центрирование изображений */
.timeline-image-wrapper {
    margin: 25px auto; 
    max-width: 450px; 
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px; 
    overflow: hidden;
    position: relative; 
}

.timeline-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    display: block;
    font-size: 0.9em;
    text-align: center;
    padding: 10px;
    color: #555;
    background-color: #f0f0f0;
}
/* КОНЕЦ СТИЛЕЙ для изображений */

/* Корректировка для цитат внутри таймлайна */
.timeline-text blockquote {
    padding: 15px 20px;
    margin: 15px 0 15px 60px; /* Отступ слева, чтобы не пересекаться с линией */
    border-left: 5px solid #d79d41;
    font-style: italic;
    background-color: #f9f9f9;
    color: #444;
    position: relative;
    z-index: 1;
}

.timeline-text blockquote p {
    padding: 0; 
    text-align: left;
    margin-bottom: 0;
    font-size: 1em;
}

/* Корректировка заголовков для таймлайна, чтобы они не были центрированы, как главные */
.timeline-event h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 2em; 
    color: #333; 
}

/* Корректировка подзаголовков H3 внутри событий */
.timeline-event h3 {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #d79d41; 
    font-size: 1.4em;
    font-weight: 600;
}

/* Корректировка текста внутри таймлайна */
.timeline-text p {
    padding: 0; 
    text-align: justify;
    margin-left: 0;
    margin-right: 0;
}


/* Адаптивность */
@media (max-width: 992px) {
    
    /* ИЗМЕНЕНИЯ ДЛЯ МОБИЛЬНОГО МЕНЮ */
    .menu-toggle {
        display: block; /* Показываем гамбургер */
    }
    
    .header-content {
        flex-direction: row; /* Возвращаем в ряд, чтобы лого, кнопка и язык были в ряд */
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; /* Разрешаем обтекание для навигации */
    }
    
    /* Стили для скрытой навигации (применяется классом в JS) */
    nav.nav-hidden-mobile {
        display: none; /* Скрыто по умолчанию */
        flex-basis: 100%; /* Навигация будет занимать всю ширину */
        order: 10; /* Сдвигаем навигацию вниз */
        box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Добавляем тень */
        background-color: #ffffff;
    }

    /* Стили для активной навигации (открытое меню) */
    nav.nav-hidden-mobile.active {
        display: block; /* Показываем меню */
    }

    .main-nav {
        flex-direction: column; /* Пункты меню вертикально */
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }
    .main-nav > li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee; /* Разделитель для пунктов */
    }
    .main-nav > li:last-child {
        border-bottom: none;
    }
    .main-nav > li > a {
        padding: 12px 0;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        padding: 0; /* Убираем лишний паддинг у выпадающего меню */
    }
    .dropdown-content li a {
        padding: 10px 0 10px 40px; /* Добавляем отступ для подпунктов */
    }
    
    /* Переключатель языка остается в ряду */
    .language-switcher {
        margin-top: 0; /* Удаляем лишний отступ */
    }
    /* КОНЕЦ ИЗМЕНЕНИЙ ДЛЯ МОБИЛЬНОГО МЕНЮ */
    
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
    }
    .about-image {
        width: 100%;
        max-width: 400px;
        float: none;
        margin-right: 0;
    }
    .project-content-with-image {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
    }
    .project-poster {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Удаляем дублирующиеся стили меню из этого блока, они перенесены выше */
    
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    .content-section h1, .content-section h2, .content-section h3 {
        font-size: 1.8em;
    }
    .content-section p {
        padding: 0 20px;
        font-size: 1em;
    }
    .contact-form-container {
        margin: 20px;
        padding: 20px;
    }
    .contact-form input, .contact-form textarea, .contact-form button {
        width: 100%;
        box-sizing: border-box;
    }
    .footer-content {
        flex-direction: column;
    }
    .social-links {
        margin-top: 15px;
    }
    .projects-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    /* Адаптивность таймлайна */
    .timeline::before {
        left: 20px;
    }
    .timeline-event {
        padding-left: 50px;
    }
    .timeline-event::before {
        left: 13px;
    }
}

@media (max-width: 600px) {
    /* На маленьких экранах изображения центрируются и занимают всю ширину */
    .timeline-image-wrapper {
        max-width: 100%; 
    }

    .timeline-text blockquote {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 40vh;
    }
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 0.9em;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .content-section {
        padding: 30px 0;
    }
    .content-section p {
        padding: 0 15px;
    }
    .timeline::before {
        left: 15px;
    }
    .timeline-event {
        padding-left: 40px;
    }
    .timeline-event::before {
        left: 8px;
    }
}

/* Custom Hero Section for Ambassador pages */
.hero-section.ambassador-page-hero {
    background-image: url('../images/ambassador_background.jpg');
}

.hero-section.postcards-hero-background {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../images/postcards_background.jpg') no-repeat center center/cover;
    color: #f5f5f5;
}

.hero-section.postcards-hero-background h1 {
    color: #f5f5f5;
}

.hero-section.postcards-hero-background p {
    color: #d0d0d0;
}

/* Стили для страницы "Друзья и партнёры" */
.section-title {
    text-align: center;
    color: #444;
    margin-top: 50px;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid #d79d41;
    padding-bottom: 10px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
    text-align: center;
}

.friends-list-inline {
    margin: 30px auto;
    max-width: 800px;
}

.friends-list-inline ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.friends-list-inline li {
    font-size: 1.1em;
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
    text-align: center;
}

.friends-list-inline li:last-child {
    border-bottom: none;
}

.friends-list-inline li strong {
    color: #444;
}

.partner-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.partner-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.partner-item h3 {
    color: #333;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
}

.partner-item p {
    font-size: 0.95em;
    color: #666;
    margin: 0;
    padding: 0;
}

.partner-item a {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .partners-list {
        grid-template-columns: 1fr;
    }
    .friends-list-inline {
        margin: 20px 10px;
    }
}

/* Стили для страницы "Проекты" */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 0 40px;
}

.project-item {
    display: block;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.project-item h3 {
    margin: 15px 15px 5px;
    font-size: 1.1em;
    color: #333;
    line-height: 1.2;
}

/* ДОБАВЛЕННЫЙ СТИЛЬ: Выравнивание текста описания проекта по левому краю */
.project-item p {
    text-align: left; /* <-- Вот это гарантирует выравнивание по левому краю */
    margin: 0 15px 15px;
    font-size: 0.9em;
    color: #666;
    padding: 0;
}

/* Адаптивность для проектов */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .image-flip-container {
        padding-bottom: 75%;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .image-flip-container {
        padding-bottom: 66.66%;
    }
}

/* Стиль для Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Стили для баннера с открытками */
#postcards-preview-banner {
    padding: 0;
    background-color: #f8f8f8;
}

.postcard-banner-content {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../images/postcards_background.jpg') no-repeat center center/cover;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: -50px;
    margin-bottom: 50px;
}

.postcard-banner-content .section-title {
    color: #fff;
    border-bottom-color: #d79d41;
    margin-bottom: 20px;
}

.postcard-banner-content p {
    color: #d0d0d0;
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0;
}

.postcard-banner-content .cta-button {
    background-color: #d79d41;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.postcard-banner-content .cta-button:hover {
    background-color: #c29a3e;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .postcard-banner-content {
        padding: 50px 20px;
        margin: 20px 0;
    }
    .postcard-banner-content p {
        font-size: 1em;
    }
}

/* Стили для кнопки "Наверх" */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d79d41;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
    background-color: #c29a3e;
    transform: scale(1.1);
}

#back-to-top i {
    display: inline-block;
    transition: transform 0.3s ease;
}

#back-to-top:hover i {
    transform: translateY(-3px);
}
/* Стили для проектов на главной странице */
.projects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card-content {
    padding: 20px;
    text-align: center;
}

.project-card-content h3 {
    font-size: 1.5em;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.project-card-content p {
    font-size: 1em;
    color: #666;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .projects-preview {
        grid-template-columns: 1fr;
    }
}
/* Стили для секции "События" */
.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
}

.event-header {
    background-color: #d79d41;
    color: #fff;
    padding: 15px 20px;
}

.event-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5em;
    text-align: left;
}

.event-date {
    font-size: 1em;
    font-weight: normal;
    opacity: 0.9;
}

.event-content {
    padding: 20px;
}

.event-content p {
    text-align: left;
    margin: 0;
    color: #555;
    font-size: 1em;
}

.event-link {
    margin-top: 15px;
    text-align: right;
}

.event-link a {
    color: #d79d41;
    text-decoration: none;
    font-weight: bold;
}

.event-link a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .event-item {
        flex-direction: row;
    }

    .event-header {
        width: 250px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .event-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}