/* ---- Общие переменные и стили ---- */
:root {
    --primary-color: #0d2c4b; /* Глубокий синий */
    --accent-color: #d4af37; /* Золотой */
    --text-color: #333;
    --bg-light: #f8f9fa;
    --bg-dark: #fff;
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

/* ---- Шапка ---- */
.header {
    background: rgba(13, 44, 75, 0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

.logo .fa-cross {
    color: var(--accent-color);
    margin-left: 5px;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding-bottom: 5px;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---- Главный экран (Hero) ---- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.hero-video-bg video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.hero .btn-primary:hover {
    color: #fff; /* Особый стиль для кнопки на главном экране */
}

/* ---- Секция "О вере" (Features) ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* ---- Секция "Цитата" ---- */
.quote-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
}

.quote-section blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: none;
}

.quote-section footer {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: normal;
    margin-top: 20px;
    opacity: 0.8;
}

/* ---- Галерея ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ---- Секция "Контакты" ---- */
.contact-section {
    background-color: var(--bg-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form button {
    align-self: center;
    cursor: pointer;
    width: 200px;
}

/* ---- Подвал ---- */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 0;
}

/* ---- Адаптивность ---- */
@media(max-width: 768px) {
    .nav {
        display: none; /* Скрываем навигацию на мобильных */
        flex-direction: column;
        position: absolute;
        top: 68px; /* Высота шапки */
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px 0;
    }

    .nav.active {
        display: flex; /* Показываем при клике на бургер */
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav li {
        margin: 15px 0;
    }

    .burger-menu {
        display: block; /* Показываем бургер-кнопку */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
