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

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a1a;
    color: #e8e2d9;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* --- Общие блоки --- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: url('../images/background/hero.jpeg') center center / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 20, 18, 0.15) 0%, rgba(10, 10, 8, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* --- Hero для внутренних страниц (история, люди) --- */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    min-height: 40vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2620 100%);
    margin-top: 80px;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 8, 0.6);
    z-index: 1;
}

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

/* --- История: таймлайн и старое фото --- */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #d9c7a7;
    margin: 2rem 0;
}

.timeline-item {
    margin-bottom: 2rem;
}

.timeline-item h3 {
    font-family: 'Playfair Display', serif;
    color: #d9c7a7;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}
.timeline-item span {
    display: inline-flex;
    gap: 0.35rem;
}

.timeline-item p {
    color: #cbc3b5;
    line-height: 1.5;
}

.old-photo {
    border-radius: 20px;
    overflow: hidden;
    margin: 2rem 0;
}

.old-photo img {
    width: 100%;
    display: block;
}

.old-photo figcaption {
    color: #8f8575;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* --- Страница «Люди» --- */

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.person-card {
    background: rgba(255,255,240,0.05);
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid rgba(217,199,167,0.15);
    transition: all 0.3s;
    text-align: center;
}

.person-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217,199,167,0.4);
}

.person-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #d9c7a7;
}

.person-card h3 {
    font-family: 'Playfair Display', serif;
    color: #f2e9de;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.person-card .role {
    color: #d9c7a7;
    font-size: 0.9rem;
    font-weight: 500;
}

.person-card p {
    color: #cbc3b5;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.quote {
    font-style: italic;
    color: #b9af9f;
    border-left: 3px solid #d9c7a7;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
}

/* --- Остальные общие классы --- */

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 12vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #f5efe7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 300;
    opacity: 0.92;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(232, 226, 217, 0.3);
    border-bottom: 1px solid rgba(232, 226, 217, 0.3);
    display: inline-block;
    padding: 0.75rem 0;
}

.description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-weight: 300;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    padding: 1rem 1.5rem;
    border-radius: 40px;
}

.btn {
    display: inline-block;
    background: #d9c7a7;
    color: #1e1b18;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.25s ease;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #c6b28b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #d9c7a7;
    color: #d9c7a7;
}

.btn-outline:hover {
    background: #d9c7a7;
    color: #1e1b18;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    background: #131210;
}

section:not(.hero):nth-child(even) {
    background: #1a1815;
}

/* --- Индивидуальные фоны для внутренних страниц (переопределяют общий фон секций) --- */
section.page-hero.history-hero {
    background: url('../images/background/history-bg.jpg') center center / cover no-repeat;
}

section.page-hero.people-hero {
    background: url('../images/background/people-bg.jpg') center center / cover no-repeat;
}

section.page-hero.tours-hero {
    background: url('../images/tours/tours2.jpg') center center / cover no-repeat;
}

section.page-hero.support-hero {
    background: url('../images/background/support-bg.jpg') center center / cover no-repeat;
}
section.page-hero.photo-hero {
    background: url('../images/background/photo-bg.jpg') center center / cover no-repeat;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    color: #f2e9de;
}

.section-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: #b9af9f;
    max-width: 700px;
    margin-bottom: 3rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.card {
    background: rgba(255,255,240,0.05);
    padding: 1.8rem;
    border-radius: 28px;
    backdrop-filter: blur(2px);
    transition: all 0.3s;
    border: 1px solid rgba(217, 199, 167, 0.15);
}

