/* Модель: Qwen/qwen3 Coder 30b */
/* Данные актуальны на: 23.08.2025 */
/* Ответ сгенерирован: 23.08.2025 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Предотвращение белого моргания при загрузке страницы */
html {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
    /* Предотвращение моргания */
    color-scheme: light;
}

html[data-theme="dark"] {
    background-color: #1a1a1a;
    color-scheme: dark;
}

/* Предотвращение белого моргания для body */
body {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
    /* Предотвращение моргания */
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body[data-theme="dark"] {
    background-color: #1a1a1a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Cards */
.story-card, .tour-card, .hotel-card, .excursion-card, .ad-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.story-card:hover, .tour-card:hover, .hotel-card:hover, .excursion-card:hover, .ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.story-image, .tour-card img, .hotel-card img, .excursion-card img, .ad-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #667eea;
}

.story-content, .tour-content, .hotel-content, .excursion-content, .ad-content {
    padding: 1rem;
    text-align: left;
}

.story-content h3, .tour-content h3, .hotel-content h3, .excursion-content h3, .ad-content h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
}

.story-meta, .tour-destination, .tour-duration, .tour-price, .hotel-location, .hotel-stars, .hotel-price, .excursion-location, .excursion-duration, .excursion-price {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    justify-content: flex-start;
    font-size: 0.85rem;
}

.story-meta i, .tour-destination i, .tour-duration i, .tour-price i, .hotel-location i, .hotel-stars i, .hotel-price i, .excursion-location i, .excursion-duration i, .excursion-price i {
    color: #667eea;
    width: 14px;
    text-align: center;
    margin-right: 6px;
}

/* Стили для отдельных элементов мета-информации в карточках */
.story-author, .story-date, .story-location, .story-travel-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
}

.story-author a {
    color: #667eea;
    text-decoration: none !important;
    font-weight: 500;
}

.story-author a:hover {
    text-decoration: underline !important;
}

.hotel-stars {
    color: #ffd700;
}

