/* --- Сброс и Переменные --- */
:root {
    --bg-body: #f4f4f4;
    --bg-card: #ffffff;
    --text-main: #2c2c2c;
    --text-muted: #666666;
    --accent-color: #555555;
    --accent-hover: #333333;
    --border-color: #e0e0e0;
    --header-overlay: rgba(0, 0, 0, 0.6);
    --spacing-unit: 1rem;
    --container-width: 1100px;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Утилиты --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--text-muted);
    margin: 1rem auto 0;
}

/* --- Шапка (Hero Section) --- */
header {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://picsum.photos/seed/everest_mountain/1920/1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--header-overlay));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* --- Навигация --- */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.nav-item {
    margin: 0 1.5rem;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--text-main);
}

/* --- Основной контент --- */
section {
    padding: 5rem 0;
}

/* Секция Описание */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-align: justify;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.about-image img:hover {
    filter: grayscale(0%);
}

/* Секция История */
.history-section {
    background-color: #e8e8e8;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #ccc;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.timeline-date {
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #fff;
    border: 3px solid #999;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -8px;
}

/* Секция Факты */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.fact-card {
    background: var(--bg-card);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.fact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.fact-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Секция Галерея */
.gallery-section {
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Футер --- */
footer {
    background-color: #222;
    color: #999;
    padding: 3rem 0;
    text-align: center;
}

.footer-text {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    margin: 0 10px;
    color: #ccc;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: #fff;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-item {
        margin: 0.5rem;
    }
}