/* =========================================
   Базовые настройки и сброс стилей
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fcfbf7;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   Шапка сайта и навигация
   ========================================= */
header {
    background-color: #ffffff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #e67e22;
    transform: translateY(-1px);
}

/* =========================================
   Главный экран (Hero Section)
   ========================================= */
.hero {
    /* Локальная картинка с затемнением */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/hero.jpg') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 140px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    max-width: 600px;
}

/* =========================================
   Контейнеры и типографика
   ========================================= */
.container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #2c3e50;
    line-height: 1.3;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.page-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.page-content li {
    margin-bottom: 10px;
}

/* =========================================
   Карточки постов (Главная страница)
   ========================================= */
.latest-posts h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

.post-content {
    padding: 30px;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.date {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #e67e22;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: #d35400;
}

/* =========================================
   Страница "О нас" и изображения
   ========================================= */
.feature-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* =========================================
   Сетка направлений (Destinations)
   ========================================= */
.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.dest-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.dest-card:hover {
    transform: translateY(-5px);
}

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

.dest-card h3 {
    padding: 20px 20px 5px;
    font-size: 1.3rem;
}

.dest-card p {
    padding: 0 20px 25px;
    color: #666;
    font-size: 0.95rem;
}

/* =========================================
   Блоки с советами (Tips)
   ========================================= */
.tip-box {
    background: #ffffff;
    padding: 30px;
    border-left: 6px solid #e67e22;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    transition: border-color 0.3s ease;
}

.tip-box:hover {
    border-left-color: #d35400;
}

.tip-box h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.tip-box p {
    margin-bottom: 0;
    color: #555;
}

/* =========================================
   Подвал сайта (Footer)
   ========================================= */
footer {
    background: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

footer p {
    margin: 8px 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* =========================================
   Адаптивность для мобильных устройств
   ========================================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .post-card img {
        height: 250px;
    }

    .page-content h1 {
        font-size: 2rem;
    }
}
