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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    color: #333;
}

/* Фоновое изображение */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: -1;
}

/* Основной контейнер */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Шапка */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #1a252f;
    transform: translateX(-3px);
}

.page-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

/* Фильтры */
.filters-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #ecf0f1;
    border: none;
    border-radius: 20px;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #d5dbdb;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    min-width: 250px;
}

.search-box i {
    color: #95a5a6;
    margin-right: 10px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

/* Вертикальная колонка с экскурсиями */
.excursions-column {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

.section-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Вертикальный контейнер */
.vertical-excursions-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Вертикальные карточки экскурсий */
.vertical-excursion-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    min-height: 250px;
}

.vertical-excursion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.excursion-image-col {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
}

.excursion-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vertical-excursion-card:hover .excursion-image-col img {
    transform: scale(1.05);
}

.excursion-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.excursion-content-col {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.excursion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.excursion-class {
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.excursion-date {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.excursion-content-col h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.excursion-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.detail i {
    color: #3498db;
}

.excursion-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.professions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profession-tag {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Статистика */
.stats-section {
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-content h3 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-content p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Форма */
.add-excursion-section {
    margin-bottom: 50px;
}

.excursion-form {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 30px auto 0;
}

.submit-btn:hover {
    background-color: #1a252f;
}

/* Футер */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    font-size: 14px;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Анимация при загрузке */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vertical-excursion-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.vertical-excursion-card:nth-child(1) { animation-delay: 0.1s; }
.vertical-excursion-card:nth-child(2) { animation-delay: 0.2s; }
.vertical-excursion-card:nth-child(3) { animation-delay: 0.3s; }
.vertical-excursion-card:nth-child(4) { animation-delay: 0.4s; }
.vertical-excursion-card:nth-child(5) { animation-delay: 0.5s; }
.vertical-excursion-card:nth-child(6) { animation-delay: 0.6s; }
.vertical-excursion-card:nth-child(7) { animation-delay: 0.7s; }
.vertical-excursion-card:nth-child(8) { animation-delay: 0.8s; }
.vertical-excursion-card:nth-child(9) { animation-delay: 0.9s; }
.vertical-excursion-card:nth-child(10) { animation-delay: 1.0s; }
.vertical-excursion-card:nth-child(11) { animation-delay: 1.1s; }
.vertical-excursion-card:nth-child(12) { animation-delay: 1.2s; }
.vertical-excursion-card:nth-child(13) { animation-delay: 1.3s; }
.vertical-excursion-card:nth-child(14) { animation-delay: 1.4s; }
.vertical-excursion-card:nth-child(15) { animation-delay: 1.5s; }

/* Адаптивность */
@media (max-width: 992px) {
    .vertical-excursion-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .excursion-image-col {
        flex: 0 0 250px;
    }
    
    .main-container {
        padding: 15px;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .page-title {
        font-size: 26px;
        margin-top: 50px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .back-button {
        position: static;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .header {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .vertical-excursion-card {
        flex-direction: column;
    }
    
    .excursion-image-col {
        flex: 0 0 200px;
    }
    
    .excursion-content-col h3 {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .excursion-content-col h3 {
        font-size: 18px;
    }
    
    .excursion-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .excursion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}