/* Основные стили - КОРИЧНЕВАЯ ЦВЕТОВАЯ СХЕМА */
:root {
    --primary-color: #8B4513; /* Коричневый как книга */
    --secondary-color: #654321; /* Темный коричневый */
    --accent-color: #D2691E; /* Оранжево-коричневый */
    --light-color: #FAF3E0; /* Светлый кремовый фон */
    --dark-color: #5D4037; /* Темный коричневый */
    --text-color: #3E2723; /* Цвет текста */
    --gray-color: #795548; /* Серо-коричневый */

    --shadow: 0 5px 15px rgba(91, 70, 54, 0.15);
    --radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23FAF3E0"/><path d="M0,0 L100,100" stroke="%23E8DCC0" stroke-width="0.5"/><path d="M100,0 L0,100" stroke="%23E8DCC0" stroke-width="0.5"/></svg>');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: #FFF8E1;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo i {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background-color: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.btn-contact {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white !important;
    box-shadow: 0 3px 10px rgba(210, 105, 30, 0.3);
}

.btn-contact:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Главная секция */
.hero {
    padding: 3rem 0;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
}

.hero h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.3rem !important;
    font-weight: 600;
    color: var(--secondary-color);
    font-style: italic;
}

.highlight {
    background-color: #FFF3E0;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(210, 105, 30, 0.2);
    font-style: italic;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.1);
}

/* Книжная стопка */
.book-stack {
    position: relative;
    height: 300px;
}

.book {
    position: absolute;
    background: white;
    border-radius: 5px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
}

.book-1 {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #8B4513, #654321);
    transform: rotate(-5deg);
    left: 0;
    top: 0;
}

.book-2 {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #D2691E, #A0522D);
    transform: rotate(2deg);
    left: 40px;
    top: 10px;
}

.book-3 {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #BC8F8F, #8B4513);
    transform: rotate(8deg);
    left: 80px;
    top: 5px;
}

/* Категории книг */
.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.book-categories {
    padding: 3rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.15);
}

.category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    font-size: 1.5rem;
}

.category-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

/* Ссылки на категории */
.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.category-link:hover {
    transform: translateY(-8px);
}

.category-link:hover .category-card {
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
}

/* Содержимое категорий (скрыто) */
.category-content {
    display: none;
    padding: 3rem 0;
    background: #FFF8E1;
    border-radius: var(--radius);
    margin: 2rem 0;
    border: 1px solid rgba(139, 69, 19, 0.1);
    box-shadow: var(--shadow);
}

.category-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-wrapper {
    max-width: 1000px; /* Увеличили для больших обложек */
    margin: 0 auto;
    padding: 2rem;
}

/* === УВЕЛИЧЕННЫЕ ОБЛОЖКИ КНИГ === */

.book-detail {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(139, 69, 19, 0.1);
    transition: var(--transition);
    overflow: hidden;
}

.book-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.15);
}

/* Обложка книги - УВЕЛИЧЕННЫЙ РАЗМЕР */
.book-cover {
    float: left;
    margin-right: 2.5rem;
    margin-bottom: 1rem;
    width: 240px; /* Большой размер */
    text-align: center;
}

.book-cover-image {
    width: 240px;
    height: 360px; /* Пропорции 2:3 */
    object-fit: contain;
    background-color: #f8f4e9;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
    border: 3px solid white;
    transition: all 0.3s ease;
    display: block;
}

/* Заглушка для Ящик с ушами */
.cover-placeholder {
    width: 240px;
    height: 360px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
    position: relative;
    overflow: hidden;
    border: 3px solid white;
}

.cover-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.cover-content i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cover-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    max-width: 220px;
    line-height: 1.4;
}

/* Текст книги справа от обложки */
.book-info {
    overflow: hidden;
    min-height: 360px; /* Высота как у обложки */
    padding-top: 0.5rem;
}

