/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Шапка */
header {
    background: #c8102e;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* Логотип с гербом */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;          /* увеличено с 12px */
}

.logo-img {
    width: 60px;         /* было 45px */
    height: auto;
    transition: transform 0.2s;
}

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

@media (max-width: 768px) {
    .logo-img {
        width: 45px;     /* было 35px */
    }
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    white-space: nowrap;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.8;
}

/* Герой-блок (базовый) */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Заголовки страниц (для внутренних страниц) */
.page-header {
    background: #c8102e;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 2.8rem;
}

/* Сетки */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

/* Карточки */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: #c8102e;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.sight-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #64748b;
    margin: 10px 0;
}

.sight-meta i {
    margin-right: 5px;
    color: #c8102e;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.02);
}

/* Маршруты */
.route-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
}

.route-card h3 {
    color: #c8102e;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.route-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    font-weight: 500;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c8102e;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #a00d25;
}

/* Футер */
footer {
    background: #c8102e;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

footer .social-links {
    margin-top: 20px;
}

footer .social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #ffd700;
}

/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */
/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Hero с улучшенным текстом */
.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 4rem;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.btn-hero {
    background: #ffd700;
    color: #c8102e;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: #ffe152;
    transform: scale(1.05);
}

/* Статистика */
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin: 60px 0;
}

.stat-item {
    text-align: center;
    flex: 1 1 200px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #c8102e;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Карточки причин */
.reason-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.reason-icon {
    font-size: 3rem;
    color: #c8102e;
    margin-bottom: 20px;
}

.reason-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

/* Карта (контейнер) */
.map-container {
    width: 100%;
    margin: 60px 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Цитаты */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.quote-card {
    background: #f8fafc;
    border-radius: 30px;
    padding: 30px;
    font-style: italic;
    position: relative;
    border-left: 5px solid #c8102e;
}

.quote-card::before {
    content: '“';
    font-size: 4rem;
    color: #c8102e;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.quote-author {
    margin-top: 20px;
    font-weight: 600;
    color: #c8102e;
}

/* Блог / События */
.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-content h3 {
    color: #c8102e;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-content p {
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Кнопка "Подробнее" для событий */
.btn-event {
    display: inline-block;
    padding: 8px 20px;
    background: #c8102e;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    margin-top: auto;
}

.btn-event:hover {
    background: #a00d25;
    transform: translateY(-2px);
}

/* Подписка */
.subscribe {
    background: #c8102e;
    color: white;
    border-radius: 50px;
    padding: 60px;
    text-align: center;
    margin: 60px 0;
}

.subscribe h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.subscribe p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
}

.subscribe-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 40px 0 0 40px;
    font-size: 1rem;
}

.subscribe-form button {
    padding: 15px 30px;
    border: none;
    border-radius: 0 40px 40px 0;
    background: #ffd700;
    color: #c8102e;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe-form button:hover {
    background: #ffe152;
}

/* Стили для сообщения подписки */
#subscribe-message {
    transition: opacity 0.3s;
    font-size: 1rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    .logo {
        justify-content: center;
    }
    .logo-img {
        width: 35px;
    }
    header h1 {
        font-size: 1.6rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero h2 { 
        font-size: 2.5rem; 
    }
    .hero p {
        font-size: 1.2rem;
    }
    .grid-2, .grid-3, .grid-4 { 
        grid-template-columns: 1fr; 
    }
    .page-header h2 { 
        font-size: 2rem; 
    }
    .stats-grid {
        flex-direction: column;
        align-items: center;
    }
    .subscribe {
        padding: 30px 20px;
        border-radius: 30px;
    }
    .subscribe-form {
        flex-direction: column;
        gap: 10px;
    }
    .subscribe-form input,
    .subscribe-form button {
        border-radius: 40px;
    }
}