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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #daddd8;
    background-image: url('../img/IMG_3437.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #7d755b;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(218, 221, 216, 0.3);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(45, 46, 41, 0.6);
    backdrop-filter: blur(5px);
    padding: 10px 30px;
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.glass-panel {
    backdrop-filter: blur(60px);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Герой */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 0;
    padding-top: 2px;
    padding-bottom: 0;
}

.hero-content {
    flex: 1;
    text-align: center;
    padding-left: 40px;
}

.hero h1 {
    font-family: 'Pinyon Script', cursive;
    font-size: 50px;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.capital-l {
    font-size: 1.3em;
    display: inline-block;
    margin-right: -5px;
}

.quote-text {
    font-family: 'Marck Script', cursive;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.quote-text::before { content: "«"; margin-right: 5px; }
.quote-text::after { content: "»"; margin-left: 5px; }

/* --- ЧИСТОЕ ФОТО --- */
.profile-image {
    width: 350px;
    height: auto;
    flex-shrink: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: none;
    cursor: default;
}

.profile-image:hover { transform: none; box-shadow: none; }

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- РАЗДЕЛИТЕЛЬНАЯ ЛИНИЯ --- */
.section-divider {
    height: 2px;
    background-color: rgba(255, 255, 255, 0.6);
    width: 100%;
    margin: 0 auto 60px auto;
    border-radius: 0;
}

/* --- Сетка книг --- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    align-items: stretch;
}

.book-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s, box-shadow 0.3s;
    border-radius: 24px;
    overflow: hidden;
    background-color: #979086;
    height: 100%;
    position: relative;
}

.book-card:hover {
    transform: translateY(-0.8px) scale(1.03);
    background-color: #a39c92;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 10;
}

.book-visual {
    width: 100%;
    height: auto;
    position: relative;
    margin-bottom: 0;
    line-height: 0;
}

.book-visual img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: none;
    border-radius: 24px;
}

.book-info-content {
    padding: 15px 15px 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    line-height: normal;
}

.book-title {
    font-size: 18px;
    font-weight: 900;
    color: #2e332a;
    margin-bottom: 5px;
    line-height: 1.2;
}

.book-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 15px;
}

.book-price {
    background: #35422e;
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 22px;
    font-weight: 300;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.book-price:hover { background: #2a3423; transform: scale(1.05); }

/* --- Остальные стили --- */
.promo-banner {
    max-width: 700px;
    margin: 0 auto 40px auto;
    padding: 20px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.92);
}

.promo-content { text-align: left; }

.promo-banner h2 {
    font-size: 18px;
    color: #35422e;
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.promo-prices-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.price-old { font-size: 16px; color: #999; text-decoration: line-through; }
.price-new { font-size: 24px; color: #35422e; font-weight: 700; }

.promo-btn {
    background: #35422e;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.promo-btn:hover { background: #2a3423; transform: scale(1.15); }

/* --- FAQ --- */
.faq-section { max-width: 700px; margin: 0 auto 60px auto; padding: 10px 30px; }
.faq-header { font-size: 24px; color: #FDFCF7; margin-bottom: 20px; font-weight: 700; text-align: center; padding-top: 15px; }
.faq-item { border-bottom: 1px solid rgba(253, 252, 247, 0.3); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FDFCF7;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.faq-question:hover {
    transform: scale(1.06);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.faq-toggle { font-size: 24px; color: #FDFCF7; transition: transform 0.3s ease; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; font-size: 14px; color: #FDFCF7; opacity: 0.9; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }

/* --- Контакты --- */
.contact-section { display: flex; justify-content: center; gap: 40px; padding-bottom: 40px; }

.contact-link {
    text-decoration: none;
    transition: transform 0.2s;
    position: relative;
}

.contact-link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: transparent;
    padding: 0;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,1);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    margin-top: 10px;
}

.contact-link:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-link:hover .icon-circle { background: #ffffff; transform: translateY(-5px); box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }
.icon-svg { width: 32px; height: 32px; }
.icon-svg path { fill: rgba(255, 255, 255, 0.9); transition: fill 0.3s; }
.contact-link:hover .icon-svg path { fill: #35422e; }

.offer-section {
    text-align: center;
    padding-bottom: 60px;
}

.offer-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.offer-text {
    display: none;
    margin: 20px auto 0;
    max-width: 720px;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 24px 20px;
    color: #FDFCF7;
    line-height: 1.5;
    font-size: 13px;
    backdrop-filter: blur(6px);
}

.offer-text h3,
.offer-text h4 {
    font-size: 14px;
    margin: 14px 0 8px;
    text-transform: uppercase;
}

.offer-text p { margin-bottom: 8px; }

.offer-text.is-open { display: block; }

@media (max-width: 900px) {
    .hero { flex-direction: column-reverse; text-align: center; }
    .hero-content { padding-left: 0; }
    .books-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-image { width: 100%; max-width: 400px; margin-bottom: 20px; }
}

@media (max-width: 650px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .promo-banner { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 50px; }
    .profile-image { width: 100%; }

    .book-title { font-size: 14px; margin-bottom: 3px; }
    .book-description { font-size: 11px; line-height: 1.2; margin-bottom: 10px; }
    .book-info-content { padding: 10px; }

    .book-price {
        font-size: 16px;
        padding: 8px 15px;
        width: 100%;
    }

    .offer-text {
        padding: 18px 16px;
        font-size: 12px;
    }
}
