/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-logo i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #2563eb;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    background-image: url('./images/hero/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Fallback для фонового изображения */
.hero-background.fallback {
    background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(16, 185, 129, 0.7) 100%), 
                      url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkyMCIgaGVpZ2h0PSIxMDgwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJhIiB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNhKSIvPjwvc3ZnPg==');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(16, 185, 129, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.search-container {
    margin-bottom: 3rem;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.search-box i {
    padding: 15px 20px;
    color: #64748b;
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 10px;
    font-size: 1rem;
    color: #333;
}

.search-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #1d4ed8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.stat-number.counting {
    animation: numberPulse 0.1s ease-in-out;
}

@keyframes numberPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5));
    transition: width 0.3s ease;
}

.stat-number.counting::after {
    width: 100%;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

.animate-fade-in:nth-child(4) {
    animation-delay: 0.6s;
}

/* Sections */
section {
    padding: 80px 0;
}

/* Равномерные отступы для всех секций */
.hero {
    padding: 0; /* Исключение для героя */
}

.popular-destinations,
.featured-attractions,
.latest-reviews,
.trip-planner,
.blog-section {
    padding: 100px 0; /* Увеличенные отступы для визуального баланса */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Popular Destinations */
.popular-destinations {
    background: #f8fafc;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки для 6 карточек */
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch; /* Выравнивание высоты карточек */
    justify-content: center; /* Центрирование сетки */
    max-width: 1200px; /* Ограничение максимальной ширины */
    margin-left: auto;
    margin-right: auto;
}

/* Для больших экранов оптимизируем под 3 колонки */
@media screen and (min-width: 1200px) {
    .destinations-grid {
        grid-template-columns: repeat(3, 350px); /* Фиксированная ширина для больших экранов */
        gap: 2.5rem;
    }
}

.destination-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%; /* Равная высота всех карточек */
}

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

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destination-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.flag {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Заполнение доступного пространства */
    justify-content: space-between; /* Равномерное распределение контента */
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.card-content p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

.card-stats i {
    margin-right: 5px;
    color: #2563eb;
}

/* Featured Attractions */
.featured-attractions {
    background: white;
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки для 6 карточек */
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch; /* Выравнивание высоты карточек */
    justify-content: center; /* Центрирование сетки */
    max-width: 1200px; /* Ограничение максимальной ширины */
    margin-left: auto;
    margin-right: auto;
}

/* Для планшетов - 2 колонки */
@media screen and (max-width: 900px) and (min-width: 769px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .attractions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 800px;
    }
}

/* Для больших экранов оптимизируем под 3 колонки */
@media screen and (min-width: 1200px) {
    .attractions-grid {
        grid-template-columns: repeat(3, 380px); /* Фиксированная ширина для больших экранов */
        gap: 2.5rem;
    }
}

.attraction-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Равная высота всех карточек */
}

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

.attraction-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attraction-card:hover .attraction-image img {
    transform: scale(1.05);
}

.attraction-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #10b981;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: #ef4444;
    color: white;
}

.favorite-btn.active i {
    font-weight: 900;
}

.attraction-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Заполнение доступного пространства */
}

.attraction-content-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.attraction-content-footer {
    margin-top: auto; /* Прижимание к низу карточки */
}

.attraction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.attraction-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.rating {
    text-align: right;
}

.stars {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-right: 5px;
}

.rating-text {
    font-size: 0.8rem;
    color: #64748b;
}

