/* General styles */
:root {
    --primary-color: #0078C8;
    --secondary-color: #004B7D;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e1e1e1;
    --white: #fff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn--secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

/* Header styles */
.header {
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.burger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero section */
.hero {
    background-color: var(--light-gray);
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero__text {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero__btn {
    margin-top: 20px;
}

/* Popular books section */
.popular-books {
    padding: 80px 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.book-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.book-card__img-wrapper {
    height: 200px;
    overflow: hidden;
}

.book-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-card__img {
    transform: scale(1.05);
}

.book-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 15px 10px;
    color: var(--primary-color);
}

.book-card__text {
    font-size: 14px;
    padding: 0 15px 15px;
    flex-grow: 1;
}

/* About section */
.about {
    padding: 80px 0;
    background-color: var(--light-gray);
     background-image: url('../images/abcg.png');
    background-size: cover;
    background-position: center;
}

.about__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #fff;
}

/* Catalog section */
.catalog {
    padding: 80px 0;
}

/* FAQ section */
.faq {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.faq__item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq__question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.faq__answer {
    font-size: 16px;
}

/* Benefits section */
.benefits {
    padding: 80px 0;
}

.benefits__content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.benefits__image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.benefits__info {
    flex: 1;
}

.benefits__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefits__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefits__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
}

.benefits__icon {
    font-size: 20px;
}

/* Contacts section */
.contacts {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contacts .section-title {
    color: var(--white);
}

.contacts__content {
    display: flex;
    gap: 30px;
}

.contacts__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacts__info {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 30px;
}

.contacts__info p {
    font-size: 18px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-btn {
    align-self: flex-start;
}

/* Footer styles */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer__link {
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--primary-color);
}

.footer__copyright {
    text-align: center;
    font-size: 14px;
    color: #777;
}

/* Thank you page */
.thank-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 0;
}

.thank-page__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.thank-page__btn {
    margin-top: 20px;
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
    display: none;
}

.cookie-consent.active {
    display: block;
}

.cookie-consent__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent__content p {
    flex: 1;
    min-width: 300px;
}

.cookie-consent__buttons {
    display: flex;
    gap: 10px;
}

/* Media queries */
@media (max-width: 991px) {
    .burger-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--white);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 90;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 20px;
    }

    .nav__link {
        display: block;
        padding: 10px 0;
        font-size: 18px;
    }

    .benefits__content {
        flex-direction: column;
    }

    .contacts__content {
        flex-direction: column;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__text {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .cookie-consent__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent__buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }

    .popular-books,
    .about,
    .catalog,
    .faq,
    .benefits,
    .contacts {
        padding: 50px 0;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .thank-page__title {
        font-size: 28px;
    }

    .footer__links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
              .page {
                padding: 80px 0;
              }
              
              .page__inner {
                padding-top: 40px;
                width: 100%;
                margin: 0 auto;
                display: flex;
                  flex-direction: column;
                  row-gap: 18px;
                  line-height: 1.4;
              }

              .page__inner p {
                padding-bottom: 10px;
                padding-top: 8px;
              }

              .page__inner strong {
                font-weight: 600;
              }

              .page__inner ul {
                padding-left: 20px;
                list-style-type: disc;
              }

              .thank {
                padding-top: 140px;
                padding-bottom: 140px;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 40px;
                text-align: center;
              }

              .thank-list {
                width: 100%;
                max-width: 1200px;
                margin: 0 auto 40px;
                display: flex;
                flex-direction: column;
                padding: 40px 24px;
                color: #121212;
                background: #E1E0DA;
              }

              .consent {
                border-radius: 10px;
                  background: #F5F5F5;
                    padding: 30px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    gap: 15px;
                    max-width: 830px;
                    width: 95%;
                    position: fixed;
                    left: 10%;
                    bottom: 50px;
                    transform: translateX(-10%);
                    z-index: 21;
                 
                   
                }

               
                
                .consent__text {
                  font-size: 14px;
                  color: #131313;
                  span {
                    display: block;
                    font-size: 30px;
                    text-transform: uppercase;
                  }
                }
                
                .consent__buttons {
                  display: flex;
                 
                  gap: 30px;
                  align-items: center;
                  width: 100%;
                 
                }       
                
                @media (max-width: 900px) {
                  .consent {
                    left: 50%;
                    transform: translateX(-50%);
                  }
                  .consent__buttons {
                    justify-content: center;
                    flex-direction: column;
                  }
                }

                .button {
                  position: relative;
                  align-self: center;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  text-decoration: none;
                  border: none;
                  border-radius: 20px;
                 
                  max-width: 400px;
                  min-height: 48px;
                  padding: 0 24px;
                  font-family:
                    Roboto,
                    -apple-system,
                    Roboto,
                    Helvetica,
                    sans-serif;
                  font-size: 18px;
                  font-weight: 700;
                  color: rgba(255, 255, 255, 1);
                  white-space: nowrap;
                  text-transform: uppercase;
                  cursor: pointer;
                }

                