.book-detail h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    margin-top: 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(210, 105, 30, 0.2);
}

.book-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-color);
}

/* Эффект при наведении на обложку */
.book-cover-image:hover,
.cover-placeholder:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.35);
}

/* Четкий clearfix */
.book-detail::after {
    content: "";
    display: table;
    clear: both;
}

/* Разделитель между книгами */
.book-detail:not(:last-child) {
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
    padding-bottom: 3rem;
}

.content-wrapper p {
    font-size: 1.2rem;
    color: var(--gray-color);
    line-height: 1.8;
    text-align: center;
}

/* === ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ РАЗДЕЛА "УСЛУГИ" === */

.services {
    padding: 3rem 0;
    background-color: #FFF3E0;
    margin: 2rem 0;
    border-radius: var(--radius);
    border: 1px solid rgba(210, 105, 30, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(139, 69, 19, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    text-align: center;
    min-height: 3.5rem;
}

.service-content {
    flex-grow: 1;
}

.service-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-content p strong {
    color: var(--accent-color);
    font-weight: 600;
}

.service-note {
    background-color: #FFF8E1;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.service-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-list li:before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0.3rem;
}

/* Контактная информация в разделе услуг */
.contact-details {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.1);
    margin-top: 2rem;
}

.contact-details h3 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-items .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: #FFF8E1;
    border-radius: var(--radius);
    border: 1px solid rgba(139, 69, 19, 0.1);
    transition: var(--transition);
}

.contact-items .contact-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.contact-items .contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.contact-items .contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-items .contact-item p {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
        min-height: auto;
    }

    .contact-items {
        grid-template-columns: 1fr;
    }

    .contact-items .contact-item {
        padding: 1rem;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-family: 'Merriweather', serif;
}

.services-note {
    text-align: center;
    color: var(--gray-color);
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
}

/* Об авторе */
.about {
    padding: 3rem 0;
}

.about-content {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.author-avatar {
    font-size: 4rem;
    color: var(--primary-color);
}

.author-details h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-family: 'Merriweather', serif;
}

.author-tagline {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 600;
}

.author-bio p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Контакты */
.contact {
    padding: 3rem 0;
    background: linear-gradient(135deg, #FFF3E0, #FFF8E1);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid rgba(210, 105, 30, 0.1);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.15);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-family: 'Merriweather', serif;
}

.contact-note {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px dashed rgba(210, 105, 30, 0.3);
}

.contact-note i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Подвал */
.footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: white;
    padding: 3rem 0 1rem;
    border-top: 3px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
}

.footer-section p {
    color: #E0D7CC;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section a {
    display: block;
    color: #E0D7CC;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #E0D7CC;
}

.footer-heart {
    color: #FF8A80;
    margin-top: 0.5rem;
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeInUp 0.6s ease forwards;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-stack {
        display: none;
    }

    .book-cover {
        margin-right: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFF8E1;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        border: 1px solid rgba(139, 69, 19, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .book-cover {
        float: none;
        margin: 0 auto 1.5rem;
        display: block;
        width: 200px; /* Чуть меньше для мобильных */
    }

    .book-cover-image,
    .cover-placeholder {
        width: 200px;
        height: 300px; /* Пропорции сохраняем */
    }

    .cover-content i {
        font-size: 2.8rem;
    }

    .cover-title {
        font-size: 1.1rem;
    }

    .book-info {
        min-height: auto;
        text-align: center;
    }

    .book-detail {
        padding: 1.8rem;
    }

    .book-detail h3 {
        text-align: center;
        font-size: 1.5rem;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

.strikethrough {
    text-decoration: line-through;
    color: var(--gray-color);
    font-size: 0.9em;
    opacity: 0.7;
}
/* Кнопка скачивания под обложкой */
.download-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.download-btn i {
    margin-right: 0.5rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.4);
}

/* Для мобильных */
@media (max-width: 768px) {
    .download-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}