.attraction-location {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.attraction-location i {
    margin-right: 5px;
    color: #2563eb;
}

.attraction-description {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.attraction-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail i {
    margin-right: 3px;
    color: #2563eb;
}

.attraction-actions {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    flex: 1;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex: 1;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #64748b;
    border: 2px solid #e5e7eb;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* Latest Reviews */
.latest-reviews {
    background: #f8fafc;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Выравнивание высоты карточек */
    justify-content: center; /* Центрирование сетки */
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Равная высота всех карточек */
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.reviewer-location {
    font-size: 0.8rem;
    color: #64748b;
}

.review-rating .stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.review-text {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
}

.review-attraction {
    font-weight: 500;
}

/* Trip Planner */
.trip-planner {
    background: white;
}

.planner-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start; /* Выравнивание блоков по верху */
}

.planner-sidebar {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    height: fit-content;
}

.planner-section {
    margin-bottom: 2rem;
}

.planner-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.favorites-list {
    margin-bottom: 1.5rem;
}

.empty-state {
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e5e7eb;
}

.favorite-item {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remove-favorite {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
}

.remove-favorite:hover {
    background: #fee2e2;
}

.trip-form {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.planner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.planner-main {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
}

.itinerary-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    min-height: 400px;
}

.empty-itinerary {
    text-align: center;
    color: #64748b;
    padding: 3rem;
}

.empty-itinerary i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.itinerary-day {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.itinerary-day:last-child {
    border-bottom: none;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.day-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.day-budget {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 500;
}

.day-attractions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.itinerary-attraction {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attraction-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.attraction-info p {
    font-size: 0.8rem;
    color: #64748b;
}

.attraction-time {
    font-size: 0.8rem;
    color: #2563eb;
    font-weight: 500;
}

/* Blog Section */
.blog-section {
    background: #f8fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Выравнивание высоты карточек */
    justify-content: center; /* Центрирование сетки */
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Равная высота всех карточек */
}

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Заполнение доступного пространства */
    justify-content: space-between; /* Равномерное распределение контента */
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.blog-category {
    background: #2563eb;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.blog-date {
    color: #64748b;
}

.blog-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .language-switcher {
        margin-left: 0.5rem;
    }
    
    .lang-select {
        padding: 10px 36px 10px 14px;
        font-size: 14px;
        font-weight: 600;
        min-width: 120px;
        border-radius: 20px;
        border: 2px solid rgba(37, 99, 235, 0.3);
        background-size: 20px 20px, 14px 14px;
        background-position: right 3px center, right 8px center;
    }
    
    .lang-select:hover {
        transform: translateY(-2px) scale(1.01);
        animation: none; /* Отключаем pulse на мобильных */
    }
    
    .lang-select:focus {
        transform: translateY(-1px) scale(1.005);
    }
    
    .lang-select option {
        padding: 10px 12px;
        font-size: 14px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Language Switcher - Premium Modern Select */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 50%, 
        rgba(241, 245, 249, 0.85) 100%);
    border: 4px solid rgba(37, 99, 235, 0.8);
    border-radius: 30px;
    padding: 12px 40px 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(37, 99, 235, 0.1);
    min-width: 140px;
    position: relative;
    overflow: hidden;
    
    /* Кастомная стрелка с градиентом */
    background-image: 
        linear-gradient(45deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%),
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat, no-repeat;
    background-position: right 4px center, right 10px center;
    background-size: 24px 24px, 16px 16px;
    background-clip: border-box, content-box;
}

/* Анимированный блик */
.lang-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.lang-select:hover::before {
    left: 100%;
}

.lang-select:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 0.98) 50%, 
        rgba(241, 245, 249, 0.95) 100%);
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 
        0 8px 40px rgba(37, 99, 235, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.02);
    
    /* Обновляем стрелку при hover */
    background-image: 
        linear-gradient(45deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%),
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
}

.lang-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 
        0 0 0 4px rgba(37, 99, 235, 0.15),
        0 8px 40px rgba(37, 99, 235, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px) scale(1.01);
}

.lang-select:active {
    transform: translateY(-1px) scale(0.99);
    transition: all 0.1s ease;
}

/* Стили для option элементов */
.lang-select option {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.lang-select option:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.lang-select option:checked {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-weight: 700;
}

/* Дополнительные эффекты */
.lang-select:hover {
    animation: selectPulse 2s infinite;
}

@keyframes selectPulse {
    0%, 100% {
        box-shadow: 
            0 8px 40px rgba(37, 99, 235, 0.15),
            0 4px 20px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(37, 99, 235, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 
            0 12px 50px rgba(37, 99, 235, 0.2),
            0 6px 25px rgba(0, 0, 0, 0.12),
            0 0 0 2px rgba(37, 99, 235, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

/* Эффект при открытии */
.lang-select:focus,
.lang-select:active {
    animation: selectOpen 0.3s ease;
}

@keyframes selectOpen {
    0% {
        transform: translateY(-2px) scale(1.01);
    }
    50% {
        transform: translateY(-4px) scale(1.03);
    }
    100% {
        transform: translateY(-2px) scale(1.01);
    }
}

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

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center; /* Центрирование карточек на мобильных */
    }

    .attractions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center; /* Центрирование карточек на мобильных */
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        justify-items: center; /* Центрирование карточек отзывов */
    }

    .blog-grid {
        grid-template-columns: 1fr;
        justify-items: center; /* Центрирование карточек блога */
    }

    .filter-controls {
        flex-direction: column;
        align-items: center;
    }

    .planner-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Адаптивные отступы секций на мобильных */
    .popular-destinations,
    .featured-attractions,
    .latest-reviews,
    .trip-planner,
    .blog-section {
        padding: 60px 0; /* Уменьшенные отступы для мобильных */
    }
    
    /* Адаптивность тематических элементов */
    .card-theme-icon {
        width: 40px;
        height: 40px;
        top: -12px;
        right: -12px;
        font-size: 1rem;
    }
    
    .attraction-theme-header {
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
    }
    
    .attraction-theme-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .attraction-theme {
        font-size: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .attraction-actions {
        flex-direction: column;
    }

    .attraction-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }

    .search-btn {
        border-radius: 0 0 15px 15px;
    }

    .hero-stats {
        justify-content: space-around;
    }

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

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

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

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

    .planner-sidebar {
        padding: 1.5rem;
    }

    .planner-main {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utility classes */
.hidden {
    display: none !important;
}

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

.fade-out {
    animation: fadeOutDown 0.3s ease forwards;
}

/* Симметрия и выравнивание для всех сеток */
.destinations-grid,
.attractions-grid,
.reviews-grid,
.blog-grid {
    place-items: center; /* Идеальное центрирование */
}

/* Максимальная ширина карточек для лучшей симметрии */
.destination-card,
.attraction-card,
.review-card,
.blog-card {
    max-width: 100%;
    width: 100%;
}

/* Равномерное распределение пространства в карточках */
.card-content,
.attraction-content,
.review-card,
.blog-content {
    min-height: 0; /* Позволяет flex-элементам уменьшаться */
}

/* Выравнивание кнопок внизу карточек */
.attraction-actions,
.planner-actions {
    margin-top: auto;
}

/* Тематические иконки для карточек направлений */
.card-theme-icon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: 3px solid white;
    z-index: 2;
}

.destination-card {
    position: relative; /* Для позиционирования иконки */
}

/* Тематические заголовки для достопримечательностей */
.attraction-theme-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.attraction-theme-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.attraction-theme {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Анимации для тематических элементов */
.card-theme-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover .card-theme-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.attraction-theme-header {
    transition: background 0.3s ease, transform 0.3s ease;
}

.attraction-card:hover .attraction-theme-header {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    transform: translateY(-2px);
}

.attraction-theme-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attraction-card:hover .attraction-theme-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Hover effects for images */
.destination-card img,
.attraction-card img,
.blog-card img {
    transition: transform 0.3s ease;
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero,
    .footer {
        display: none;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}