.card:hover {
    transform: translateY(-6px);
    background: rgba(217, 199, 167, 0.08);
    border-color: rgba(217, 199, 167, 0.4);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.card p {
    color: #cbc3b5;
    font-size: 0.95rem;
    line-height: 1.45;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0 2rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background-color: #2a2620;
    border-radius: 20px;
    overflow: hidden;
    transition: filter 0.5s ease, transform 0.4s ease;
    cursor: default;                  /* убираем «палец» */
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    filter: grayscale(1) contrast(1.05);  /* ч/б + лёгкий контраст */
}

.gallery-item:hover {
    filter: grayscale(0) contrast(1);     /* цвет возвращается */
    transform: scale(1.02);               /* лёгкое увеличение */
}

/* --- Форма --- */

.form-box {
    background: rgba(255,255,240,0.03);
    border-radius: 32px;
    padding: 2rem;
    max-width: 600px;
    margin-top: 2rem;
    border: 1px solid rgba(217, 199, 167, 0.2);
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

input {
    flex: 2;
    padding: 1rem;
    border-radius: 60px;
    border: none;
    background: #2c2822;
    color: #f2e9de;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

input::placeholder {
    color: #8f8575;
}

.form-box button {
    background: #d9c7a7;
    color: #1e1b18;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 60px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
}

.form-box button:hover {
    background: #c6b28b;
}

/* --- Футер --- */

footer {
    background: #0c0b09;
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: #8f8575;
    border-top: 1px solid rgba(217,199,167,0.1);
}

footer a {
    color: #d9c7a7;
    text-decoration: none;
}

/* --- Шапка / меню --- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(20, 20, 18, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #f5efe7;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav a {
    color: #e8e2d9;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s;
}

.nav a:hover {
    color: #d9c7a7;
}

.nav a.active {
    color: #d9c7a7;
    font-weight: 500;
}

/* --- Общие ссылки --- */

a {
    color: #d9c7a7;
    text-decoration: none;
}

/* --- Адаптивность --- */

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .cards {
        gap: 1.2rem;
    }
    .hero {
        min-height: 80vh;
    }
    .page-hero {
        min-height: 30vh;
        margin-top: 70px;
    }
    .header {
        padding: 0.8rem 1rem;
    }
	.header .logo {
        display: none;
    }
    .nav {
        gap: 1rem;
    }
    .people-grid {
        grid-template-columns: 1fr;  /* на мобильных карточки в колонку */
        gap: 1.5rem;
    }
    .person-card img {
        width: 100px;
        height: 100px;
    }
}

.link-gallery {
    text-align: center;
    margin-top: 1rem;
}

.header .logo {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.header.scrolled .logo {
    opacity: 1;
    pointer-events: auto;
}
/* --- Вкладки (табы) --- */
.tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(217, 199, 167, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #b9af9f;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.tab-btn:hover {
    color: #e8e2d9;
    background: rgba(217, 199, 167, 0.1);
}

.tab-btn.active {
    color: #f5efe7;
    background: rgba(217, 199, 167, 0.15);
    font-weight: 500;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}
.tabs-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(217, 199, 167, 0.2);
    padding-top: 1.5rem;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Фоновые изображения для секций на главной --- */

section.bg-section {
    position: relative;
    background-color: #131210; /* запасной цвет, если картинка не загрузится */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* История — фон с затемнением */
section.bg-history {
    background-image: linear-gradient(rgba(19, 18, 16, 0.70), rgba(19, 18, 16, 0.78)),
                      url('../images/history/1944-1.jpg') !important;
}

/* Стать частью возрождения — фон с затемнением */
section.bg-join {
    background-image: linear-gradient(rgba(19, 18, 16, 0.80), rgba(19, 18, 16, 0.88)),
                      url('../images/background/1939-reconstruction-mini.jpg') !important;
					      background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
/* --- Страница галереи: список сессий --- */

.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.session-card {
    background: rgba(255,255,240,0.05);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(217,199,167,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.session-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217,199,167,0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.session-card .session-cover {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #2a2620;
    transition: filter 0.5s ease;
    filter: grayscale(0.4);
}

.session-card:hover .session-cover {
    filter: grayscale(0);
}

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

.session-card .session-date {
    font-size: 0.8rem;
    color: #d9c7a7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.session-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #f2e9de;
    margin-bottom: 0.5rem;
}

.session-card p {
    color: #cbc3b5;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.session-card .session-more {
    margin-top: 1rem;
    color: #d9c7a7;
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- Галерея внутри сессии: сетка фото --- */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.photo-grid a {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background-color: #2a2620;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(0.85) contrast(1.05);
    cursor: pointer;
}

.photo-grid a:hover {
    transform: scale(1.03);
    filter: grayscale(0) contrast(1);
}

/* --- Навигация «назад к галерее» --- */

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #b9af9f;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #d9c7a7;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
}