* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f0fa 0%, #d4e4f5 100%);
    color: #034078;
    min-height: 100vh;
}

/* Шапка сайта */
.header {
    background: linear-gradient(135deg, #034078 0%, #0a5b9e 100%);
    text-align: center;
    padding: 40px 20px;
    position: relative;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-logo {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header h1 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-auth {
    position: absolute;
    top: 20px;
    right: 30px;
}

.auth-link {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.auth-link:hover {
    background: rgba(255,255,255,0.4);
    color: white;
}

/* Навигационное меню */
.nav-menu {
    background: white;
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-item {
    display: inline-block;
}

.nav-link-custom {
    padding: 10px 20px;
    border-radius: 30px;
    color: #034078;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
}

.nav-link-custom:hover, .nav-link-custom.active {
    background: linear-gradient(135deg, #034078, #0a5b9e);
    color: white;
    transform: translateY(-2px);
}

/* Карточки */
.card-custom {
    background: white;
    border-radius: 20px;
    padding: 15px;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-custom img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
}

.card-custom h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 12px 0 8px;
    color: #034078;
}

.card-custom p {
    color: #666;
    font-size: 0.9rem;
}

/* Слайдер */
.hero-slider {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.carousel-item img {
    height: 450px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Секции */
.page-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-section.active-page {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Заголовок секции */
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #034078;
    border-bottom: 3px solid #0a5b9e;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Карточка места */
.place-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.place-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.place-card h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #034078;
}

/* Карточка маршрута */
.route-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    border-left: 5px solid #034078;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.route-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.route-card h4 {
    color: #034078;
    margin-bottom: 15px;
}

/* Карточка события */
.event-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.event-date {
    background: #034078;
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Формы авторизации */
.auth-form {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.auth-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #034078;
    border-bottom: 3px solid #034078;
}

.auth-panel {
    display: none;
}

.auth-panel.active-panel {
    display: block;
}

/* Футер */
.site-footer {
    background-color: #034078;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.site-footer p {
    margin: 0;
    font-size: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-item img {
        height: 280px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 10px;
    }
    
    .header-auth {
        top: 15px;
        right: 15px;
    }
    
    .auth-link {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        border-radius: 20px;
        padding: 10px;
    }
    
    .nav-link-custom {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* Основные стили для контейнера карусели */
#travelCarousel {
    max-width: 100%;
    margin: 0 auto;
}

/* Стили для контейнера слайдера */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Высота слайдера — можно задать фиксированную или вьюпортную */
.hero-slider .carousel-item {
    height: 500px; /* или, например, 100vh для высоты экрана */
}

/* Изображения во весь размер слайда */
.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение заполняет слайд, сохраняя пропорции */
    display: block;
}

/* Подписи к слайдам */
.hero-slider .carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    max-width: 400px;
}

.hero-slider .carousel-caption h5 {
    margin-top: 0;
    font-size: 1.5rem;
}

.hero-slider .carousel-caption p {
    margin-bottom: 0;
    font-size: 1rem;
}

#page-home .col-md-6 {
    position: relative; 
}

#page-home .col-md-6 img {
    width: 60%; /* Увеличиваем ширину */
    height: auto; /* Сохраняем пропорции */
    margin-left: 20%; /* Сдвигаем вправо, обрезая левую часть */
    
    /* Трюк для смещения вправо без обрезки слева */
    object-position: right center; /* Показываем картинку, начиная с правого края */
}

@media (max-width: 767.98px) {
    .carousel-caption {
        display: none;
    }
}


