:root {
    --primary-color: #8B4513;
    --primary-dark: #654321;
    --secondary-color: #CD853F;
    --accent-color: #DAA520;
    --text-dark: #2C1810;
    --text-light: #F5F5DC;
    --bg-light: #FFF8DC;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    --shadow-hover: 0 8px 30px rgba(139, 69, 19, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* === ОЦЕНКА ОТВЕТА === */
.rating-block {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 16px;
}
.rating-criteria {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}
.rating-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.rating-item span:first-child {
    font-weight: 500;
}
.stars {
    display: flex;
    gap: 0.3rem;
    cursor: pointer;
}
.stars span {
    font-size: 1.8rem;
    color: #ccc;
    transition: color 0.2s;
}
.stars span.selected,
.stars span:hover {
    color: gold;
}
/* === КОММЕНТАРИИ === */
.comments-section {
    margin-top: 2rem;
}
.comments-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}
.comment-item {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.comment-content {
    flex: 1;
}
.comment-author {
    font-weight: bold;
    color: var(--primary-dark);
}
.comment-time {
    font-size: 0.75rem;
    color: #888;
    margin-left: 0.5rem;
}
.comment-text {
    margin-top: 0.3rem;
}
.comment-photo {
    margin-top: 0.5rem;
    max-width: 200px;
    border-radius: 8px;
    cursor: pointer;
}
.add-comment {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.comment-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== НАВИГАЦИЯ ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
/* Полупрозрачные блоки */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

/* Для карточек флага и герба */
.symbol-img-wrapper {
    text-align: center;
    margin-top: 0.5rem;
}
.symbol-img-wrapper img {
    max-width: 200px;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Убираем старый блок region-info-header, он больше не нужен, но можно оставить для совместимости – он не используется */
.region-info-header {
    display: none;
}

/* Детальная сетка */
.region-details-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.detail-card {
    background: transparent; /* фон задаётся через glass-card */
    padding: 1.2rem;
}
.detail-card.full-width {
    grid-column: 1 / -1;
}
.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}
.region-info-desc-full {
    font-size: 1.05rem;
    line-height: 1.7;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.logo svg {
    width: 80px;
    height: 80px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.language-select:hover {
    background: var(--primary-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.region-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.region-detail-header .btn-back {
    margin-bottom: 0;
    flex-shrink: 0;
}
.region-detail-header .section-title {
    margin-bottom: 0;
    flex-grow: 1;
    text-align: center;
}
.region-detail-header .btn-region-info {
    flex-shrink: 0;
    visibility: visible !important;
    margin: 0;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.region-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.detail-card {
    background: white;
    padding: 1.2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.detail-card.full-width {
    grid-column: 1 / -1;
}
.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ==================== КНОПКА ПОДРОБНЕЕ О РЕГИОНЕ ==================== */
.btn-region-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.9rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-region-info:hover {
    background: var(--primary-dark);
    transform: translateX(3px);
}
.region-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.region-title-row .section-title {
    margin-bottom: 0;
}

/* ==================== ГАЛЕРЕЯ РЕГИОНА ==================== */
.region-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 1rem;
}
.gallery-track {
    display: flex;
    transition: transform 0.4s ease;
}
.gallery-slide {
    min-width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: 12px;
}
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.gallery-btn:hover { background: rgba(0,0,0,0.75); }
.gallery-btn-prev { left: 10px; }
.gallery-btn-next { right: 10px; }
.gallery-dots {
    text-align: center;
    margin-top: 0.75rem;
}
.gallery-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.gallery-dot.active { background: var(--primary-color); }

/* ==================== РЕГИОН-ИНФО СТРАНИЦА ==================== */

.region-info-symbols {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}
.region-symbol-item {
    text-align: center;
}
.region-symbol-item img {
    width: 100px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.region-symbol-item p {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.3rem;
}
.region-info-desc {
    flex: 1;
    min-width: 250px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}
.region-map-img {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

/* ==================== МИНИ-КАРТА В МОДАЛЬНОМ ОКНЕ ==================== */
.mini-map-iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 10px;
    margin-top: 1rem;
}

/* ==================== КНОПКА В МОДАЛКЕ ==================== */
.btn-modal-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-modal-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: white;
    overflow: hidden;
    margin-top: 70px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(218, 165, 32, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 69, 19, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.empty-favorites {
    grid-column: 1 / -1;          /* ← добавить эту строку */
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    font-size: 1.2rem;
    color: #888;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.feature-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ==================== КНОПКИ ==================== */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.btn-back:hover {
    transform: translateX(-5px);
}

.btn-block {
    width: 100%;
}

.generate-route-btn {
    margin: 2rem 0;
    width: 100%;
    max-width: 400px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== СЕКЦИИ КОНТЕНТА ==================== */
.content-section {
    min-height: 100vh;
    padding: 6rem 0 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Описание региона на странице деталей */
.region-detail-description {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

/* ==================== СЕТКИ ==================== */
.regions-grid,
.attractions-grid,
.routes-grid,
.civilizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ==================== КАРТОЧКИ ==================== */
.region-card,
.attraction-card,
.route-card,
.civilization-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.region-card:hover,
.attraction-card:hover,
.route-card:hover,
.civilization-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.active {
    color: #FFD700;
}

/* ==================== ФИЛЬТРЫ ==================== */
.filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==================== ТИПЫ МАРШРУТОВ ==================== */
.route-types {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.route-type-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.route-type-btn:hover,
.route-type-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ==================== ТАБЫ ==================== */
.favorites-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: white;
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== МОДАЛЬНЫЕ ОКНА ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-large {
    max-width: 900px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    margin-top: 1rem;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.audio-player {
    width: 100%;
    margin: 1rem 0;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.map-link:hover {
    color: var(--accent-color);
}

/* ==================== ФОРМЫ ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.question-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.question-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.question-answer {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    display: none;
}

.question-answer.active {
    display: block;
}

/* ==================== УВЕДОМЛЕНИЯ ==================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    display: none;
    z-index: 3000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.active {
    display: block;
}

/* ==================== ЗАГРУЗКА ==================== */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.12);
        z-index: 999;
        border-top: 1px solid #eee;
    }
    .nav-links.mobile-open {
        display: flex;
    }
    .nav-links .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .regions-grid,
    .attractions-grid,
    .routes-grid,
    .civilizations-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .route-types {
        justify-content: flex-start;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    .region-info-header {
        flex-direction: column;
    }
    .region-info-symbols {
        justify-content: center;
    }
    .region-symbol-item img {
        width: 70px;
        height: 85px;
    }
}

/* ==================== УТИЛИТЫ ==================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* ==================== ПРОКРУТКА ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
/* Анимация появления секций */
.section {
    animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}