/* Основные стили для сайта фонда «Дари тепло» */
/* Обнуление и общие правила */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.competition-card.bg-1 {
    background-image: url('/img/all-russ.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
 .media-download {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%);
        color: white;
        padding: 0.6rem 1.2rem;
        border-radius: 30px;
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        width: 100%;
        text-align: center;
	 	height: 50px;
    }
    
    .media-download:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(231, 111, 81, 0.3);
    }
    
    /* Анимации */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
.competition-card.bg-2 {
    background-image: url('/img/all-pet.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Добавьте полупрозрачный слой для лучшей читаемости текста */
.competition-card.with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* белый полупрозрачный слой */
    z-index: 0;
    pointer-events: none;
}

.competition-card.with-bg > * {
    position: relative;
    z-index: 1;
}
.ssr{font-size: 12px;color: #000;}

  /* Блок биеннале */
        .biennale-header-large {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .biennale-header-large h1 {
            font-family: 'Comfortaa', cursive;
            font-size: 2.5rem;
            color: #E76F51;
            margin-bottom: 0.5rem;
        }
        
        .biennale-subtitle {
            font-size: 1.3rem;
            color: #2A9D8F;
            margin-bottom: 1rem;
            font-weight: 600;
        }
        
        .biennale-year {
            font-size: 1.1rem;
            color: #2A9D8F;
            background: #fff;
            display: inline-block;
            padding: 0.3rem 1.5rem;
            border-radius: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        /* Блоки конкурсов */
        .competitions-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin: 3rem 0;
        }
        
        .competition-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid rgba(231, 111, 81, 0.1);
            position: relative;
        }
        
        .competition-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(231, 111, 81, 0.15);
            border-color: rgba(231, 111, 81, 0.3);
        }
        
        .competition-header {
            padding: 1.8rem 1.5rem;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .competition-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            opacity: 0.3;
        }
        
        .competition-header h3 {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
            color: white;
            position: relative;
            font-family: 'Comfortaa', cursive;
        }
        
        .competition-subheader {
            font-size: 1.2rem;
            opacity: 0.95;
            margin-bottom: 1rem;
            position: relative;
            font-weight: 600;
        }
        
        .grant-badge {
            display: inline-block;
            background: rgba(255, 255, 255, 0.2);
            padding: 0.4rem 1.2rem;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            position: relative;
        }
        
        .competition-content {
            padding: 2rem 1.8rem;
        }
        
        .document-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed #eee;
        }
        
        .doc-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1.5rem;
            background: #F8F9FA;
            border-radius: 30px;
            color: #2A9D8F;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        
        .doc-link:hover {
            background: #E76F51;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 111, 81, 0.3);
        }
        
        .doc-link:hover svg {
            fill: white;
        }
        
        .doc-link svg {
            width: 20px;
            height: 20px;
            fill: #2A9D8F;
            transition: fill 0.3s ease;
        }
        
        .doc-link:hover svg {
            fill: white;
        }
        
        .participants-title {
            font-size: 1.2rem;
            color: #E76F51;
            margin-bottom: 1rem;
            text-align: center;
            font-weight: 600;
        }
        
        .participants-grid {
            display: grid;
            grid-template-columns:1fr 1fr 1fr;
            gap: 1rem;
        }
        
        .participant-item {
            background:#E76F51;
            padding: 0.8rem 1rem;
            border-radius: 10px;
            text-align: center;
            font-size: 1.2em;
            color: #fff;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        
        .participant-item:hover {
            background: #FFF;
            border-color: #E9C46A;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            color: #2A9D8F;
        }
        
        .competition-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: #E9C46A;
            color: #fff;
            padding: 0.3rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 2;
        }
        
        /* Секция с работами */
        .works-section {
            margin-top: 4rem;
        }
        
        .works-section h2 {
            text-align: center;
            color: #2A9D8F;
            font-size: 2rem;
            margin-bottom: 2rem;
            position: relative;
            padding-bottom: 1rem;
        }
        
        .works-section h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #E76F51, #E9C46A);
            border-radius: 2px;
        }
        
        /* Адаптивность */
        @media (max-width: 992px) {
            .biennale-header-large h1 {
                font-size: 2rem;
            }
            
            .competition-header h3 {
                font-size: 1.5rem;
            }
        }
        
        @media (max-width: 768px) {
            .competitions-grid {
                grid-template-columns: 1fr;
            }
            
            .document-links {
                flex-direction: column;
                align-items: center;
                gap: 0.8rem;
            }
            
            .doc-link {
                width: 100%;
                justify-content: center;
            }
            
            .participants-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 480px) {
            .biennale-header-large h1 {
                font-size: 1.6rem;
            }
            
            .biennale-subtitle {
                font-size: 1.1rem;
            }
            
            .competition-header {
                padding: 1.5rem 1rem;
            }
            
            .competition-header h3 {
                font-size: 1.3rem;
            }
            
            .participants-grid {
                grid-template-columns: 1fr;
            }
        }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.founder-photo img{object-fit:cover;height:100%;}
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #fffaf5;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* Блок Партнеры */
.partners {
    padding: 4rem 0;
    background: #f8f9fa;
}

