/* БАЗОВЫЕ СБРОСЫ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'AlumniSans';
  src: url('../fonts/AlumniSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AlumniSans';
  src: url('../fonts/AlumniSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FiraSans';
  src: url('../fonts/FiraSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FiraSans';
  src: url('../fonts/FiraSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body {
    font-family: 'AlumniSans', sans-serif;
    padding-top: 8vh;
}

/* ОСНОВНАЯ ШАПКА */
.main-nav {
    display: flex;
    width: 100%;
    gap: 0;
    padding: 0;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.main-nav a {
    font-family: 'FiraSans', sans-serif;
    font-weight: 500;
    text-decoration: none;
    font-size: clamp(10px, 2vw, 24px);  /* адаптивный размер */
    flex: 1;
    text-align: center;
    padding: 2.5vh 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.main-nav a:nth-child(1) {
    background-color: #2B50AA;
    color: #F7DE1C;
}

.main-nav a:nth-child(2) {
    background-color: #05C1F1;
    color: #2B50AA;
}

.main-nav a:nth-child(3) {
    background-color: #F7DE1C;
    color: #2B50AA;
}

.main-nav a:nth-child(4) {
    background-color: #2B50AA;
    color: #F7DE1C;
}


/* ГЛАВНАЯ */
.index-page {
    background-color: #2B50AA;
    min-height: 100vh; 
}

/* БЕГУЩАЯ СТРОКА */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: transparent;
    padding: 1vh 0;
    margin-top: 0;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 5s linear infinite;
    gap: 100px;
}

.marquee-text {
    display: inline-block;
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 5vw;
    color: #F7DE1C;
    white-space: nowrap;
}

/* Анимация бегущей строки */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Остановка анимации при наведении */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* КОНТЕЙНЕР ДЛЯ ЛУЧЕЙ */
.rays-container {
    width: 100%;
    overflow-x: hidden;
}

/* Лучи */
.rays-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ЖЕЛТЫЙ ПРЯМОУГОЛЬНИК С ТЕКСТОМ */
.info-banner {
    width: 100%;
    background-color: #F7DE1C;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6vh 4vw;  /* уменьшено с 10vw до 4vw */
    gap: 4vw;
}

.info-banner-left,
.info-banner-right {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 3vw;
    color: #2B50AA;
    line-height: 1.4;
    flex: 1;
}

.info-banner-left {
    text-align: left;
}

.info-banner-right {
    text-align: right;
}

/* ТРИ ПРЯМОУГОЛЬНИКА */
.process-steps {
    display: flex;
    width: 100%;
    gap: 0;
}

.process-step {
    position: relative;
    flex: 1;
    aspect-ratio: 1 / 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Цвета прямоугольников */
.process-step.pink {
    background-color: #FF8CBD;
}

.process-step.blue {
    background-color: #05C1F1;
}

.process-step.yellow {
    background-color: #F7DE1C;
}

/* Фото внутри прямоугольника */
.process-image {
    width: 20vw;
    height: auto;
    display: block;
    z-index: 1;
}

/* Текст в левом верхнем углу */
.process-label {
    position: absolute;
    top: 5%;
    left: 5%;
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 3vw;
    color: #2B50AA;
    z-index: 2;
    margin: 0;
    padding: 0;
}

/* ДВА ПРЯМОУГОЛЬНИКА СНИЗУ */
.bottom-sections {
    display: flex;
    width: 100%;
    gap: 0;
}

.bottom-section {
    position: relative;
    min-height: 50vh;
    flex: 1;
    aspect-ratio: 1 / 0.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5vw 8vw 5vw 4vw;
    overflow: hidden;
}

/* Цвета прямоугольников */
.bottom-section.green {
    background-color: #01B37F;
}

.bottom-section.purple {
    background-color: #7A59A4;
}

/* Левая часть с текстом */
.section-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    z-index: 2;
}

/* Заголовок */
.section-title {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 3vw;
    color: #2B50AA;
    line-height: 1.3;
    margin-bottom: 4vh;
}

/* Фиолетовый прямоугольник */
.section-title.purple-title {
    color: #F7DE1C;
}

/* Кнопка */
.section-button {
    display: inline-flex;
    align-items: center;
    gap: 1vw;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.section-button:hover {
    transform: translateX(0.5vw);
}

.button-text {
    font-family: 'FiraSans', sans-serif;
    font-weight: 500;
    font-size: 2vw;
    color: #2B50AA;
}

/* Фиолетовый прямоугольник */
.purple-button .button-text {
    color: #F7DE1C;
}

/* Стрелки в кнопках */
.button-arrow {
    width: 1.5vw;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.section-right {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.section-image {
    width: 5vw;
    height: auto;
    max-width: none;
    min-width: 15vw;
}

/* О ФАБРИКЕ */
.about-page {
    background-color: #05C1F1;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Бегущая строка */
.about-page .marquee-container {
    margin-top: 0;
    padding: 1vh 0;
}

.about-page .marquee-text {
    color: #2B50AA;
    font-size: 5vw;
}

/* Блоки */
.about-layout {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.about-layout.reverse {
    flex-direction: row-reverse;
}

/* Левая часть с фото */
.about-left {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}

/* Правая часть с плашкой */
.about-right {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Цветные плашки */
.about-right.green {
    background-color: #01B37F;
    padding: 4vw 4vw;
    height: 100%;
    min-height: 100%;
}

.about-right.purple-bg {
    background-color: #7A59A4;
    padding: 4vw 4vw;
    height: 100%;
    min-height: 100%;
}

.about-right.pink {
    background-color: #FF8CBD;
    padding: 4vw 4vw;
    height: 100%;
    min-height: 100%;
}

/* Заголовки */
.about-title.green-title {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 4vw;
    color: #2B50AA;
    margin-bottom: 2vh;
}

.about-title.purple-title {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 4vw;
    color: #F7DE1C;
    margin-bottom: 2vh;
}

.about-title.pink-title {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 4vw;
    color: #2B50AA;
    margin-bottom: 2vh;
}

/* Текст */
.about-text.green-text {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 2.5vw;
    color: #2B50AA;
    line-height: 1.4;
    margin: 0;
}

.about-text.purple-text {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 2.5vw;
    color: #F7DE1C;
    line-height: 1.4;
    margin: 0;
}

.about-text.pink-text {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 2.5vw;
    color: #2B50AA;
    line-height: 1.4;
    margin: 0;
}

/* Контейнер с фото */
.image-switch {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-switch .about-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Анимация для первого блока */
.image-switch .image-3d {
    position: relative;
    opacity: 1;
    animation: fade3D 4s infinite;
}

.image-switch .image-house {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    animation: fadeHouse 4s infinite;
}

/* Анимация для второго блока */
.image-switch .image-office-3d {
    position: relative;
    opacity: 1;
    animation: fadeOffice3D 4s infinite;
}

.image-switch .image-office {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    animation: fadeOffice 4s infinite;
}

/* Анимация для третьего блока */
.image-switch .image-factory-3d {
    position: relative;
    opacity: 1;
    animation: fadeFactory3D 4s infinite;
}

.image-switch .image-factory {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    animation: fadeFactory 4s infinite;
}

@keyframes fadeFirst {
    0% { opacity: 1; }
    45% { opacity: 1; }
    50% { opacity: 0; }
    95% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeSecond {
    0% { opacity: 0; }
    45% { opacity: 0; }
    50% { opacity: 1; }
    95% { opacity: 1; }
    100% { opacity: 0; }
}

/* ПЕРВЫЙ БЛОК  */
.image-switch .image-3d {
    position: relative;
    opacity: 1;
    animation: fadeFirst 4s infinite;
}

.image-switch .image-house {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    animation: fadeSecond 4s infinite;
}

/* ВТОРОЙ БЛОК (office) */
.image-switch .image-office-3d {
    position: relative;
    opacity: 1;
    animation: fadeFirst 4s infinite;
}

.image-switch .image-office {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    animation: fadeSecond 4s infinite;
}

/* ТРЕТИЙ БЛОК  */
.image-switch .image-factory-3d {
    position: relative;
    opacity: 1;
    animation: fadeFirst 4s infinite;
}

.image-switch .image-factory {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    animation: fadeSecond 4s infinite;
}

/* Для экранов 1440px и больше */
@media (min-width: 1440px) {
    .image-switch {
        max-height: 50vh;
    }
    
    .about-right.green,
    .about-right.purple-bg,
    .about-right.pink {
        max-height: 50vh;
    }
}

/* МЕРОПРИЯТИЯ */
.events-page {
    background-color: #F7DE1C;
    min-height: 100vh;
}

/* Бегущая строка */
.events-page .marquee-container {
    padding: 1vh 0;
    margin-top: 0;
    margin-bottom: 2vh;
}

.events-page .marquee-text.events-marquee {
    color: #2B50AA;
    font-size: 5vw;
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

/* Блок с фото и красным прямоугольником */
.events-layout {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

/* Левая колонка */
.events-left {
    width: 57%;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
}

.events-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Правая колонка */
.events-right.red {
    width: 43%;
    flex-shrink: 0;
    background-color: #FF4431;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.6vw 4vw;
    min-height: 100%;
}

/* Заголовок */
.events-title {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 4vw;
    color: #F7DE1C;
    line-height: 1.2;
    margin-bottom: 2vh;
}

/* Дата */
.events-date {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 2vw;
    color: #F7DE1C;
    margin-bottom: 4vh;
}

/* Кнопка */
.events-button {
    display: inline-flex;
    align-items: center;
    gap: 1vw;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.events-button:hover {
    transform: translateX(0.5vw);
}

.events-button .button-text {
    font-family: 'FiraSans', sans-serif;
    font-weight: 500;
    font-size: 2vw;
    color: #F7DE1C;
}

.events-button .button-arrow {
    width: 1vw;
    height: auto;
}

/* ПЛАШКИ МЕРОПРИЯТИЙ */
.events-right.pink,
.events-right.purple,
.events-right.dark-blue,
.events-right.blue {
    width: 43%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.6vw 4vw;
    min-height: 100%;
}

.events-right.pink {
    background-color: #FF8CBD;
}

.events-right.purple {
    background-color: #7A59A4;
}

.events-right.dark-blue {
    background-color: #2B50AA;
}

.events-right.blue {
    background-color: #05C1F1;
}

.events-title.dark {
    color: #2B50AA;
}

.events-date.dark {
    color: #2B50AA;
}

.button-text.dark {
    color: #2B50AA;
}

/* МАГАЗИН */
.shop-page {
    background-color: #2B50AA;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Бегущая строка */
.shop-page .marquee-container {
    padding: 1vh 0;
    margin-bottom: 0;
    margin-top: 0;
}

.shop-page .marquee-text.shop-marquee {
    color: #F7DE1C;
    font-size: 5vw;
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

/* Стили для трех прямоугольников */
.shop-rectangles {
    display: flex;
    width: 100%;
    height: 40vh;
    min-height: 0;
    gap: 0;
    overflow: visible;
}

.rectangle {
    flex: 1;
    height: 100%;
}

.yellow {
    background-color: #F7DE1C;
}

.blue {
    background-color: #05C1F1;
}

/* Стиль для ссылки корзины */
.basket-link {
    position: absolute;
    right: 1.5vw;
    top: 35%;
    transform: translateY(-50%);
    text-decoration: none;
    cursor: pointer;
    z-index: 20;
}

/* Стиль для иконки корзины */
.basket-icon {
    width: 3vw;
    height: auto;
    transition: opacity 0.2s, transform 0.2s;
}

.basket-icon:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

/* Стили для карточки товара */
.product-card {
    position: relative;
    text-decoration: none;
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease, z-index 0s;
}
.product-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Фото книги */
.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

/* Надпись КНИГА */
.product-name {
    position: absolute;
    bottom: 5%;
    left: 5%; 
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 3vw;
    color: #2B50AA;
    margin: 0;
    padding: 0;
    z-index: 2;
}

/* Кнопка + */
.plus-button {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 8%;
    height: auto;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 3;
}

/* Горизонтальная палочка + */
.plus-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 12%;
    background-color: #2B50AA;
    transform: translateY(-50%);
}

/* Вертикальная палочка + */
.plus-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 12%;
    height: 100%;
    background-color: #2B50AA;
    transform: translateX(-50%);
}

/* Эффект при наведении */
.plus-button:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.plus-button:hover::before,
.plus-button:hover::after {
    transition: opacity 0.2s, transform 0.2s;
}

.basket-count {
    position: absolute;
    top: -0.6vw;
    right: -0.8vw;
    min-width: 1.8vw;
    height: 1.8vw;
    padding: 0 0.4vw;
    border-radius: 50%;
    background-color: #FF4431;
    color: #F7DE1C;
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 1.2vw;
    display: none;
    align-items: center;
    justify-content: center;
}

.basket-count.show {
    display: flex;
}

/* СТРАНИЦА ОШИБКА 404 */
.error-page {
    margin: 0;
    padding-top: 0vh;
}

.fullscreen-404 {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-color: #2B50AA;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Контейнер для лучей */
.error-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 225vw;
    height: 225vw;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Каждый луч */
.error-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* Звезда */
.error-star {
    position: relative;
    width: 40vw;
    max-width: 400px;
    height: auto;
    z-index: 2;
    display: block;
}

/* Адаптив для 404 страницы */
@media (max-width: 768px) {
    .error-rays {
        width: 335vw;
        height: 335vw;
    }
    .error-star {
        width: 60vw;
    }
}

@media (max-width: 475px) {
    .error-rays {
        width: 440vw;
        height: 440vw;
    }
    .error-star {
        width: 75vw;
    }
}

/* СТРАНИЦА КНИГИ */
.book-page {
    background-color: #F7DE1C;
    min-height: 100vh;
}

/* Верхняя панель с текстом и плюсом */
.book-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3vh 4vw;
    background-color: transparent;
    width: 100%;
}

/* Текст КНИГА */
.book-header-text {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 6vw;
    color: #2B50AA;
    margin: 0;
}

/* Кнопка плюса */
.book-header-plus {
    position: relative;
    width: 5vw;
    height: 5vw;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Горизонтальная палочка + */
.book-header-plus::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0.4vw;
    background-color: #2B50AA;
    transform: translateY(-50%);
}

/* Вертикальная палочка + */
.book-header-plus::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0.4vw;
    height: 100%;
    background-color: #2B50AA;
    transform: translateX(-50%);
}

.book-header-plus:hover {
    transform: scale(1.1);
}

.book-header-plus:hover::before,
.book-header-plus:hover::after {
    background-color: #05C1F1;
}

/* Контейнер для контента книги */
.book-container {
    width: 100%;
    margin: 0;
    padding: 0 5vw 4vh;
}

/* Обертка для фото */
.book-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4vh 0;
}

.book-image {
    width: 50%;
    height: auto;
    display: block;
}

/* Описание книги */
.book-description {
    background-color: #F7DE1C;
    border-radius: 20px;
    padding: 5vh 5vw;
    margin: 3vh 0;
    text-align: left;
}

.book-description p {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 3vw;
    color: #2B50AA;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Горизонтальная галерея фото книги */
.book-gallery {
    display: flex;
    gap: 6vw;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    margin-top: 4vh;
    padding-bottom: 1vh;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.book-gallery::-webkit-scrollbar {
    display: none;
}

.book-gallery-img {
    flex: 0 0 auto;
    width: 24vw;
    height: auto;
    display: block;
}

/* ФОРМА */
.form-box {
    background: #05C1F1;
    width: 94%;
    max-width: 520px;
    padding: 32px 36px 36px;
    position: relative;
}

.form-title {
    font-family: 'FiraSans', sans-serif;
    font-weight: 500;
    font-size: 32px;
    color: #2B50AA;
    margin-bottom: 24px;
    line-height: 1.1;
}

.form-field {
    background: #F7DE1C;
    border-radius: 4px;
    margin-bottom: 14px;
    position: relative;
}

.form-field input,
.form-field select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'FiraSans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #2B50AA;
    padding: 16px 18px;
    font-style: italic;
}

.form-field select option {
    color: #2B50AA;
    background: #F7DE1C;
    font-style: normal;
}

.form-field input::placeholder {
    color: #2B50AAaa;
    font-style: italic;
}

.form-field select.placeholder-active {
    color: #2B50AAaa;
    font-style: italic;
}

.submit-btn {
    width: 100%;
    background: #2B50AA;
    border: none;
    border-radius: 4px;
    padding: 18px;
    cursor: pointer;
    margin-top: 4px;
    font-family: 'FiraSans', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #F7DE1C;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #1a3a8a;
}

.success-msg {
    display: none;
    text-align: center;
    padding: 24px 0;
}

.success-msg .check {
    font-size: 48px;
    color: #F7DE1C;
    margin-bottom: 12px;
}

.success-msg p {
    font-family: 'FiraSans', sans-serif;
    font-weight: 400;
    font-size: 2.2vw;
    color: #2B50AA;
    line-height: 1.4;
}

/* Затемнение */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 80, 170, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay.show {
    display: flex;
}

button.events-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* ПОДВАЛ */
.footer {
    width: 100%;
    height: 15.5vh;
    background-color: #2B50AA;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
    padding: 0 5%;
}

.footer-logo {
    justify-self: start;
}

.footer-reg {
    justify-self: end;
}

.footer-logo-img {
    height: 8vh;
    width: auto;
    display: block;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.footer-contacts span,
.footer-address span,
.footer-reg span {
    font-family: 'FiraSans', sans-serif;
    font-weight: 500;
    font-size: 1.8vw;
    color: #F7DE1C;
    line-height: 1.3;
}

.footer-star {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-star-img {
    height: 7vh;
    width: auto;
    display: block;
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.footer-reg {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

/* ===== ЗАСТАВКА ГЛАВНОЙ СТРАНИЦЫ ===== */
.index-page {
    overflow: hidden;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #2B50AA;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.splash-screen.hide {
    opacity: 0;
    pointer-events: none;
}

/* ЛУЧИ — подняты выше */
.splash-rays {
    position: absolute;
    top: 40%;  /* было 50% — подняли выше */
    left: 50%;
    width: 225vw;
    height: 225vw;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.splash-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.splash-ray-blue {
    animation: spinClockwise 10s linear infinite;
}

.splash-ray-yellow {
    animation: spinCounterClockwise 20s linear infinite;
}

@keyframes spinClockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinCounterClockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* ===== КОНТЕНТ ЗАСТАВКИ ===== */
.splash-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 5vw;
}

/* Обертка для текста и звезды */
.splash-text-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    width: 85%;
    max-width: 900px;
}

/* Текст слева от звезды */
.splash-text-left {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 6vw;
    color: #2B50AA;
    text-align: right;
    text-transform: uppercase;
    flex: 1;
    line-height: 1.1;
    letter-spacing: 0.05em;
}

/* Текст справа от звезды */
.splash-text-right {
    font-family: 'AlumniSans', sans-serif;
    font-weight: 500;
    font-size: 6vw;
    color: #2B50AA;
    text-align: left;
    text-transform: uppercase;
    flex: 1;
    line-height: 1.1;
    letter-spacing: 0.05em;
}

/* ЗВЕЗДА */
.splash-star {
    position: relative;
    width: 40vw;
    height: auto;
    z-index: 2;
    flex-shrink: 0;
}

/* Нижняя часть заставки */
.splash-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2vh;
    margin-top: 4vh;
    position: relative;
    z-index: 3;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.splash-bottom:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.splash-bottom:active {
    transform: scale(0.95);
}

.splash-bottom-text {
    font-family: 'FiraSans', sans-serif;
    font-weight: 400;
    font-size: 1.6vw;
    color: #2B50AA;
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    pointer-events: none;
}

.splash-arrow-down {
    width: 2.2vw;
    height: auto;
    transform: rotate(90deg);
    animation: bounceArrow 2s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: rotate(90deg) translateY(0);
    }
    50% {
        transform: rotate(90deg) translateY(0.6vw);
    }
}

.main-content {
    position: relative;
    z-index: 1;
}

.index-page.splash-active .main-nav,
.index-page.splash-active .footer {
    visibility: hidden;
}

@media (max-width: 768px) {
    .splash-rays {
        width: 335vw;
        height: 335vw;
        top: 45%;
    }

     .splash-star {
        width: 40vw;
    }
    
    .splash-text-left,
    .splash-text-right {
        font-size: 5.5vw;
    }
    
    .splash-text-wrapper {
        gap: 2vw;
        width: 92%;
    }
    
    .splash-bottom {
        margin-top: 8vh;
        gap: 1.5vh;
    }
    
    .splash-bottom-text {
        font-size: 2vw;
    }
    
    .splash-arrow-down {
        width: 3vw;
    }
    
}

@media (max-width: 475px) {
    .splash-rays {
        width: 440vw;
        height: 440vw;
        top: 45%;
    }

    .splash-star {
        width: 50vw;
    }
    
    .splash-text-left,
    .splash-text-right {
        font-size: 4.5vw;
    }
    
    .splash-text-wrapper {
        gap: 1vw;
        width: 98%;
    }
    
    .splash-bottom {
        margin-top: 5vh;
        gap: 1.5vh;
    }
    
    .splash-bottom-text {
        font-size: 2.8vw;
    }
    
    .splash-arrow-down {
        width: 4vw;
    }
    
}


/* АДАПТИВ ДЛЯ ЭКРАНА 768px — СТРАНИЦА О ФАБРИКЕ */
@media (max-width: 768px) {
    .about-layout,
    .about-layout.reverse {
        flex-direction: column;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    .about-title.green-title,
    .about-title.purple-title,
    .about-title.pink-title {
        font-size: 7vw;
    }

    .about-text.green-text,
    .about-text.purple-text,
    .about-text.pink-text {
        font-size: 4vw;
    }

    .about-right.green,
    .about-right.purple-bg,
    .about-right.pink {
        padding: 6vw 6vw;
    }
}

/* АДАПТИВ ДЛЯ ЭКРАНА 768px — СТРАНИЦА МЕРОПРИЯТИЯ */
@media (max-width: 768px) {
    .events-layout,
    .events-layout.reverse {
        flex-direction: column;
    }

    .events-layout.reverse {
        flex-direction: column-reverse;
    }

    .events-left {
        width: 100%;
        align-self: auto;
    }

    .events-right.red,
    .events-right.pink,
    .events-right.purple,
    .events-right.dark-blue,
    .events-right.blue {
        width: 100%;
        min-height: auto;
    }

    .events-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .events-title {
        font-size: 7vw;
    }

    .events-date {
        font-size: 4vw;
    }

    .events-button .button-text {
        font-size: 4vw;
    }

    .events-button .button-arrow {
        width: 3vw;
    }
}

/* АДАПТИВ ДЛЯ ЭКРАНА 768px — СТРАНИЦА МАГАЗИН */
@media (max-width: 768px) {
    .shop-rectangles {
        display: contents;
    }

    .shop-page {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .rectangle {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }

    .product-name {
        font-size: 5vw;
    }

    .plus-button {
        width: 7%;
        max-width: none;
        min-width: 0;
    }

     #notebookLink {
        background-color: #05C1F1;
    }

    #stickersLink {
        background-color: #F7DE1C;
    }

    .basket-link {
        margin: 0 4vw 0 auto;
        top: 25vh;
    }
}

@media (max-width: 768px) {
    .shop-page .marquee-container,
    .shop-page .footer,
    .shop-page .basket-link {
        grid-column: 1 / -1;
    }
}

/* АДАПТИВ ДЛЯ ЭКРАНА 768px — ГЛАВНАЯ СТРАНИЦА */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
    }

    .process-step {
        width: 100%;
        aspect-ratio: 1 / 0.8;
    }

    .process-image {
        width: 45vw;
    }

    .process-label {
        font-size: 6vw;
    }

    .bottom-sections {
        flex-direction: column;
    }

    .bottom-section {
        width: 100%;
        aspect-ratio: 1 / 0.6;
        min-height: 0;
    }

    .section-title {
        font-size: 6vw;
    }

    .button-text {
        font-size: 4vw;
    }

    .section-image {
        width: 10vw;
        min-width: 25vw;
    }

    .info-banner {
        flex-direction: column;
        gap: 3vh;
        padding: 4vh 8vw;
    }

    .info-banner-left,
    .info-banner-right {
        font-size: 5vw;
        text-align: left;
        flex-direction: column;
        gap: 0;
    }
}

/* АДАПТИВ ДЛЯ ЭКРАНА 768px — СТРАНИЦА 404 */
@media (max-width: 768px) {
    .fullscreen-404 {
        aspect-ratio: 768 / 880;
    }
}

@media (max-width: 768px) {
    .footer-logo-img,
    .footer-star-img {
        height: 3.6vh;
    }
}

@media (max-width: 768px) {
    .basket-icon {
        width: 6vw;
    }

    .basket-count {
        min-width: 3.2vw;
        height: 3.2vw;
        font-size: 2.2vw;
    }
}

@media (max-width: 475px) {
    .shop-page {
        grid-template-columns: 1fr;
    }

    .rectangle {
        aspect-ratio: 1 / 1;
    }

    #notebookLink {
        background-color: #F7DE1C;
    }

    #stickersLink {
        background-color: #05C1F1;
    }

    .basket-link {
        margin: 0 4vw 0 auto;
        top: 20vh;
    }
}

@media (max-width: 475px) {
    .footer {
        height: 8vh;
    }

    .footer-logo-img,
    .footer-star-img {
        height: 3.2vh;
    }
}

/* МОБИЛЬНАЯ ШАПКА */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8vh;
    background-color: #2B50AA;
    z-index: 1500;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5vw;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Бургер-кнопка */
.burger-btn {
    width: 6vw;
    height: 5vw;
    max-width: 44px;
    max-height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1600;
    background: transparent;
    border: none;
    padding: 0;
}
.burger-btn span {
    display: block;
    width: 100%;
    height: 12%;
    background-color: #F7DE1C;
    border-radius: 2px;
    transition: 0.2s;
}

/* МЕНЮ */
.mobile-dropdown {
    position: fixed;
    top: 8vh;
    right: 5vw;
    width: 44vw;
    max-width: 200px;
    background-color: #F7DE1C;
    border-radius: 0;  /* убираем скругления */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 2.5vh 0;
    display: none;
    flex-direction: column;
    z-index: 2000;
}
.mobile-dropdown a {
    font-family: 'FiraSans', sans-serif;
    font-weight: 500;
    font-size: 4.5vw;
    color: #2B50AA;
    text-decoration: none;
    padding: 1.8vh 5vw;
    border-bottom: 1px solid rgba(43,80,170,0.1);
    transition: background 0.15s;
    text-align: left;
    display: block;
}
.mobile-dropdown a:last-child {
    border-bottom: none;
}
.mobile-dropdown a:hover {
    background: rgba(43,80,170,0.08);
}
.mobile-dropdown.open {
    display: flex !important;
}

/* Затемнение */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1400;
    display: none;
}
.overlay-menu.open {
    display: block !important;
}

/* ===== АДАПТИВ ДЛЯ 414px ===== */
@media (max-width: 475px) {
    .main-nav {
        display: none !important;
    }
    
    .mobile-header {
        display: flex !important;
    }
    
    .mobile-dropdown {
        width: 44vw;
        max-width: 200px;
        right: 4vw;
        top: 8vh;
        padding: 1.5vh 0;
    }
    .mobile-dropdown a {
        font-size: 4.2vw;
        padding: 1.8vh 5vw;
    }
    
    .burger-btn {
        width: 7vw;
        height: 5.5vw;
        max-width: 44px;
        max-height: 34px;
    }
}

/* Стрелки в кнопках */
@media (max-width: 768px) {
    .button-arrow {
        width: 2vw;
        min-width: 12px;
        max-width: 24px;
    }
}

@media (max-width: 475px) {
    .button-arrow {
        width: 3vw;
        min-width: 14px;
        max-width: 28px;
    }
}

@media (max-width: 768px) {
    .book-header-text {
        font-size: clamp(28px, 8vw, 56px) !important;
    }
    .book-image {
        width: 80% !important;
    }
}

@media (max-width: 475px) {
    .book-header-text {
        font-size: clamp(24px, 10vw, 40px) !important;
    }
    .book-image {
        width: 90% !important;
    }
    .book-page .basket-link {
        margin: 0 4vw 1vh auto;
    }
}

@media (max-width: 768px) {
    .book-description p {
        font-size: 5vw !important;
        line-height: 1.5;
    }
    
    .book-page .basket-link {
        margin: 0 4vw 0.5vh auto;
    }
}

@media (max-width: 475px) {
    .book-description p {
        font-size: 6vw !important; 
        line-height: 1.5;
    }
    
    .book-page .basket-link {
        margin: 0 4vw 0 auto;
        top: 13vh;
    }
}


