/* ==== Стили для раздела "Наука" (современный, бирюзовый) ==== */

/* Герой-блок */
.science-hero {
    background: linear-gradient(135deg, #0B3D3B 0%, #1ABC9C 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem 4rem;
}

.science-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.science-subtitle {
    font-size: 1.2rem;
    color: #e0f7f3;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.science-intro {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #d5f5ef;
}

/* Каталог книг */
.books-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #0B3D3B;
    margin-bottom: 0.8rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Фильтр */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #555;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #1ABC9C;
    color: #1ABC9C;
}

.filter-btn.active {
    background: #1ABC9C;
    border-color: #1ABC9C;
    color: white;
}

/* Сетка книг */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    border-top: 4px solid #1ABC9C;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.book-cover {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.book-card h3 {
    font-size: 1.25rem;
    color: #0B3D3B;
}

.book-annotation {
    color: #555;
    font-size: 0.95rem;
    flex-grow: 1;
}

.book-status {
    display: inline-block;
    background: #e8f8f5;
    color: #1ABC9C;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
}

/* О проекте */
.about-science {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.about-science h2 {
    font-size: 2rem;
    color: #0B3D3B;
    margin-bottom: 1rem;
}

.about-science p {
    font-size: 1.1rem;
    color: #555;
}

/* CTA */
.science-cta {
    background: linear-gradient(135deg, #0B3D3B 0%, #1ABC9C 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.science-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.science-cta p {
    font-size: 1.1rem;
    color: #d5f5ef;
    margin-bottom: 2rem;
}

.science-button {
    background: white;
    color: #0B3D3B;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

.science-button:hover {
    background: #e0f7f3;
    transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 700px) {
    .science-hero h1 {
        font-size: 2rem;
    }
    .science-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
    .section-header h2,
    .about-science h2,
    .science-cta h2 {
        font-size: 1.6rem;
    }
    .filter-bar {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}