* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Montserrat";
}
:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #ea580c;
}
html {
  font-size: 50%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 4rem 15%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
} 
#menu-icon {
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
}
.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.logo:hover{
  transform: scale(1.1);
}
span{
  background: linear-gradient(
    270deg,
    #DF8908 10%,
    #ff1d15 100%
  );
  background-clip: text;
  color: transparent;
}
.navbar a{
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}
.navbar a:hover{
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}
.gradient-btn{
  font-size: 1.8rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: linear-gradient(
    270deg,
    #DF8908 10%,
    #ff1d15 100%
  );
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: white;
  border: none;
  text-wrap: nowrap;
}
.gradient-btn:hover{
  transform: scale(1.05);
}

section{
  min-height: auto;
  padding: 5rem 15%;
}
.home{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
  padding-top: 20rem;
}
.home-content{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.home-content h1{
  font-size: 8rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}
.home-content h3{
  margin: 1rem 0;
  font-size: 4rem;
}
.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}
.home-img img {
    width: 32vw;
    border-radius: 60%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.home-img img:hover {
    box-shadow:
              0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover {
    color: var(--text-color);
    background-color: var(--main-color);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 0 10px var(--main-color);
}
.btn-group{
  display: flex;
  gap: 1.5rem;
}
.btn{
  display: inline-block;
  padding: 1rem  3rem;
  background: var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: black;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out ;
}
.btn:hover{
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--main-color),
              0 0 25px var(--main-color);
}

.btn-group a:nth-of-type(2){
  background: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
}
.btn-group a:nth-of-type(2):hover{
  box-shadow: 0 0 10px var(--main-color);
  background: var(--main-color);
  color: black;
}

::-webkit-scrollbar{
  width: 10px;
}
::-webkit-scrollbar-thumb{
  background-color: var(--main-color);
}
::-webkit-scrollbar-track{
  background-color: var(--bg-color);
}

.heading{
  text-align: center;
  font-size: 7rem;
}
.services{
  background-color: var(--bg-color);
  color: black;
}
.services h2{
  color: var(--text-color );
}
.services-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 2.5rem;
}
.service-box{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 300px;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
}
.service-box:hover{
  background-color: var(--second-bg-color);
  color: var(--main-color);
  border: 2px solid var(--main-color);
  transform: scale(1.02);
}
.service-info{
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}
.service-info h4{
  font-size: 4rem;
  margin: 2rem 0;
  font-weight: 800;
}
.service-info p{
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
}
.service-info i{
  font-size: 8rem;
}

.books{
  background-color: var(--bg-color);
  color: black;
}

.books h2{
  color: var(--text-color );
}



.books {
  padding: 5rem 15%;
}

.books-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 5rem;
}

.book-card {
            background: var(--second-bg-color);
            border-radius: 2rem;
            overflow: hidden;
            transition: 0.4s ease-in-out;
            border: 2px solid transparent;
            display: flex;
            flex-direction: column;
        }

.book-card:hover {
            transform: translateY(-10px);
            border: 2px solid var(--main-color);
            box-shadow: 0 0 30px rgba(234, 88, 12, 0.3);
        }

.book-cover {
            width: 100%;
            height: 450px;
            overflow: hidden;
            position: relative;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        }

.book-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.4s ease-in-out;
        }

.book-card:hover .book-cover img {
            transform: scale(1.05);
        }

.book-content {
            padding: 3rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

.book-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--text-color);
            line-height: 1.2;
        }

.book-description {
            font-size: 1.5rem;
            line-height: 1.8;
            color: #cccccc;
            margin-bottom: 2.5rem;
            flex-grow: 1;
        }

.book-buttons {
            display: flex;
            gap: 1.5rem;
        }

.btn-primary {
            flex: 1;
            padding: 1.2rem 2rem;
            background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
            border: none;
            border-radius: 1rem;
            font-size: 1.6rem;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: 0.3s ease-in-out;
            text-align: center;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

.btn-primary:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px var(--main-color);
        }

