/* Общие стили для страницы форматов */
body {
    background: linear-gradient(135deg, #f9f5e9 0%, #f0e6d2 100%);
    color: #3c2f2f;
    line-height: 1.6;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin: 50px 0 40px;
    padding: 0 20px;
}

.page-title {
    font-size: 42px;
    color: #4e342e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #8d6e63;
}

.page-subtitle {
    font-size: 20px;
    color: #8d6e63;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* Форматы книг */
.formats-container {
    margin: 60px 0;
}

.format-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s;
}

.format-section:hover {
    transform: translateY(-5px);
}

.format-header {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.format-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 28px;
}

.format-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.format-size {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #e9e1d5;
}

.format-description {
    font-size: 17px;
    line-height: 1.8;
    color: #4e342e;
}

.format-description p {
    margin-bottom: 15px;
}

.format-description ul {
    padding-left: 25px;
    margin: 15px 0;
}

.format-description li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Цвета для разных форматов */
.format-very-large .format-header { background: #3498db; }
.format-encyclopedic .format-header { background: #9b59b6; }
.format-large .format-header { background: #1abc9c; }
.format-standard .format-header { background: #f39c12; }
.format-small .format-header { background: #e67e22; }
.format-miniature .format-header { background: #e74c3c; }

/* Дополнительная информация */
.additional-info {
    background: #8d6e63;
    border-radius: 12px;
    padding: 40px;
    margin: 60px 0;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.info-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    color: #f8f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.info-content {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.info-content p {
    margin-bottom: 20px;
    text-align: center;
}

.info-content ul {
    padding-left: 30px;
    margin-top: 20px;
}

.info-content li {
    margin-bottom: 15px;
    position: relative;
}

.info-content li::before {
    content: '•';
    position: absolute;
    left: -20px;
    color: #f1c40f;
    font-size: 20px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.format-section {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.format-section:nth-child(1) { animation-delay: 0.1s; }
.format-section:nth-child(2) { animation-delay: 0.2s; }
.format-section:nth-child(3) { animation-delay: 0.3s; }
.format-section:nth-child(4) { animation-delay: 0.4s; }
.format-section:nth-child(5) { animation-delay: 0.5s; }
.format-section:nth-child(6) { animation-delay: 0.6s; }

/* Адаптивность */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .format-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .format-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .format-body {
        padding: 20px;
    }
    
    .format-description {
        font-size: 16px;
    }
    
    .additional-info {
        padding: 25px;
    }
    
    .info-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .format-size {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-content ul {
        padding-left: 20px;
    }
}