/* Стили для описания в карточках */
.story-content p:not(.story-meta), .tour-content p:not(.tour-destination):not(.tour-duration):not(.tour-price), .hotel-content p:not(.hotel-location):not(.hotel-stars):not(.hotel-price), .excursion-content p:not(.excursion-location):not(.excursion-duration):not(.excursion-price), .ad-content p:not(.ad-meta) {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Стили для кнопок в карточках */
.story-content .btn, .tour-content .btn, .hotel-content .btn, .excursion-content .btn, .ad-content .btn {
    margin-top: 0;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Grids */
.stories-grid, .tours-grid, .hotels-grid, .excursions-grid, .ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

/* Sections */
.featured-stories, .tours-section, .hotels-section, .excursions-section, .advertisements-section {
    padding: 4rem 0;
}

.featured-stories {
    background: white;
}

.tours-section {
    background: #f8f9fa;
}

.hotels-section {
    background: white;
}

.excursions-section {
    background: #f8f9fa;
}

.advertisements-section {
    background: white;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

section h2 i {
    color: #667eea;
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* Flash messages */
.flash-messages {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 20px;
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: none;
}

.close-btn:hover {
    opacity: 1;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

/* Error pages */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-container h1 {
    font-size: 6rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.error-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-medium, #666);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #667eea;
        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;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 1;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .stories-grid, .tours-grid, .hotels-grid, .excursions-grid, .ads-grid {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Дополнительные стили для карточек на мобильных */
    .story-content, .tour-content, .hotel-content, .excursion-content, .ad-content {
        text-align: left !important;
        padding: 0.5rem;
    }
    
    .story-content h3, .tour-content h3, .hotel-content h3, .excursion-content h3, .ad-content h3 {
        text-align: left !important;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .story-content p {
        text-align: left !important;
    }
    
    .story-meta, .tour-destination, .tour-duration, .tour-price, .hotel-location, .hotel-stars, .hotel-price, .excursion-location, .excursion-duration, .excursion-price {
        text-align: left !important;
        justify-content: flex-start !important;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Исправление расположения кнопки темы на мобильных */
    .theme-toggle {
        top: 80px !important;
        right: 20px !important;
        z-index: 999 !important;
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .theme-toggle span {
        display: none !important;
    }
}

/* Main content */
main {
    min-height: 80vh;
    padding: 0;
}

/* Page headers */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Listings */
.tours-listing, .hotels-listing, .excursions-listing, .stories-listing {
    padding: 4rem 0;
}

.tours-grid, .hotels-grid, .excursions-grid, .stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-link.disabled {
    color: #999;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.page-link.disabled:hover {
    background: transparent;
    color: #999;
    transform: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-medium, #666);
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--text-dark, #333);
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Author profile */
.author-profile {
    padding: 4rem 0;
}

.author-header {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #667eea;
}

.author-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border: 5px solid #667eea;
}

.author-details h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark, #333);
    text-align: left;
}

.author-email {
    color: var(--text-medium, #666);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-medium, #555);
}

.author-stats {
    color: #667eea;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-stories {
    margin-top: 3rem;
}

.author-stories h2 {
    margin-bottom: 2rem;
    color: var(--text-dark, #333);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Story detail */
.story-detail {
    padding: 4rem 0;
}

.story-header {
    background: transparent;
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.story-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark, #333);
    line-height: 1.2;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--text-medium, #666);
    font-size: 1rem;
}

.story-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-meta a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.story-meta a:hover {
    text-decoration: underline;
}

.story-summary {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.story-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-medium, #555);
    margin: 0;
}

.story-media {
    background: transparent;
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
}

.story-media h3 {
    margin-bottom: 2rem;
    color: var(--text-dark, #333);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.media-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-item img:hover {
    transform: scale(1.05);
}

.media-item video {
    width: 100%;
    border-radius: 10px;
}

.media-caption {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.media-caption h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark, #333);
}

.media-caption p {
    margin: 0;
    color: var(--text-medium, #666);
    font-size: 0.9rem;
}

.story-content {
    background: transparent;
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.story-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Выравнивание кнопок в карточках */
.story-content .btn,
.tour-content .btn,
.hotel-content .btn,
.excursion-content .btn,
.ad-content .btn {
    text-align: center;
    display: inline-block;
    margin-top: 0.75rem;
}

.story-footer {
    background: transparent;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}

.story-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Admin form rows */
.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.admin-checkbox-label {
    margin: 0;
    font-weight: 500;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    /* Исправление выравнивания описания автора в мобильной версии */
    .author-info .author-details {
        text-align: left;
    }
    
    .author-info .author-bio {
        text-align: left;
    }
    
    /* Исправление мета-информации в карточках историй на мобильных */
    .story-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        text-align: left;
    }
    
    .story-meta > div {
        justify-content: flex-start;
        text-align: left;
    }
    
    /* Разделение иконок и текста в мета-информации на мобильных */
    .story-meta i {
        display: inline-block;
        width: 16px;
        text-align: center;
        margin-right: 0.5rem;
    }
    
    .story-meta a {
        display: inline-block;
        margin-left: 0;
    }
    
    /* Дополнительные стили для выравнивания мета-информации */
    .story-author,
    .story-date,
    .story-location,
    .story-travel-date {
        justify-content: flex-start !important;
        text-align: left !important;
    }
    
    .story-navigation {
        flex-direction: column;
    }
    
    .admin-form-row {
        grid-template-columns: 1fr;
    }
    
    .media-gallery {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Telegram Bot Section */
.telegram-bot-section {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    color: white;
    padding: 4rem 0;
}

.bot-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.bot-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bot-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
}

.bot-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.bot-features {
    list-style: none;
    margin-bottom: 2rem;
}

.bot-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.bot-features i {
    color: #ffd700;
    font-size: 1.2rem;
}

.btn-telegram {
    background: #ffd700;
    color: #0088cc;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-telegram:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    color: #0088cc;
}

.bot-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.telegram-preview {
    background: rgba(110, 110, 110, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.telegram-preview i {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 1rem;
    display: block;
}

.telegram-preview span {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Partners Section */
.partners-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.partners-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.partners-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium, #666);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.partner-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.partner-logo i {
    font-size: 2rem;
    color: white;
}

.partner-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark, #333);
}

.partner-card p {
    color: var(--text-medium, #666);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .bot-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bot-info h2 {
        font-size: 2rem;
    }
    
    .bot-info h3 {
        font-size: 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .telegram-preview {
        padding: 2rem;
    }
    
    .telegram-preview i {
        font-size: 3rem;
    }
    
    .telegram-preview span {
        font-size: 1.2rem;
    }
}

/* HTML Content Styles for Stories */
.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark, #333);
}

.story-content h1,
.story-content h2,
.story-content h3,
.story-content h4,
.story-content h5,
.story-content h6 {
    color: var(--text-dark, #333);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.story-content h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.story-content h2 {
    font-size: 1.8rem;
    color: #667eea;
}

.story-content h3 {
    font-size: 1.5rem;
}

.story-content h4 {
    font-size: 1.3rem;
}

.story-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.story-content ul,
.story-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.story-content li {
    margin-bottom: 0.5rem;
}

.story-content ul li {
    list-style-type: disc;
}

.story-content ol li {
    list-style-type: decimal;
}

.story-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.story-content blockquote p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-medium, #555);
}

.story-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
}

.story-content img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.story-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.story-content table th,
.story-content table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.story-content table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.story-content table tr:hover {
    background: #f8f9fa;
}

.story-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.story-content a:hover {
    border-bottom-color: #667eea;
}

.story-content strong,
.story-content b {
    font-weight: 600;
    color: var(--text-dark, #333);
}

.story-content em,
.story-content i {
    font-style: italic;
    color: var(--text-medium, #555);
}

.story-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.story-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.story-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.story-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 3rem 0;
}

.story-content .highlight {
    background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Responsive adjustments for story content */
@media (max-width: 768px) {
    .story-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .story-content h1 {
        font-size: 1.8rem;
    }
    
    .story-content h2 {
        font-size: 1.5rem;
    }
    
    .story-content h3 {
        font-size: 1.3rem;
    }
    
    .story-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .story-content table {
        font-size: 0.9rem;
    }
    
    .story-content table th,
    .story-content table td {
        padding: 0.5rem;
    }
    
    /* Уменьшение отступов в карточках на мобильных */
    .story-content, .tour-content, .hotel-content, .excursion-content, .ad-content {
        padding: 0.75rem;
    }
    
    .story-content h3, .tour-content h3, .hotel-content h3, .excursion-content h3, .ad-content h3 {
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }
    
    .story-meta, .tour-destination, .tour-duration, .tour-price, .hotel-location, .hotel-stars, .hotel-price, .excursion-location, .excursion-duration, .excursion-price {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Одинаковые размеры для блоков текста и медиа в story-detail */
    .story-detail .story-media {
        padding: 1.5rem;
        margin: 1.5rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .story-detail .story-content {
        padding: 1.5rem;
        margin: 1.5rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .story-detail .story-header {
        margin-bottom: 1.5rem;
    }
    
    .story-detail .story-summary {
        margin: 1.5rem 0;
    }
    
    /* Улучшение выравнивания мета-информации в story-detail на мобильных */
    .story-detail .story-meta {
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .story-detail .story-meta > div {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
    
    /* Разделение иконок и текста в детальном просмотре на мобильных */
    .story-detail .story-meta i {
        display: inline-block;
        width: 16px;
        text-align: center;
        margin-right: 0.5rem;
    }
    
    .story-detail .story-meta a {
        display: inline-block;
        margin-left: 0;
    }
    
    .story-detail .story-header h1 {
        text-align: left;
    }
    
    /* Выравнивание статистики на мобильных */
    .story-detail .story-stats {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
    
    .story-detail .story-stats > div {
        justify-content: flex-start;
        text-align: left;
    }
    
    /* Улучшение сетки медиа на мобильных */
    .media-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .media-item {
        width: 100%;
        max-width: 100%;
    }
    
    .media-item img {
        height: 200px;
        width: 100%;
        max-width: 100%;
    }
    
    .media-item video {
        width: 100%;
        max-width: 100%;
    }
    
    .media-thumbnail {
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-image,
    .gallery-video {
        width: 100%;
        max-width: 100%;
    }
    
    /* Уменьшение отступов в сетке карточек */
    .stories-grid, .tours-grid, .hotels-grid, .excursions-grid, .ads-grid {
        gap: 1rem;
        margin: 1rem 0;
    }
    
    /* Уменьшение отступов для кнопок на мобильных */
    .story-content .btn,
    .tour-content .btn,
    .hotel-content .btn,
    .excursion-content .btn,
    .ad-content .btn {
        margin-top: 0;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 25px;
    }
}

/* Dark Theme Variables */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #e9ecef;
    --shadow-color: rgba(0,0,0,0.1);
    --card-bg: #e4e2e2;
    --navbar-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --footer-bg: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --accent-color: #667eea;
    --accent-hover: #5a6fd8;
    --success-color: #155724;
    --error-color: #721c24;
    --info-color: #0c5460;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: #404040;
    --shadow-color: rgba(0,0,0,0.3);
    --card-bg: #3d3d3d;
    --navbar-bg: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --footer-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --accent-color: #667eea;
    --accent-hover: #5a67d8;
    --success-color: #28a745;
    --error-color: #dc3545;
    --info-color: #17a2b8;
    --text-dark: #ffffff;
    --text-medium: #e2e8f0;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1002;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.theme-toggle i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Apply CSS Variables */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Дополнительные стили для темной темы - улучшение видимости */
[data-theme="dark"] .author-email {
    color: var(--text-primary) !important;
    font-weight: 500;
}

[data-theme="dark"] .author-email i {
    color: var(--accent-color) !important;
}

[data-theme="dark"] .author-bio {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .author-stats {
    color: var(--accent-color) !important;
}

[data-theme="dark"] .story-meta a {
    color: var(--accent-color) !important;
}

[data-theme="dark"] .story-meta a:hover {
    color: var(--accent-hover) !important;
}

[data-theme="dark"] .story-summary {
    background: var(--bg-tertiary) !important;
    border-left-color: var(--accent-color) !important;
}

[data-theme="dark"] .story-summary p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .story-header h1 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .story-meta {
    color: var(--text-secondary) !important;
}

/* Стили для мобильных устройств в темной теме */
@media (max-width: 768px) {
    [data-theme="dark"] .story-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        text-align: left;
    }
    
    [data-theme="dark"] .story-meta > div {
        justify-content: flex-start;
        text-align: left;
    }
    
    [data-theme="dark"] .story-meta i {
        display: inline-block;
        width: 16px;
        text-align: center;
        margin-right: 0.5rem;
    }
    
    [data-theme="dark"] .story-meta a {
        display: inline-block;
        margin-left: 0;
    }
    
    [data-theme="dark"] .story-detail .story-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        text-align: left;
    }
    
    [data-theme="dark"] .story-detail .story-meta i {
        display: inline-block;
        width: 16px;
        text-align: center;
        margin-right: 0.5rem;
    }
    
    [data-theme="dark"] .story-detail .story-meta a {
        display: inline-block;
        margin-left: 0;
    }
    
    /* Кнопка переключения темы в мобильной версии */
    .theme-toggle {
        top: 8px;
        right: 8px;
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .theme-toggle span {
        display: none;
    }
}

/* Светлые ссылки для темной темы */
[data-theme="dark"] a {
    color: #e2e8f0;
    transition: color 0.3s ease;
}

[data-theme="dark"] a:hover {
    color: #ffffff;
}

[data-theme="dark"] a:active {
    color: #f7fafc;
}

[data-theme="dark"] a:visited {
    color: #e2e8f0;
}

/* Специальные стили для навигационных ссылок в темной теме */
[data-theme="dark"] .nav-link {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .nav-link:active {
    color: #f7fafc !important;
}

/* Стили для ссылок в футере */
[data-theme="dark"] .footer-section a {
    color: #cbd5e0;
}

[data-theme="dark"] .footer-section a:hover {
    color: #ffffff;
}

/* Стили для карточек в темной теме */
[data-theme="dark"] .story-card:hover,
[data-theme="dark"] .tour-card:hover,
[data-theme="dark"] .hotel-card:hover,
[data-theme="dark"] .excursion-card:hover,
[data-theme="dark"] .ad-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .story-content h3,
[data-theme="dark"] .tour-content h3,
[data-theme="dark"] .hotel-content h3,
[data-theme="dark"] .excursion-content h3,
[data-theme="dark"] .ad-content h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .story-meta,
[data-theme="dark"] .tour-destination,
[data-theme="dark"] .tour-duration,
[data-theme="dark"] .tour-price,
[data-theme="dark"] .hotel-location,
[data-theme="dark"] .hotel-stars,
[data-theme="dark"] .hotel-price,
[data-theme="dark"] .excursion-location,
[data-theme="dark"] .excursion-duration,
[data-theme="dark"] .excursion-price {
    color: #a0aec0;
}

[data-theme="dark"] .story-content p:not(.story-meta),
[data-theme="dark"] .tour-content p:not(.tour-destination):not(.tour-duration):not(.tour-price),
[data-theme="dark"] .hotel-content p:not(.hotel-location):not(.hotel-stars):not(.hotel-price),
[data-theme="dark"] .excursion-content p:not(.excursion-location):not(.excursion-duration):not(.excursion-price),
[data-theme="dark"] .ad-content p:not(.ad-meta) {
    color: #cbd5e0;
}

/* Стили для ссылок в карточках */
[data-theme="dark"] .story-card a,
[data-theme="dark"] .tour-card a,
[data-theme="dark"] .hotel-card a,
[data-theme="dark"] .excursion-card a {
    color: #e2e8f0;
}

[data-theme="dark"] .story-card a:hover,
[data-theme="dark"] .tour-card a:hover,
[data-theme="dark"] .hotel-card a:hover,
[data-theme="dark"] .excursion-card a:hover {
    color: #ffffff;
}

/* Стили для ссылок в кнопках */
[data-theme="dark"] .btn {
    color: inherit;
}

[data-theme="dark"] .btn-primary {
    color: #ffffff;
}

[data-theme="dark"] .btn-secondary {
    color: #e2e8f0;
}

[data-theme="dark"] .btn-secondary:hover {
    color: #ffffff;
}

/* Стили для ссылок в галерее */
[data-theme="dark"] .gallery-item a {
    color: #e2e8f0;
}



/* Стили для ссылок в истории */
[data-theme="dark"] .story-meta a {
    color: #e2e8f0;
}

[data-theme="dark"] .story-meta a:hover {
    color: #ffffff;
}

/* Стили для ссылок в хлебных крошках */
[data-theme="dark"] .breadcrumb a {
    color: #e2e8f0;
}

[data-theme="dark"] .breadcrumb a:hover {
    color: #ffffff;
}

/* Стили для ссылок в пагинации */
[data-theme="dark"] .pagination a {
    color: #e2e8f0;
}

[data-theme="dark"] .pagination a:hover {
    color: #ffffff;
    background-color: rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .pagination .active a {
    color: #ffffff;
    background-color: #667eea;
}

/* Стили для ссылок в логотипе */
[data-theme="dark"] .nav-logo {
    color: #e2e8f0;
}

[data-theme="dark"] .nav-logo:hover {
    color: #ffffff;
}

/* Стили для ссылок в админской панели (если есть) */
[data-theme="dark"] .admin-link {
    color: #e2e8f0;
}

[data-theme="dark"] .admin-link:hover {
    color: #ffffff;
}

/* Стили для ссылок в модальных окнах */
[data-theme="dark"] .modal a {
    color: #e2e8f0;
}

[data-theme="dark"] .modal a:hover {
    color: #ffffff;
}

[data-theme="dark"] .author-details h1 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .author-stories h2 {
    color: var(--text-primary) !important;
}

.navbar {
    background: var(--navbar-bg);
}

.featured-stories {
    background: var(--bg-secondary);
}

.tours-section {
    background: var(--bg-tertiary);
}

.hotels-section {
    background: var(--bg-secondary);
}

.excursions-section {
    background: var(--bg-tertiary);
}

.advertisements-section {
    background: var(--bg-secondary);
}



.story-content h3, .tour-content h3, .hotel-content h3, .excursion-content h3, .ad-content h3 {
    color: var(--text-primary);
}

.story-meta, .tour-destination, .tour-duration, .tour-price, .hotel-location, .hotel-stars, .hotel-price, .excursion-location, .excursion-duration, .excursion-price {
    color: var(--text-secondary);
}

.story-meta i, .tour-destination i, .tour-duration i, .tour-price i, .hotel-location i, .hotel-stars i, .hotel-price i, .excursion-location i, .excursion-duration i, .excursion-price i {
    color: var(--accent-color);
}

section h2 {
    color: var(--text-primary);
}

section h2 i {
    color: var(--accent-color);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border: 1px solid var(--info-color);
    color: var(--info-color);
}

footer {
    background: var(--footer-bg);
}

.page-header {
    background: var(--navbar-bg);
}

.story-content {
    background: var(--card-bg);
    color: var(--text-primary);
}

.story-content h1,
.story-content h2,
.story-content h3,
.story-content h4,
.story-content h5,
.story-content h6 {
    color: var(--text-primary);
}

.story-content p {
    color: var(--text-primary);
}

.story-content blockquote {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.story-content table {
    background: var(--card-bg);
}

.story-content table th {
    background: var(--accent-color);
}

.story-content table tr:hover {
    background: var(--bg-tertiary);
}

.story-content a {
    color: var(--accent-color);
}

.story-content code {
    background: var(--bg-tertiary);
}

.partners-section {
    background: var(--bg-tertiary);
}

.partner-card {
    background: var(--card-bg);
}

.partner-card h3 {
    color: var(--text-primary);
}

.partner-card p {
    color: var(--text-secondary);
}

.author-header {
    background: var(--card-bg);
}

.author-details h1 {
    color: var(--text-primary);
}

.author-email {
    color: var(--text-secondary);
}

.author-bio {
    color: var(--text-secondary);
}

.author-stats {
    color: var(--accent-color);
}

.author-stories h2 {
    color: var(--text-primary);
}

.story-summary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.media-caption {
    background: var(--bg-tertiary);
}

.media-caption h4 {
    color: var(--text-primary);
}

.media-caption p {
    color: var(--text-secondary);
}

.empty-state {
    color: var(--text-secondary);
}

.empty-state h3 {
    color: var(--text-primary);
}

.page-link {
    border: 2px solid var(--border-color);
    color: var(--accent-color);
}

.page-link:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-link.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-link.disabled {
    color: var(--text-muted);
    border-color: var(--border-color);
}

.page-link.disabled:hover {
    color: var(--text-muted);
}

/* Дополнительные стили для темной темы в админке */
[data-theme="dark"] .admin-form-label {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .form-help {
    color: #a0aec0 !important;
}

[data-theme="dark"] .form-help i {
    color: #667eea !important;
}

[data-theme="dark"] .info-box {
    background: #1a4d2e !important;
    border-color: #22c55e !important;
    color: #bbf7d0 !important;
}

[data-theme="dark"] .info-box i {
    color: #22c55e !important;
}

[data-theme="dark"] .admin-form-control {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

[data-theme="dark"] .admin-form-control:focus {
    border-color: #667eea !important;
    background: #2d3748 !important;
}

[data-theme="dark"] .admin-form-control::placeholder {
    color: #a0aec0 !important;
}

/* Стили для таблиц в темной теме */
[data-theme="dark"] .admin-table th {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

[data-theme="dark"] .admin-table td {
    background: #1a202c !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

[data-theme="dark"] .admin-table tr:hover td {
    background: #2d3748 !important;
}

/* Стили для статистических карточек в темной теме */
[data-theme="dark"] .admin-stat-card {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}

[data-theme="dark"] .admin-stat-content h3 {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .admin-stat-content p {
    color: #a0aec0 !important;
}

[data-theme="dark"] .admin-stat-content .stat-number {
    color: #667eea !important;
}

/* Gallery Section Styles */
.gallery-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 700;
}

.gallery-section .section-description {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.gallery-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.gallery-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}



/* Dark theme for gallery section */
[data-theme="dark"] .gallery-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

[data-theme="dark"] .gallery-section h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .gallery-section .section-description {
    color: #a0aec0;
}

[data-theme="dark"] .stat-item span {
    color: #e2e8f0;
}

[data-theme="dark"] .stat-item i {
    color: #667eea;
}

/* Responsive design for gallery section */
@media (max-width: 768px) {
    .gallery-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .gallery-section h2 {
        font-size: 2rem;
    }
    
    .gallery-section .section-description {
        font-size: 1rem;
    }
    
    .stat-item i {
        font-size: 2rem;
    }
}

/* Tour Links Section Styles */
.tour-links-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-left: 4px solid var(--accent-color);
}

.tour-links-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.tour-links-section h3 i {
    color: var(--accent-color);
}

.tour-script-container {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 1rem;
    overflow: hidden;
}

/* Dark theme for tour links section */
[data-theme="dark"] .tour-links-section {
    background: var(--card-bg);
    border-left-color: var(--accent-color);
}

[data-theme="dark"] .tour-links-section h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .tour-script-container {
    background: var(--bg-tertiary);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-text i {
    font-size: 1.5rem;
    color: #ffd700;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-buttons .btn-primary {
    background: #28a745;
    color: white;
}

.cookie-buttons .btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.cookie-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Responsive design for cookie consent */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-text {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Дополнительные стили для заголовков в темной теме */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .story-content h1,
[data-theme="dark"] .story-content h2,
[data-theme="dark"] .story-content h3,
[data-theme="dark"] .story-content h4,
[data-theme="dark"] .story-content h5,
[data-theme="dark"] .story-content h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .story-media h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .media-caption h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-caption h3 {
    color: var(--text-primary) !important;
}

/* Стили для кнопки лайка в темной теме */
[data-theme="dark"] .btn-like {
    background: var(--bg-secondary);
    border: 2px solid #007bff;
    color: #007bff;
}

[data-theme="dark"] .btn-like:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

[data-theme="dark"] .btn-like.liked {
    background: #007bff;
    color: #fff;
}

[data-theme="dark"] .btn-like:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: var(--bg-secondary);
    color: #666;
}

/* Стили для жирного текста в темной теме */
[data-theme="dark"] .story-content strong,
[data-theme="dark"] .story-content b {
    color: #c2a5f8 !important;
    font-weight: 700 !important;
}

[data-theme="dark"] strong,
[data-theme="dark"] b {
    color: #c2a5f8 !important;
    font-weight: 350 !important;
}

/* ============================================================================
   СТИЛИ ДЛЯ ЗАЩИЩЕННЫХ EMAIL АДРЕСОВ
   ============================================================================ */

/* Стили для защищенных email в футере */
.protected-email-footer {
    cursor: pointer;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.1);
}

.protected-email-footer:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    background: rgba(102, 126, 234, 0.2);
}

.email-placeholder {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.email-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Стили для защищенных email авторов */
.protected-email-author {
    cursor: pointer;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.protected-email-author:hover {
    color: var(--accent-hover);
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.protected-email-author i {
    font-size: 1.1rem;
}

/* Темная тема для защищенных email */
[data-theme="dark"] .protected-email-footer {
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .protected-email-footer:hover {
    color: var(--accent-hover);
    background: rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] .email-link {
    color: var(--accent-color);
}

[data-theme="dark"] .email-link:hover {
    color: var(--accent-hover);
}

[data-theme="dark"] .protected-email-author {
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .protected-email-author:hover {
    color: var(--accent-hover);
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Адаптивность для защищенных email */
@media (max-width: 768px) {
    .protected-email-footer {
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
    }
    
    .protected-email-author {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .email-placeholder {
        font-size: 0.8rem;
    }
}

/* Адаптивность для карточек историй */
@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .story-card {
        margin-bottom: 1rem;
    }
    
    .story-content {
        padding: 1rem;
    }
    
    .story-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .story-meta {
        flex-direction: column;
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        align-items: flex-start;
        font-size: 0.8rem;
    }
    
    .story-meta i {
        width: 12px;
        text-align: center;
        margin-right: 6px;
    }
    
    .story-author, .story-date, .story-location, .story-travel-date {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.8rem;
    }
    
    .story-content p:not(.story-meta) {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .story-content .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: 25px;
    }
}

@media (max-width: 480px) {
    .story-content {
        padding: 0.5rem;
    }
    
    .story-content h3 {
        font-size: 1.1rem;
    }
    
    .story-meta {
        font-size: 0.75rem;
    }
    
    .story-author, .story-date, .story-location, .story-travel-date {
        font-size: 0.75rem;
    }
    
    .story-content p:not(.story-meta) {
        font-size: 0.85rem;
    }
}

/* ============================================================================
   ГОРИЗОНТАЛЬНЫЙ РЕЖИМ НА МОБИЛЬНЫХ УСТРОЙСТВАХ
   ============================================================================ */

/* Горизонтальный режим на мобильных устройствах */
@media (max-width: 768px) and (orientation: landscape) {
    /* Исправление ширины фона под меню - убираем ограничения контейнера */
    .navbar {
        padding: 0.5rem 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .nav-container {
        padding: 0 15px;
        max-width: none;
        width: 100%;
    }
    
    /* Исправление ширины основного контейнера для полной ширины экрана */
    .container {
        max-width: none;
        width: 100%;
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 1.4rem;
    }
    
    .nav-logo i {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Hero секция в горизонтальном режиме */
    .hero {
        height: 40vh;
        min-height: 200px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Карточки в горизонтальном режиме */
    .stories-grid, .tours-grid, .hotels-grid, .excursions-grid, .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    

    
    .story-content, .tour-content, .hotel-content, .excursion-content, .ad-content {
        padding: 0.5rem;
    }
    
    .story-content h3, .tour-content h3, .hotel-content h3, .excursion-content h3, .ad-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .story-meta, .tour-destination, .tour-duration, .tour-price, .hotel-location, .hotel-stars, .hotel-price, .excursion-location, .excursion-duration, .excursion-price {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        gap: 4px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .story-author, .story-date, .story-location, .story-travel-date {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.75rem;
    }
    
    .story-content p:not(.story-meta), .tour-content p:not(.tour-destination):not(.tour-duration):not(.tour-price), .hotel-content p:not(.hotel-location):not(.hotel-stars):not(.hotel-price), .excursion-content p:not(.excursion-location):not(.excursion-duration):not(.excursion-price), .ad-content p:not(.ad-meta) {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    /* Кнопки в горизонтальном режиме */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    /* Заголовки секций в горизонтальном режиме */
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Галерея в горизонтальном режиме */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .gallery-image img {
        height: 150px;
    }
    
    .gallery-overlay {
        padding: 0.75rem;
    }
    
    .gallery-info h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-info p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-meta {
        font-size: 0.75rem;
    }
    
    /* Детальный просмотр истории в горизонтальном режиме */
    .story-detail {
        padding: 2rem 0;
    }
    
    .story-header {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .story-header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .story-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .story-media {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .story-content {
        padding: 2rem;
        margin: 2rem 0;
        font-size: 1rem;
    }
    
    .media-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .media-item img {
        height: 180px;
    }
    
    /* Пагинация в горизонтальном режиме */
    .pagination {
        gap: 0.3rem;
        margin-top: 2rem;
    }
    
    .page-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Telegram бот секция в горизонтальном режиме */
    .telegram-bot-section {
        padding: 2rem 0;
    }
    
    .bot-content {
        gap: 2rem;
    }
    
    .bot-info h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .bot-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .bot-info p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .bot-features li {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Галерея секция в горизонтальном режиме */
    .gallery-section {
        padding: 2rem 0;
    }
    
    .gallery-stats {
        gap: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-item i {
        font-size: 2rem;
    }
    
    .stat-item span {
        font-size: 0.9rem;
    }
    
    /* Партнеры секция в горизонтальном режиме */
    .partners-section {
        padding: 2rem 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Кнопка переключения темы в горизонтальном режиме */
    .theme-toggle {
        top: 5px;
        right: 5px;
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .theme-toggle span {
        display: none;
    }
    
    /* Футер в горизонтальном режиме */
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    /* Модальные окна в горизонтальном режиме */
    .modal-content {
        max-width: 90%;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Lightbox в горизонтальном режиме */
    .lightbox-content {
        width: 90%;
        max-height: 80vh;
    }
    
    .close-lightbox {
        top: 10px;
        right: 25px;
        font-size: 30px;
    }
}

/* Очень маленькие экраны в горизонтальном режиме */
@media (max-width: 568px) and (orientation: landscape) {
    .stories-grid, .tours-grid, .hotels-grid, .excursions-grid, .ads-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .media-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .story-content, .tour-content, .hotel-content, .excursion-content, .ad-content {
        padding: 0.5rem;
    }
    
    .story-content h3, .tour-content h3, .hotel-content h3, .excursion-content h3, .ad-content h3 {
        font-size: 1rem;
    }
    
    .story-meta, .tour-destination, .tour-duration, .tour-price, .hotel-location, .hotel-stars, .hotel-price, .excursion-location, .excursion-duration, .excursion-price {
        font-size: 0.7rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .story-author, .story-date, .story-location, .story-travel-date {
        display: flex;
        align-items: center;
        gap: 3px;
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 25px;
    }
    
    .nav-link {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Кнопка переключения темы для очень маленьких экранов */
    .theme-toggle {
        top: 3px;
        right: 3px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
}
