/* Цветовая схема варианта 2 */
:root {
    --color-primary: #4b2e83;
    --color-accent: #e0a52f;
    --color-light: #f9f9f9;
    --color-dark: #222222;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

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

/* Навигация */
.top-nav {
    background-color: var(--color-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Геройская секция */
.hero-section {
    position: relative;
    background-image: url('images/img6.png');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #f0b84c;
    color: var(--color-dark);
}

/* О фонде */
.about-section {
    background-color: var(--color-light);
    padding: 3rem 0;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1 1 50%;
}

.about-text h2 {
    margin-top: 0;
    color: var(--color-primary);
}

.about-text ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.about-image {
    flex: 1 1 40%;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* Отзывы */
.testimonials {
    padding: 3rem 0;
}

.testimonials h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.testimonial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.testimonial {
    background-color: var(--color-light);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1 1 280px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial p {
    margin: 0;
    font-style: italic;
}

.testimonial span {
    margin-top: 0.5rem;
    display: block;
    font-weight: bold;
    color: var(--color-primary);
}

/* Новости превью */
.news-preview {
    background-color: #fff;
    padding: 3rem 0;
}

.news-preview h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.news-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.card {
    background-color: var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.card-body p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
    align-self: flex-start;
}

.card-link:hover {
    color: var(--color-accent);
}

/* Страница новостей */
.news-main {
    padding: 3rem 0;
}

.news-main h1 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.news-entry {
    margin-bottom: 3rem;
}

.news-entry h2 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.news-entry time {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-entry img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news-entry p {
    margin: 0 0 1rem;
}

/* Галерея */
.gallery-main {
    padding: 3rem 0;
}

.gallery-main h1 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.gallery-main p {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Лайтбокс */
.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: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* Подвал */
.footer {
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--color-primary);
        flex-direction: column;
        width: 200px;
        gap: 0;
        display: none;
    }
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-menu.show {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-text, .about-image {
        flex: 1 1 100%;
    }
    .testimonial-list {
        flex-direction: column;
    }
    .news-cards {
        flex-direction: column;
    }
}