.partners h2 {
    text-align: center;
    color: #E76F51;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.partners-note {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-bottom: 3rem;
}

.partners-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin-bottom: 20px;
}

.partner-logo-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.partner-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(231, 111, 81, 0.1);
}

.partner-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

.partner-name {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .partners-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partner-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .partners-logos-grid {
        grid-template-columns: 1fr;
    }
}
.img-dipll {max-width:600px;margin:0 auto;}
.letter-item img{max-width:100%;}
a {
    color: inherit;
    text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 1rem 0;
}

.diplom-gridd {
  display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-bottom: 3rem;	
	
}
 /* Секция учредителей */
        .founders-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            margin-bottom: 3rem;
        }
        
        .founder-item {
            display: flex;
            gap: 1.5rem;
            background: #fff;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .founder-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }
        
        /* Фото слева */
        .founder-photo {
            flex: 0 0 150px;
            background: linear-gradient(135deg, var(--light-color), #fff);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-color);
        }
        
        .founder-photo svg {
            width: 60px;
            height: 60px;
        }
        
        /* Контент справа */
        .founder-content {
            flex: 1;
            padding: 1.5rem 1.5rem 1.5rem 0;
        }
        
        .founder-name {
            font-size: 1.5rem;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
            font-weight: 700;
        }
        
        .founder-role {
            color: var(--secondary-color);
            font-weight: 600;
            margin-bottom: 1rem;
            font-size: 1rem;
        }
        
        .founder-description {
            color: #666;
            line-height: 1.6;
            margin-bottom: 1rem;
        }
        
        /* Благодарственные письма */
        .letters-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }
        
        .letter-item {
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }
        
        .letter-image {
            height: 200px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .letter-title {
            padding: 1rem;
            text-align: center;
        }
        
        .letter-title h3 {
            color: var(--accent-color);
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .founders-grid {
                grid-template-columns: 1fr;
            }
            
            .founder-item {
                flex-direction: column;
            }
            
            .founder-photo {
                flex: 0 0 200px;
            }
            
            .founder-content {
                padding: 1.5rem;
            }
            
            .letters-grid {
                grid-template-columns: 1fr;
            }
        }
/* Цветовые переменные */
:root {
    --primary-color: #f4a261;
    --accent-color: #e76f51;
    --secondary-color: #2a9d8f;
    --light-color: #ffe8d6;
    --text-color: #333333;
}

/* Top bar */
.top-bar {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}
.top-bar .top-left span,
.top-bar .top-right a {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
}
.top-bar .icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.3rem;
    color: #fff;
}
.top-bar .volunteer-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s;
}
.top-bar .volunteer-link:hover {
    opacity: 0.8;
}
.top-bar .button {
    background: #fff;
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}
.top-bar .button:hover {
    background: #fbe1d6;
    transform: translateY(-2px);
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    z-index: 50;
}
header .logo {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.3rem;
}
header .logo-icon {
    margin-right: 0.5rem;
    color: var(--accent-color);
}
nav ul {
    display: flex;
    align-items: center;
}
nav ul li a {
    margin-left: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding: 0.3rem 0;
}
nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}
/* underline effect on hover */
nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}
.burger span {
    display: block;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Mobile menu */
#nav-menu {
    transition: right 0.3s ease-in-out;
}
@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -2px 0 8px rgba(0,0,0,0.1);
        z-index: 40;
    }
    nav ul.open {
        right: 0;
    }
    nav ul li a {
        margin: 1rem 0;
        font-size: 1.3rem;
    }
    .burger {
        display: flex;
    }
}

