:root {
    --primary: #1f3c88;
    --accent: #c62828;
    --light: #f4f6f9;
    --dark: #222;
    --soft: #6c757d
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, #f8f9fb, #eef2f7);
    color: var(--dark)
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 80px 0
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif
}

header {
    text-align: center;
    padding: 80px 20px 60px
}

header h1 {
    font-size: 44px;
    margin-bottom: 10px
}

header p {
    color: var(--soft);
    font-size: 18px
}

.card-base {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .05)
}

.about {
    padding: 60px;
    margin-bottom: 80px
}

.about h2 {
    margin-bottom: 20px
}

.about p {
    line-height: 1.7;
    font-size: 18px
}

.promo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px
}

.card {
    overflow: hidden
}

.card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background: #f5f5f5
}

.card-content {
    padding: 40px
}

.highlight {
    padding: 50px;
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.highlight h3 {
    font-size: 28px;
    margin-bottom: 15px
}

.highlight p {
    margin-bottom: 25px;
    line-height: 1.6
}

.highlight .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    transition: .25s;
    box-shadow: 0 6px 14px rgba(198, 40, 40, .25)
}

.highlight .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(198, 40, 40, .35)
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .6s
}

.carousel-image.active {
    opacity: 1
}

.distribution {
    padding: 60px;
    margin-bottom: 80px;
    text-align: center
}

.distribution-content {
    display: flex;
    flex-direction: column;
    align-items: center
}

.distribution img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-top: -20px;
    display: block;
    object-fit: contain
}

.distribution-content p {
    color: var(--soft);
    margin-bottom: 40px;
    font-size: 17px
}

.services {
    padding: 60px;
    margin-bottom: 80px
}

.services p {
    margin-bottom: 12px;
    font-size: 18px
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px
}

form {
    padding: 50px
}

form input,
form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid #e1e5ea;
    font-size: 14px
}

form button {
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: .3s
}

form button:hover {
    transform: translateY(-2px)
}

.contact-info {
    padding: 50px
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    color: var(--soft)
}

.contact-item a {
    text-decoration: none;
    color: var(--soft)
}

.contact-item a:hover {
    color: var(--primary)
}

.contact-item i {
    width: 20px;
    height: 20px;
    color: var(--primary)
}

footer {
    text-align: center;
    padding: 50px 20px;
    font-size: 14px;
    color: var(--soft)
}

.wa-button {
    border: none;
    border-radius: 999px;
    background: #1f8f4e;
    color: #fff;
    padding: 12px 22px;
    cursor: pointer;
    transition: .25s
}

.wa-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15)
}

.wa-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.wa-button svg {
    width: 18px;
    height: 18px;
    display: block
}

.wa-text {
    line-height: 1
}

.btn-success {
    position: absolute;
    opacity: 0;
    transform: scale(.5);
    transition: .3s
}

.wa-button.success {
    background: #1da851
}

.wa-button.success .btn-content {
    opacity: 0
}

.wa-button.success .btn-success {
    opacity: 1;
    transform: scale(1)
}

.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: .8s
}

.fade.show {
    opacity: 1;
    transform: translateY(0)
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 40px);
    max-width: 900px;
    background: rgba(20, 20, 20, .95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: .4s
}

.cookie-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto
}

.cookie-banner.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none
}

.cookie-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.cookie-text {
    font-size: 14px;
    line-height: 1.4;
    opacity: .9
}

.cookie-buttons {
    display: flex;
    gap: 10px
}

.btn {
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: .2s
}

.btn.accept {
    background: #4caf50;
    color: #fff
}

.btn.accept:hover {
    background: #43a047
}

.btn.reject {
    background: transparent;
    color: #ccc;
    border: 1px solid #555
}

.btn.reject:hover {
    background: #333;
    color: #fff
}

.books-section {
    text-align: center;
    margin-bottom: 100px;
    position: relative
}

.books-section h2 {
    margin-bottom: 10px
}

.books-subtitle {
    font-size: 14px;
    opacity: .7;
    margin-bottom: 30px
}

.books-wrapper {
    position: relative
}

.books-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 20px 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth
}

.books-grid::-webkit-scrollbar {
    height: 6px
}

.books-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .2);
    border-radius: 10px
}

.book-item {
    min-width: 220px;
    max-width: 220px;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08)
}

.book-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12)
}

.book-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    flex-shrink: 0
}

.book-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.book-info h3 {
    font-size: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px
}

.book-author {
    font-size: 13px;
    opacity: .6;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px
}

.book-price {
    font-weight: 600;
    margin-top: 6px
}

.book-btn {
    margin-top: auto;
    padding: 10px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    text-align: center
}

.book-btn:hover {
    background: #333
}

.scroll-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center
}

.scroll-btn.left {
    left: -10px
}

.scroll-btn.right {
    right: -10px
}

.books-section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, #fff, transparent);
    pointer-events: none
}

@media(max-width:768px) {
    .scroll-btn {
        display: none
    }
}

@media(max-width:900px) {

    .promo,
    .contact-section {
        grid-template-columns: 1fr
    }

    .about,
    .services,
    form,
    .contact-info {
        padding: 35px
    }
}