.btn-secondary {
            flex: 1;
            padding: 1.2rem 2rem;
            background: transparent;
            border: 2px solid var(--main-color);
            border-radius: 1rem;
            font-size: 1.6rem;
            font-weight: 600;
            color: var(--main-color);
            cursor: pointer;
            transition: 0.3s ease-in-out;
            text-align: center;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

.btn-secondary:hover {
            background: var(--main-color);
            color: white;
            transform: scale(1.05);
        }

        /* Плейсхолдер для обкладинки */
.placeholder-cover {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8rem;
            color: var(--main-color);
        }

@media (max-width: 768px) {
   .heading {
                font-size: 4rem;
            }

    .books {
                padding: 3rem 5%;
            }

    .books-container {
                grid-template-columns: 1fr;
                gap: 3rem;
            }

    .book-title {
                font-size: 2rem;
            }

    .book-description {
                font-size: 1.3rem;
            }

    .book-buttons {
                flex-direction: column;
            }
}


 /* Модальне вікно */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            overflow-y: auto;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal.active {
            display: block;
        }

        .modal-content {
            background: var(--second-bg-color);
            margin: 5% auto;
            padding: 0;
            width: 80%;
            max-width: 900px;
            border-radius: 2rem;
            position: relative;
            animation: slideDown 0.4s ease;
            border: 0px solid var(--main-color);
        }

        @keyframes slideDown {
            from { 
                transform: translateY(-50px);
                opacity: 0;
            }
            to { 
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-close {
            position: absolute;
            right: 2rem;
            top: 2rem;
            font-size: 4rem;
            color: var(--main-color);
            cursor: pointer;
            z-index: 10;
            transition: 0.3s ease;
            width: 4rem;
            height: 4rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
        }

        .modal-close:hover {
            transform: rotate(90deg);
            background: var(--main-color);
            color: white;
        }

        .modal-cover {
            width: 100%;
            height: 400px;
            overflow: hidden;
            border-radius: 2rem 2rem 0 0;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        }

        .modal-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .modal-body {
            padding: 4rem;
        }

        .modal-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        .modal-text {
            font-size: 1.6rem;
            line-height: 1.9;
            color: #cccccc;
            margin-bottom: 3rem;
        }

        .modal-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .modal-img {
            width: 100%;
            height: 250px;
            border-radius: 1rem;
            overflow: hidden;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            border: 2px solid var(--main-color);
        }

        .modal-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.3s ease;
        }

        .modal-img:hover img {
            transform: scale(1.1);
        }

        .modal-img-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 6rem;
            color: var(--main-color);
            height: 100%;
        }

        .modal-buy-btn {
            width: 100%;
            padding: 1.5rem 3rem;
            background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
            border: none;
            border-radius: 1rem;
            font-size: 2rem;
            font-weight: 700;
            color: white;
            cursor: pointer;
            transition: 0.3s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            text-decoration: none;
        }

        .modal-buy-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 0 30px var(--main-color);
        }

        @media (max-width: 768px) {
            .heading {
                font-size: 4rem;
            }

            .books {
                padding: 3rem 5%;
            }

            .books-container {
                grid-template-columns: 1fr;
                gap: 3rem;
            }

            .book-title {
                font-size: 2rem;
            }

            .book-description {
                font-size: 1.3rem;
            }

            .book-buttons {
                flex-direction: column;
            }

            .modal-content {
                width: 95%;
                margin: 10% auto;
            }

            .modal-body {
                padding: 2rem;
            }

            .modal-title {
                font-size: 2.5rem;
            }

            .modal-text {
                font-size: 1.4rem;
            }

            .modal-images {
                grid-template-columns: 1fr;
            }

            .modal-close {
                right: 1rem;
                top: 1rem;
                font-size: 3rem;
                width: 3.5rem;
                height: 3.5rem;
            }
        }

.footer {
  background-color: var(--second-bg-color);
  padding: 50px 0;
}
.footer .social-icons {
  text-align: center;
}
.footer ul {
  text-align: center;
  font-size: 1.8rem;
}
.footer ul li {
  display: inline-block;
  margin-left: 20px;
}
.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.footer ul li a:hover {
 border-bottom: 3px solid var(--main-color);
}
.footer .copyright{
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
}

@media(max-width:1285px) {
  #menu-icon{
    display: block;
  }
  .navbar{
     position: absolute;
     top: 100%;
     right: 0;
     width: 50%;
     padding: 1rem 3rem;
     background: rgba(0, 0, 0, 0.8);
     border-bottom-left-radius: 2rem;
     border-left: 2px solid var(--main-color );
     border-bottom: 2px solid var(--main-color ); 
     display: none;
  }
  .navbar a{
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }
  .navbar.active{
    display: block;
  }
  .gradient-btn{
    display: none;
  }
  .home{
    flex-direction: column-reverse;
    margin: 5rem 0;
    gap: 5rem;
  }
  .home-content{
    align-items: center;
    text-align: center;
  }
  .home-img img{
    width: 56vw;
  }
  .modal-actions {
  flex-direction: column;
  }
}

.modal-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;         /* row-gap / column-gap */
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;       /* відступ до тексту */
  font-size: 1.4rem;
  line-height: 1.4;
}

.modal-meta li{
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-meta i{
  font-size: 1.8rem;
  color: var(--main-color);
  flex: 0 0 auto;
}

.modal-meta .meta-label{
  color: var(--main-color);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.modal-meta .meta-value{
  color: #cccccc;
  font-weight: 500;
}


.modal-actions {
  display: flex;
  gap: 1.2rem;
}


.modal-actions .modal-buy-btn,
.modal-actions .modal-secondary-btn {
  width: auto;
  flex: 1;
}

.modal-secondary-btn {
  padding: 1.5rem 3rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
}

.modal-secondary-btn:hover {
  background: var(--main-color);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(234, 88, 12, 0.25);
}