/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');


.menu-btn {
    width: 60px;
    height: 60px;
    padding: 10px;
    display: flex;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    background: #00000082;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.menu-btn div {
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.4s;
    position: relative;
}

.menu-btn.active div:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.menu-btn.active div:nth-child(2) {
    opacity: 0;
}

.menu-btn.active div:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

.menu-list {
    position: fixed;
    width: 300px;
    padding: 20px;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 11, 11, 0.403);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(73, 72, 72, 0.2);
    z-index: 999;
    display: none;
}

.menu-list.active {
    display: block;
}

.goToSection {
    width: 100%;
    padding: 10px;
    margin: 10px auto;
    border-radius: 100px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
}

.prod-name {
  margin-bottom: 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700; /* можно сделать жирнее для лучшей видимости */
  font-size: 48px; /* пример размера */
  color: transparent; /* прозрачный цвет букв */
  -webkit-text-stroke: 2px #333; /* обводка (толщина и цвет) */
  text-stroke: 1.5px #333333; /* для совместимости */
}

/* Основной контейнер */
body {
    font-family: 'Arial', sans-serif;
    background: #a5a5a5;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
}

.shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#ffffffd9, #000000b0);
}

.wrap {
    position: relative;
    z-index: 100;
}

ul {
    padding: 0;
    margin: 10px 15px;
    color: #333;
}

.more {
    background: #333;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 200px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
}

/* Контейнер книги */
.book-container {
    width: 100vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
    
}


/* Книга */
.book {
    width: 98vw;
    margin-top: 20px;
    height: 600px;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0px 5px 5px #000000;
}


/* Разворот (2 страницы) */
.spread {
    width: 98vw;
    height: 600px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateX(100%);
    /* Убраны все анимации и transition */
}


/* Активный разворот */
.spread.active {
    opacity: 1;
    transform: translateX(0);
}


/* Страница */
.page {
    width: 50%;
    height: 600px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


/* Левая страница */
.left-page {
    border-right: 2px solid #ccc;
    /* border-radius: 10px 0 0 10px; */
}


/* Правая страница */
.right-page {
    border-left: 2px solid #ccc;
    /* border-radius: 0 10px 10px 0; */
}

/* Контент страницы */
.page-content {
    padding: 10px;
    width: 100%;
    height: 100%;
    z-index: 100;
}

/* Текст */
.page-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
}


/* Кнопки управления */
.controls {
    margin-top: -50px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(11, 11, 11, 0.403);
    padding: 15px 30px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(73, 72, 72, 0.2);
}


/* Кнопка */
.btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}


.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}


.btn:active {
    transform: translateY(0);
}


.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* Информация о странице */
.page-info {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    min-width: 150px;
    text-align: center;
}


/* Скрытые развороты */
.spread.hidden {
    transform: translateX(0) scale(0.95);
    z-index: 0;
    opacity: 0;
}

.anim-page {
    height: 100%;
    width: 2px;
    /* background: #ececec; */
    background: #333;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    transform-origin: center;
    z-index: 200;
}

.animate-forward {
  animation: flipForward 0.7s forwards;
}

@keyframes flipForward {
    0% {
        width: 50%;
        left: 50%;
        transform: translateX(0); /* расширяется вправо от центра */
    }
    66% {
        width: 2px;
        left: 50%;
    }
    99% {
        width: 50%;
        left: 0;
        transform: translateX(0); /* расширяется влево от центра до левого края */
    }

    100% {
        height: 100%;
        width: 2px;
        background: #333;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;
        transform-origin: center;
    }
}


.animate-backward {
    animation: flipBackward 0.7s forwards;
}

@keyframes flipBackward {
    0% {
        width: 50%;
        left: 0;
        transform: translateX(0); /* расширяется влево от левого края */
    }
    66% {
        width: 2px;
        left: 50%;
    }
    99% {
        width: 50%;
        left: 50%;
        transform: translateX(0); /* расширяется вправо от центра до правого края */
    }
    100% {
        height: 100%;
        width: 2px;
        background: #333;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;
        transform-origin: center;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 5px;
    }
 
    .prod-name {
        color: #333;
        -webkit-text-stroke: 1px #333;
        font-size: 30px;
    }

    .more {
        padding: 12px 10px;
        font-size: 15px;
    }
}