 
/* Основные стили для страницы книг Трепачёва Дмитрия */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Заголовок по центру */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
}

.subtitle {
	margin-top: -10px;
    font-size: 1.7rem;
    color: #5a6e7c;
    font-weight: 400;
}

/* Сетка книг */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* Карточка книги */
.book-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Название книги по центру */
.book-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e2f3e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

/* Описание книги */
.book-description {
    color: #4a5b68;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Кнопка "Читать" (стиль как у Bootstrap, но без Bootstrap) */
.read-btn {
    display: inline-block;
    text-align: center;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: fit-content;
    align-self: center;
    margin-top: 8px;
}

.read-btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.read-btn:active {
    background-color: #0a58ca;
    transform: translateY(1px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .books-grid {
        gap: 24px;
    }
    
    .book-card {
        padding: 20px;
    }
    
    .book-title {
        font-size: 1.2rem;
    }
}