/* modules/pdf-banner/pdf-banner.css */
/* Базовые стили блока */
.pdf-banner {
    padding: 100px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.pdf-banner__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 50px;
}

.pdf-banner__content {
    flex: 1;
    z-index: 2;
}

.pdf-banner__title {
    font-size: 2.5rem;
    color: #00f5d4;
    margin-bottom: 20px;
    font-family: 'Expletus Sans', sans-serif;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

.pdf-banner__description {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(203, 213, 225, 0.2);
}

.pdf-banner__buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

/* УДАЛЕНЫ КАСТОМНЫЕ СТИЛИ КНОПОК - ИСПОЛЬЗУЮТСЯ ГЛОБАЛЬНЫЕ */
/* Оставлены только специфичные для баннера отступы */
.pdf-banner__buttons .btn {
    padding: 14px 30px;
    font-size: 1.1rem;
}

.pdf-banner__note {
    color: #94a3b8;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(148, 163, 184, 0.2);
}

/* Статичная 3D книга */
.pdf-banner__book {
    position: relative;
    width: 300px;
    height: 400px;
    perspective: 1500px;
    flex-shrink: 0;
}

.pdf-banner__book-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-25deg);
}

/* Возвращаем темный цвет обложке */
.pdf-banner__book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0f172a, #1e293b);
    border-radius: 10px 5px 5px 10px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 20;
    transform: rotateY(0deg);
}

.pdf-banner__book-cover::before {
    content: "PDF";
    position: absolute;
    font-size: 5rem;
    font-weight: bold;
    color: rgba(0, 245, 212, 0.1);
    transform: rotate(-45deg);
}

.pdf-banner__book-cover::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transform: rotateY(90deg) translateX(10px);
    transform-origin: right center;
}

.pdf-banner__book-pages {
    position: absolute;
    width: 98%;
    height: 98%;
    top: 1%;
    right: 1%;
    transform-style: preserve-3d;
}

.pdf-banner__book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 5px;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: bold;
    font-size: 2.2rem;
    text-align: center;
    padding: 20px;
    transform-origin: left center;
    backface-visibility: hidden;
}

/* Создаем эффект стопки страниц */
.pdf-banner__book-page:nth-child(1) {
    transform: rotateY(-3deg);
    z-index: 19;
    background: #f8fafc;
    /* Белый фон */
}

.pdf-banner__book-page:nth-child(2) {
    transform: rotateY(-6deg);
    z-index: 18;
    background: #f0f7ff;
    /* Голубой оттенок */
}

.pdf-banner__book-page:nth-child(3) {
    transform: rotateY(-9deg);
    z-index: 17;
    background: #e6f7ff;
    /* Более насыщенный голубой */
}

/* Страница ChatGPT - специальный цвет */
.pdf-banner__book-page:nth-child(4) {
    transform: rotateY(-12deg);
    z-index: 16;
    background: #141D2E;
    /* Цвет ChatGPT */
    color: #00f5d4;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .pdf-banner__container {
        flex-direction: column;
        text-align: center;
    }

    .pdf-banner__buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .pdf-banner {
        padding: 60px 0;
    }

    .pdf-banner__title {
        font-size: 2rem;
    }

    .pdf-banner__description {
        font-size: 1rem;
    }
    
    /* Скрываем книгу на мобильных устройствах */
    .pdf-banner__book {
        display: none;
    }
    
    /* Увеличиваем размер кнопок на мобильных */
    .pdf-banner__buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .pdf-banner__buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .pdf-banner__title {
        font-size: 1.8rem;
    }
    
    .pdf-banner__description {
        font-size: 1rem;
    }
    
    .pdf-banner__buttons .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}