/* Hero section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
padding: 20px 0px 20px 0px;
  background-image: linear-gradient(
        rgba(0, 0, 0, 0.6), /* Затемнение поверх фото (можно регулировать прозрачность) */
        rgba(0, 0, 0, 0.6)
    ), 
    url("../img/11.jpg");	
	
	background-size:cover;
    position: relative;min-height:350px;
}
.media-links {
    display: grid; /* Включаем flexbox */
    flex-wrap: wrap; /* Чтобы ссылки переносились, если не влезают */
    gap: 15px; /* Отступ между ссылками (можно изменить на нужный) */
    align-items: center; /* Выравнивание по вертикали */
	grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Если у ссылок все еще есть лишние отступы, можно их обнулить */
.media-links .media-download {
    /* display: inline-block; */ /* Обычно при flex это не нужно */
    margin-right: 0; /* Убираем старые отступы, если они мешали */
}
/* Page hero for internal pages */
.page-hero {
padding: 40px 0px 40px 0px;
	  background-image: linear-gradient(
        rgba(0, 0, 0, 0.6), /* Затемнение поверх фото (можно регулировать прозрачность) */
        rgba(0, 0, 0, 0.6)
    ), 
    url("../img/11.jpg");	

    text-align: center;background-size:cover;
}
.page-hero h1 {
    font-family: 'Comfortaa', cursive;
    font-size: 2.3rem;
    color:#fff;
    margin-bottom: 0.5rem;
}
.page-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
color: #fff;
}
.hero-content h1 {
    font-family: 'Comfortaa', cursive;
    font-size: 2.5rem;
    color:#fff;
    margin-bottom: 1rem;
}
.hero-content p {
max-width: 1000px;
  margin: 0 auto 2rem;
  font-size: 2em;
    color: #fff;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.button {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    cursor: pointer;
}
.button.primary {
    background: var(--accent-color);
    color: #fff;
}
.button.primary:hover {
    background: #d65a45;
    transform: translateY(-2px);
}
.button.secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
.button.secondary:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}
.button.small {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

.hero-illustration {
    margin-top: 2rem;
}

/* Section Headings */
section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}
section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--secondary-color);
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Contest cards */
.contest-card .contest-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}
.contest-card .contest-image svg {
    width: 100%;
    height: 100%;
}
.contest-card h3 {
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}
.contest-card p {
    margin-bottom: 0.6rem;
    font-style: italic;
}
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.badge {
    background: var(--light-color);
    color: var(--accent-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.icon-wrapper {
    margin-bottom: 1rem;
}
.icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.news-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.news-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
.news-card h3 {
    margin-bottom: 0.5rem;
}
.news-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.read-more {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: underline;
}
.read-more:hover {
    color: #d65a45;
}

/* Gallery preview */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.gallery-thumb {
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-thumb svg {
    width: 100%;
    height: auto;
}
.gallery-thumb:hover {
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #fff0e6;
    color: var(--text-color);
    padding: 3rem 0 2rem;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.footer-col {
    flex: 1 1 250px;
}
.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.footer-col ul li,
.footer-col p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.footer-col .icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    color: var(--accent-color);
}
.social-links a {
    margin-right: 0.8rem;
    display: inline-block;
    transition: transform 0.2s;
}
.social-links a svg {
    width: 24px;
    height: 24px;
}
.social-links a:hover {
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 30;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Gallery page styles */
.filter-buttons-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.filter-button.active {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}
.gallery-items .gallery-grid.large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-item:hover {
    transform: translateY(-3px);
}
.gallery-item svg {
    width: 100%;
    height: auto;
    display: block;
}
.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.4rem 0.2rem;
    text-align: center;
    font-weight: 600;
    color: var(--accent-color);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.lightbox.open {
    display: flex;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow: auto;
}
.lightbox-content svg {
    width: 100%;
    height: auto;
}
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 101;
}

/* Scroll animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Additional utilities */
.news-card a,
.footer-col a {
    color: var(--accent-color);
}

/* Timeline styles */
.timeline {
    position: relative;
    margin-left: 1rem;
    padding-left: 1rem;

}
.timeline li {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}
.timeline-year {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    display: inline-block;
}
.timeline-content {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Благодарственные письма - 4 в строку */
.letters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.letter-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.letter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.letter-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.letter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.letter-item:hover .letter-image img {
    transform: scale(1.05);
}

.letter-title {
    padding: 1.2rem;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.letter-title h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.letter-title p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Адаптивность для писем */
@media (max-width: 1024px) {
    .letters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	.media-links {
    display: grid; /* Включаем flexbox */
    flex-wrap: wrap; /* Чтобы ссылки переносились, если не влезают */
    gap: 15px; /* Отступ между ссылками (можно изменить на нужный) */
    align-items: center; /* Выравнивание по вертикали */
	grid-template-columns: 1fr !important;
}
}

@media (max-width: 768px) {
    .letters-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Responsive adjustments */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }
    section h2 {
        font-size: 1.6rem;
    }
}