/* /www/wwwroot/razguliay33.ru/converter_styles.css */

/* ===== ОСНОВНЫЕ СТИЛИ ДЛЯ ГЕНЕРИРУЕМЫХ СТРАНИЦ ===== */

/* Хлебные крошки */
.breadcrumbs {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.breadcrumbs a {
    color: #796602;
    text-decoration: none;
}

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

/* ===== СПИСКИ ССЫЛОК НА СТРАНИЦАХ ===== */
.page-links {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.page-links li {
    margin: 14px 0;
    background: #dcf6fb;
    border-radius: 6px;
    border-left: 3px solid #5da3b9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.page-links li:hover {
    background: #c8ecf2;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.page-links a {
    padding: 16px 20px;
    color: #405668;
    text-decoration: none;
  /*  font-weight: 600; 
    font-size: 15px;*/
    display: block;
    transition: color 0.3s ease;
}

.page-links a:hover {
    color: #0064b5;
    text-decoration: none;
}

/* ===== PDF ФРЕЙМ ТОЛЬКО ДЛЯ ДЕСКТОПА ===== */
.pdf-frame {
    width: 100%;
    height: 1400px;
    border: 2px solid #405668;
    border-radius: 8px;
    margin: 20px 0;
    display: none; /* По умолчанию скрыт, показывается JS для десктопа */
}

/* ===== ГАЛЕРЕЯ ФОТОГРАФИЙ ===== */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.photo-item {
    text-align: center;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 100%;
}

.photo-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: auto;
}

/* ===== СЕКЦИИ ===== */
.section {
    margin: 25px 0;
    padding: 0;
}

.section:first-child {
    margin-top: 0;
}

.section:last-child {
    margin-bottom: 0;
}

/* ===== ВИДЕО ===== */
video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 15px 0;
    display: block;
}

/* ===== КОНВЕРТИРОВАННЫЕ ДОКУМЕНТЫ ===== */
.converted-document {
    all: initial;
    display: block;
    line-height: 1.2;
    font-size: 14px;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.converted-document * {
    box-sizing: border-box;
    max-width: 100%;
}

.converted-document img {
    height: auto !important;
    max-width: 100% !important;
}

/* ===== АДАПТИВНОСТЬ ТОЛЬКО ДЛЯ ТАБЛИЦ И ГАЛЕРЕЙ ===== */
@media (max-width: 768px) {
    /* Таблицы для мобильных */
    table thead {
        display: none;
    }
    
    table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 8px;
        background: transparent;
    }
    
    table td,
    table th {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        font-size: 14px;
        line-height: 1.3;
        background: transparent;
        height: auto;
        min-height: auto;
        white-space: normal;
        overflow: visible;
        vertical-align: middle;
    }
    
    table td:last-child,
    table th:last-child {
        border-bottom: none;
    }
    
    table img {
        max-width: 100%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Галерея для мобильных */
    .photo-gallery {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .photo-item {
        width: 100%;
        max-width:  100%;
    }
    
    /* Видео для мобильных */
    video {
        width: 100%;
        height: auto;
    }
    
    /* Конвертированные документы для мобильных */
    .converted-document {
        padding: 12px;
        font-size: 15px;
        line-height: 1.4;
        margin: 15px 0;
    }
    
    /* Списки ссылок для мобильных */
    .page-links {
        margin: 15px 0;
    }
    
    .page-links li {
        padding: 18px 22px;
        margin: 12px 0;
    }
    
    .page-links a {
        font-size: 16px;
    }
}