* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Adderley';
    src: url('./res/adderley_bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Adderley', Arial, sans-serif;
    overflow-x: hidden;
}

/* Фиксированный фон с top-text и header-image */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background-color: black;
}

/* Контейнер для изображений слайдера */
.header-images-container {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    bottom: 0;
    width: calc(100% - 40px);
    height: 100%;
    z-index: 1;
}

/* Изображение — заполняет весь фиксированный блок */
.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Активное изображение */
.header-image.active {
    opacity: 1;
}

/* Верхний текст — поверх изображения */
.top-text {
    position: absolute;
    text-transform: uppercase;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    background-color: black;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 140px;
    z-index: 2;
    overflow: hidden;
}

.top-text .marquee-content {
    display: flex;
    align-items: center;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

.top-text span {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 20px;
}

.logo_separator {
    height: 0.3em;
    width: auto;
}

/* Header-обёртка: задаёт высоту viewport, nav-sections прижат к низу */
.header {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2000; /* БЫЛО 1. Ставим больше, чем у .content */
    pointer-events: none;
    padding: 0 20px;
}

/* Панель навигации — внизу header, скроллится вместе со страницей */
.nav-sections {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: black;
    color: #fff;
    pointer-events: auto;
    flex-shrink: 0;
    margin: 0 -20px;
    width: calc(100% + 40px);
    padding: 0 20px;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-cart {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.nav-logo {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

/* Фиксированное состояние навигации */
.nav-sections.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    z-index: 9999; /* Максимальный приоритет */
}

.nav-sections.fixed .nav-logo {
    display: flex;
}

.nav-sections span {
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-sections span:hover {
    /* color: #007bff; */
}

/* Основной контент — скролится и перекрывает header */
.content {
    position: relative;
    z-index: 100; /* Оставляем его ниже хедера */
    background-color: #fff;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Сетка товаров — 4 карточки в ряд */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Карточка товара */
.product-card {
    background-color: #fff;

    overflow: hidden;
    cursor: pointer;
}


/* Контейнер изображения */
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Увеличение изображения при наведении */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Информация о товаре */
.product-info {
    padding: 15px;
    text-align: center;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-price {
    font-size: 18px;
    color: #000;
    font-weight: bold;
}

/* Адаптивность для меньших экранов */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Секция слайдера товаров в реальной жизни */
.real-life-section {
    background-color: #000;
    padding: 60px 0;
    position: relative;
    z-index: 100;
}

.real-life-title {
    text-align: center;
    font-size: 36px;
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 20px;
}

/* Embla Carousel стили */
.embla {
    position: relative;
    width: 100%;
}

.embla__viewport {
    overflow: hidden;
}

.embla__container {
    display: flex;
    touch-action: pan-y pinch-zoom;
}

.embla__slide {
    flex: 0 0 33.333%;
    min-width: 0;
}

.embla__slide__content {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.embla__slide__content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.embla__slide__content:hover img {
    transform: scale(1.05);
}

/* Кнопки управления слайдером - по бокам */
.embla__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.embla__button--prev {
    left: 20px;
}

.embla__button--next {
    right: 20px;
}

.embla__button:hover {
    transform: translateY(-50%) scale(1.1);
}

.embla__button__svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* Адаптивность для слайдера */
@media (max-width: 900px) {
    .embla__slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 600px) {
    .embla__slide {
        flex: 0 0 100%;
    }
    
    .real-life-title {
        font-size: 24px;
    }
    
    .embla__button {
        width: 40px;
        height: 40px;
        transform: translateY(-50%);
    }
    
    .embla__button:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    .embla__button__svg {
        width: 16px;
        height: 16px;
    }
}
