* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    overflow-x: hidden;
}
.header {
    background: #fff;
    border-bottom: 1px solid #e5e5e7;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #c41e3a;
    text-decoration: none;
}
.logo-icon {
    width: 32px; height: 32px;
    background: #c41e3a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
    text-decoration: none;
    color: #1d1d1f;
}
.header-icon:hover { background: #e5e5e7; }
.mobile-menu-btn {
    display: none;
    background: #c41e3a;
    color: white;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.nav {
    background: #fff;
    border-bottom: 1px solid #e5e5e7;
    padding: 0 16px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}
.nav::-webkit-scrollbar { display: none; }
.nav-item {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6e6e73;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-item:hover { color: #1d1d1f; }
.nav-item.active { color: #c41e3a; border-bottom-color: #c41e3a; }
.main-container {
    display: flex;
    height: calc(100vh - 105px);
    position: relative;
    overflow: hidden;
}
.map-area {
    flex: 1;
    position: relative;
    background: #e8f4f8;
    overflow: hidden;
}
#map_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#map_canvas .ymaps-2-1-79-ground-pane,
#map_canvas .ymaps-2-1-79-tile-pane {
    z-index: 1;
}
.point-info-card {
    position: absolute;
    top: 16px;
    left: 16px;
    max-width: 420px;
    width: calc(100% - 412px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e7;
    background: #fafafa;
    flex-shrink: 0;
}
.card-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #6e6e73;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.card-tab:hover { color: #1d1d1f; background: #f5f5f7; }
.card-tab.active { color: #c41e3a; border-bottom-color: #c41e3a; background: white; }
.card-tab i { font-size: 12px; }
.card-tab-content {
    display: none;
    overflow-y: auto;
    padding: 16px;
    flex: 1;
}
.card-tab-content.active { display: block; }
.card-tab-content::-webkit-scrollbar { width: 4px; }
.card-tab-content::-webkit-scrollbar-track { background: transparent; }
.card-tab-content::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 2px; }

.photo-slider {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f5f5f7;
    cursor: pointer;
}
.photo-slider-track { display: flex; height: 100%; }
.photo-slide { min-width: 100%; height: 100%; display: none; }
.photo-slide.active { display: block; }
.photo-slide img { width: 100%; height: 100%; object-fit: cover; }

.photo-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.photo-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}
.photo-dot.active { background: white; width: 20px; border-radius: 4px; }

.photo-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
    transition: all 0.2s;
}
.photo-slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}
.photo-slider-prev { left: 12px; }
.photo-slider-next { right: 12px; }

.photo-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Контейнер заголовка с кнопкой обновления */
.place-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.place-title-container .place-title {
    flex: 1;
    margin: 0;
}
.place-title-container .btn-icon.refresh {
    width: 32px;
    height: 32px;
    font-size: 14px;
    padding: 0;
    flex-shrink: 0;
}

.place-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1d1d1f; line-height: 1.3; }
.place-description {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.place-address {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.btn-icon:hover { transform: translateY(-2px); }
.btn-icon.primary { background: #c41e3a; color: white; }
.btn-icon.primary:hover { background: #a01830; }
.btn-icon.secondary { background: #f5f5f7; color: #1d1d1f; }
.btn-icon.secondary:hover { background: #e5e5e7; }
.btn-icon.refresh { background: #c41e3a; color: white; }
.btn-icon.refresh:hover { background: #a01830; }
.btn-icon.refresh i { transition: transform 0.5s; }
.btn-icon.refresh.spinning i { transform: rotate(360deg); }

.full-description-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e7;
}
.full-description-block h4 {
    font-size: 13px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.full-description-block h4 i { color: #c41e3a; }
.full-description-text {
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.5;
    white-space: pre-wrap;
}

.related-places {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e7;
}
.related-places h4 {
    font-size: 13px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.related-places h4 i { color: #c41e3a; }
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f5f5f7;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    align-items: center;
}
.related-item:hover { background: #ebebf0; transform: translateX(2px); }
.related-image {
    width: 56px; height: 56px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e7;
    flex-shrink: 0;
}
.related-info { flex: 1; min-width: 0; }
.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-desc {
    font-size: 12px;
    color: #6e6e73;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.flights-list { display: flex; flex-direction: column; gap: 10px; }
.flight-item {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.flight-item:hover { background: #ebebf0; transform: translateX(2px); }
.flight-route { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.flight-point { text-align: center; }
.city-code { display: block; font-size: 16px; font-weight: 700; color: #1d1d1f; }
.city-name { font-size: 11px; color: #6e6e73; }
.flight-path {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #c41e3a;
    gap: 6px;
}
.path-line { flex: 1; height: 1px; background: #d1d1d6; }
.flight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6e6e73;
}
.flight-footer .price { font-weight: 700; color: #c41e3a; font-size: 14px; }

.events-list { display: flex; flex-direction: column; gap: 10px; }
.event-item {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s;
}
.event-item:hover { background: #ebebf0; transform: translateX(2px); }
.event-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bg-red-light { background: #ffe5e8; }
.bg-orange-light { background: #fff0e0; }
.bg-blue-light { background: #e0f0ff; }
.bg-magenta-light { background: #f0e0ff; }
.bg-green-light { background: #e0ffe8; }
.event-info h4 { font-size: 14px; margin-bottom: 4px; font-weight: 600; }
.event-info p { font-size: 12px; color: #6e6e73; margin-bottom: 4px; }
.event-date { font-size: 11px; color: #c41e3a; font-weight: 500; }

.timeline-panel {
    width: 380px;
    background: white;
    border-left: 1px solid #e5e5e7;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    z-index: 50;
}
.timeline-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.close-panel-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6e6e73;
    padding: 4px;
}
.timeline-date {
    font-size: 12px;
    color: #86868b;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.timeline-item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 20px;
    border-left: 2px solid #e5e5e7;
    margin-left: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    padding-right: 8px;
}
.timeline-item:hover { background: #f5f5f7; margin-left: 0; padding-left: 36px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px; height: 12px;
    background: #c41e3a;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #c41e3a;
}
.timeline-item.active::before { background: #ff3b30; animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4); }
    50% { box-shadow: 0 2px 20px rgba(255, 59, 48, 0.8); }
}
.timeline-time { font-size: 12px; font-weight: 600; color: #c41e3a; margin-bottom: 4px; }
.timeline-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.timeline-location { font-size: 12px; color: #6e6e73; margin-bottom: 6px; }
.timeline-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #86868b;
    flex-wrap: wrap;
}

.overlay {
    display: none;
    position: fixed;
    top: 105px; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.overlay.active { display: block; opacity: 1; }

.mobile-fab {
    display: none;
    position: fixed;
    bottom: 20px; right: 20px;
    background: #c41e3a;
    color: white;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 30;
}
.mobile-fab:active { transform: scale(0.95); }
.mobile-fab .badge {
    position: absolute;
    top: 0; right: 0;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Lightbox — полупрозрачный фон */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
    z-index: 2001;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
    z-index: 2001;
}
.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2001;
}

@media (max-width: 1024px) {
    .timeline-panel { width: 320px; }
    .point-info-card { width: calc(100% - 352px); max-width: 420px; }
}
@media (max-width: 768px) {
    .header { padding: 10px 12px; }
    .mobile-menu-btn { display: flex; }
    .nav { padding: 0 12px; }
    .main-container { height: calc(100vh - 93px); }
    .map-area { width: 100%; }
    .map-area.panel-open { transform: translateX(-100%); }
    .timeline-panel {
        position: fixed;
        top: 93px; right: 0; bottom: 0;
        width: 100%;
        max-width: 360px;
        border-left: none;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 16px;
    }
    .timeline-panel.active { transform: translateX(0); }
    .close-panel-btn { display: block; }
    .point-info-card {
        left: 12px; right: 12px;
        width: auto;
        max-width: none;
        top: 12px;
        max-height: 400px;
    }
    .photo-slider { height: 160px; }
    .photo-slider-arrow { width: 32px; height: 32px; font-size: 12px; }
    .photo-slider-prev { left: 8px; }
    .photo-slider-next { right: 8px; }
    .place-title { font-size: 16px; }
    .place-description { font-size: 13px; -webkit-line-clamp: 2; }
    .mobile-fab { display: flex; }
    .lightbox-arrow { width: 40px; height: 40px; font-size: 16px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; }
}
@media (max-width: 480px) {
    .point-info-card { max-height: 400px; }
    .photo-slider { height: 140px; }
    .photo-slider-dots { bottom: 8px; }
    .btn-icon { width: 38px; height: 38px; font-size: 14px; }
    .card-tab { padding: 10px 8px; font-size: 12px; }
    .card-tab i { display: none; }
    .related-image { width: 48px; height: 48px; }
    .related-title { font-size: 13px; }
    .related-desc { font-size: 11px; }
}
.timeline-panel::-webkit-scrollbar { width: 6px; }
.timeline-panel::-webkit-scrollbar-track { background: #f5f5f7; }
.timeline-panel::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 3px; }

/* ===== Новые страницы ===== */

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}
.page-narrow { max-width: 720px; }

.page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title i { color: #c41e3a; }
.page-lead {
    font-size: 15px;
    color: #6e6e73;
    line-height: 1.5;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 14px;
}

.breadcrumbs {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumbs a { color: #6e6e73; text-decoration: none; }
.breadcrumbs a:hover { color: #c41e3a; }
.breadcrumbs-sep { color: #d1d1d6; }
.breadcrumbs-current { color: #1d1d1f; font-weight: 500; }

.btn-primary {
    display: inline-block;
    background: #c41e3a;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-primary:hover { background: #a01830; }

.btn-partner {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
.btn-partner:hover { background: #e55a2b; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6e6e73;
}
.empty-state i { font-size: 48px; color: #c41e3a; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 18px; color: #1d1d1f; margin-bottom: 6px; }
.empty-state h1 { font-size: 56px; color: #c41e3a; margin-bottom: 4px; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }
.empty-state .btn-icon { margin: 8px auto; }

/* Сетка мест */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.place-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.place-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.place-card-photo {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e7;
}
.place-card-body { padding: 14px; }
.place-card-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}
.place-card-body p {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Фильтры */
.filters {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    align-items: center;
}
.filters select {
    padding: 10px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #1d1d1f;
    min-width: 160px;
}

/* Карточки рейсов */
.flights-cards { display: flex; flex-direction: column; gap: 12px; }
.flight-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.flight-card-route { font-size: 18px; font-weight: 600; color: #c41e3a; }
.flight-card-details { font-size: 13px; color: #6e6e73; margin-top: 4px; }
.flight-card-price { text-align: right; }
.flight-card-price .price { font-size: 22px; font-weight: 700; color: #2e7d32; }

/* Маршруты */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.route-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.route-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.route-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.route-card-head h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.badge-premium {
    background: #fff0e0;
    color: #ff9500;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.route-card-subtitle { font-size: 13px; color: #6e6e73; margin-bottom: 10px; }
.route-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #86868b;
}
.route-card-meta i { color: #c41e3a; margin-right: 4px; }

.route-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 16px;
}
.route-facts i { color: #c41e3a; margin-right: 6px; }
.route-description {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.route-timeline { display: flex; flex-direction: column; gap: 8px; }
.route-day {
    font-size: 13px;
    font-weight: 700;
    color: #c41e3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px;
}
.route-stop {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.route-stop:hover { transform: translateX(3px); }
.route-stop-photo {
    width: 84px;
    height: 64px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e7;
    flex-shrink: 0;
}
.route-stop-body { flex: 1; min-width: 0; }
.route-stop-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.route-stop-body p { font-size: 13px; color: #6e6e73; line-height: 1.4; }

/* Календарь событий */
.events-calendar { display: flex; flex-direction: column; gap: 20px; }
.events-day-label {
    font-size: 13px;
    font-weight: 700;
    color: #c41e3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.event-row {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 8px;
    align-items: center;
}
.event-row-time {
    font-size: 14px;
    font-weight: 700;
    color: #c41e3a;
    min-width: 48px;
}
.event-row-body { flex: 1; min-width: 0; }
.event-row-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.event-row-body p { font-size: 12px; color: #6e6e73; }
.event-row-price { font-size: 13px; font-weight: 700; color: #2e7d32; white-space: nowrap; }

/* Поиск */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d1d6;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
}
.search-list { display: flex; flex-direction: column; gap: 8px; }
.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 14px;
    transition: transform 0.2s;
}
.search-item:hover { transform: translateX(3px); }
.search-item i { color: #c41e3a; }
.search-item-code {
    margin-left: auto;
    font-size: 12px;
    color: #86868b;
    font-weight: 600;
}

/* Квиз */
.quiz-widget {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.quiz-progress {
    height: 6px;
    background: #f0f0f3;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
.quiz-progress-bar {
    height: 100%;
    width: 0;
    background: #c41e3a;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.quiz-progress-label {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 18px;
}
.quiz-step { display: none; }
.quiz-question-text { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
}
.quiz-option:hover { background: #ebebf0; }
.quiz-option input { accent-color: #c41e3a; }
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.quiz-back {
    background: none;
    border: none;
    color: #6e6e73;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 4px;
}
.quiz-back:hover { color: #1d1d1f; }
.quiz-email { margin: 16px 0; }
.quiz-email label { display: block; font-size: 13px; color: #6e6e73; margin-bottom: 6px; }
.quiz-email input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    font-size: 14px;
}
.quiz-submit { width: 100%; margin-top: 8px; }
.quiz-error {
    margin-top: 14px;
    padding: 10px 14px;
    background: #ffe5e8;
    color: #a01830;
    border-radius: 10px;
    font-size: 13px;
}
.quiz-result { margin-top: 20px; font-size: 14px; line-height: 1.5; }
.quiz-result a { color: #c41e3a; font-weight: 600; }
.quiz-result-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.quiz-result-desc { color: #6e6e73; margin-bottom: 14px; }

/* Карточка результата */
.quiz-result-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.quiz-result-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}
.quiz-result-facts span { display: inline-flex; align-items: center; gap: 6px; }
.quiz-result-facts i { color: #c41e3a; }
.quiz-activities { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.quiz-activities li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    padding: 10px 12px;
    background: #f5f5f7;
    border-radius: 10px;
}
.quiz-activities i { color: #34a853; margin-top: 2px; }
.quiz-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.btn-secondary {
    display: inline-block;
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d1d1d6;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-secondary:hover { background: #ebebf0; }

/* Шеринг */
.quiz-share {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.quiz-share .section-title { margin-top: 0; }
.quiz-share-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-vk { background: #0077ff; }
.share-tg { background: #229ed9; }
.share-wa { background: #25d366; }
.quiz-share-quiz { font-size: 13px; color: #6e6e73; }
.quiz-share-quiz a { color: #c41e3a; font-weight: 600; text-decoration: none; }

/* Пагинация */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
    justify-content: center;
}
.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pagination-item:hover { background: #f5f5f7; }
.pagination-item.current { background: #c41e3a; color: #fff; }
.pagination-item.disabled { color: #d1d1d6; pointer-events: none; }

/* Логин */
.login-form {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}
.login-form label { font-size: 13px; color: #6e6e73; }
.login-form input {
    padding: 12px 14px;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    font-size: 14px;
}
.login-form .btn-primary { margin-top: 8px; }

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-error { background: #ffe5e8; color: #a01830; }

/* Подвал */
.footer {
    background: #fff;
    border-top: 1px solid #e5e5e7;
    padding: 24px 16px;
}
.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #c41e3a;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a {
    font-size: 13px;
    color: #6e6e73;
    text-decoration: none;
}
.footer-nav a:hover { color: #c41e3a; }
.footer-copy { font-size: 12px; color: #86868b; }

/* ===== Квиз «Узнай Россию» (вкладка) ===== */
.guess-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.guess-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.guess-score {
    font-size: 14px;
    font-weight: 700;
    color: #c41e3a;
    background: #fdeef1;
    padding: 4px 10px;
    border-radius: 12px;
}
.guess-photo-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f7;
    flex-shrink: 0;
}
.guess-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.guess-hint-text {
    font-size: 14px;
    color: #6e6e73;
    margin: 0;
}
.guess-hint {
    display: flex;
    gap: 8px;
}
.guess-hint-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d1d6;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.guess-hint-btn:hover:not(:disabled) {
    border-color: #c41e3a;
    color: #c41e3a;
}
.guess-hint-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.guess-result {
    display: none;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}
.guess-result.success {
    display: flex;
    background: #e6f7ec;
    color: #1e7e34;
}
.guess-result.fail {
    display: flex;
    background: #fdecee;
    color: #c0392b;
}
.guess-again-btn {
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: #c41e3a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.guess-again-btn:hover { background: #a5182e; }

@media (max-width: 768px) {
    .guess-photo { height: 160px; }
}
