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

@property --rotate {
    syntax: "<angle>";
    initial-value: 132deg;
    inherits: false;
}

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

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.header-background {
    position: fixed;
    top: 400px;
    left: 0;
    width: 100%;
    height: calc(100vh - 400px);
    min-height: 720px;
    z-index: 0;
    overflow: hidden;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-background {
    position: fixed;
    top: 82px;
    left: 0;
    width: 100%;
    height: calc(100vh - 40px);
    z-index: 0;
    overflow: hidden;
}

.page-background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

.header {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 24px;
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Moyenage', serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #f5f5f5, #e0e0e0);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-pek {
    color: #ffffff;
    transition: all 0.3s ease;
}

.nav-link-pek:hover {
    color: #ff6b9d;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.6);
    transform: scale(1.05);
}

.nav-link-pek:active,
.nav-link-pek.active {
    color: #ff6b9d;
    text-shadow: 0 0 15px rgba(255, 107, 157, 0.8);
}

.nav-link-pek::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d, #ff8fab, #ffb3c1);
    transition: width 0.3s ease;
}

.nav-link-pek:hover::after,
.nav-link-pek:active::after,
.nav-link-pek.active::after {
    width: 100%;
}

.nav-link-filipoker {
    color: #ffffff;
    transition: all 0.3s ease;
}

.nav-link-filipoker:hover {
    color: #4caf50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
    transform: scale(1.05);
}

.nav-link-filipoker:active,
.nav-link-filipoker.active {
    color: #4caf50;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
}

.nav-link-filipoker::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
    transition: width 0.3s ease;
}

.nav-link-filipoker:hover::after,
.nav-link-filipoker:active::after,
.nav-link-filipoker.active::after {
    width: 100%;
}

.nav-icon {
    margin-left: auto;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    flex-shrink: 0;
}

.nav-icon:hover {
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    transform: scale(1.05);
}

.nav-icon:active,
.nav-icon.active {
    color: #ffffff;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.nav-icon::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #f5f5f5, #e0e0e0);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-icon:hover::after,
.nav-icon:active::after,
.nav-icon.active::after {
    width: 24px;
}

.header-banner-section {
    width: 100%;
    height: 200px;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.header-banner-section > * {
    pointer-events: auto;
}

.side-block {
    width: 200px;
    height: 297px;
    background-color: #000000;
    position: fixed;
    top: 57px;
    z-index: 1;
}

.side-block-left {
    left: 0;
}

.side-block-right {
    right: 0;
}

.center-image {
    height: 297px;
    overflow: hidden;
    position: fixed;
    top: 57px;
    left: 200px;
    right: 200px;
    z-index: 1;
}

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

.main-content {
    max-width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 257px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    width: 100%;
    perspective: 1000px;
}

.product-card.product-1,
.product-card.product-2 {
    width: 100%;
    margin: 0;
}

.banner {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.banner-1 {
    height: 300px;
}

.banner-1 img {
    height: 100%;
    object-fit: cover;
}

.banner-2 {
    height: 250px;
}

.banner-2 img {
    height: 100%;
    object-fit: cover;
}


.categories-wrapper {
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    z-index: 2;
    box-shadow: none;
}

.categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 3;
    justify-items: center;
}

.category-card {
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.category-card-left {
    overflow: visible;
    padding: 3px 3px 0 3px;
    background-color: rgba(0, 0, 0, 0.95);
    border-radius: 10px;
}

.category-card-left > * {
    overflow: hidden;
    border-radius: 7px;
}

.category-card-left .category-image {
    overflow: hidden;
    border-radius: 12px;
}

.category-card-left::before {
    content: '';
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: 15px;
    background-image: linear-gradient(
        var(--rotate),
        #ff6b9d,
        #ff8fab,
        #ffb3c1,
        #ff6b9d
    );
    position: absolute;
    z-index: -1;
    top: -3px;
    left: -3px;
    animation: spin 2.5s linear infinite;
    opacity: 1;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.category-card-left::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    z-index: -1;
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.category-card-left:hover::before {
    opacity: 1;
    filter: brightness(1.5);
    animation: spin 1s linear infinite, pulse-glow 2s ease-in-out infinite;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
    border-radius: 15px;
}

.category-card-left:hover::after {
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.7);
}

.category-card-left:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.category-card-left:hover .category-image img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.category-card-left:hover .category-title {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
    transform-origin: bottom center;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: brightness(1.5) drop-shadow(0 0 20px rgba(255, 107, 157, 0.8));
    }
    50% {
        filter: brightness(1.8) drop-shadow(0 0 30px rgba(255, 107, 157, 1));
    }
}

@keyframes pulse-glow-green {
    0%, 100% {
        filter: brightness(1.5) drop-shadow(0 0 20px rgba(76, 175, 80, 0.8));
    }
    50% {
        filter: brightness(1.8) drop-shadow(0 0 30px rgba(76, 175, 80, 1));
    }
}

.category-card-right {
    overflow: visible;
    padding: 3px 3px 0 3px;
    background-color: rgba(0, 0, 0, 0.95);
    border-radius: 10px;
}

.category-card-right > * {
    overflow: hidden;
    border-radius: 15px;
}

.category-card-right .category-image {
    overflow: hidden;
    border-radius: 15px;
}

.category-card-right::before {
    content: '';
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: 15px;
    background-image: linear-gradient(
        var(--rotate),
        #4caf50,
        #66bb6a,
        #81c784,
        #4caf50
    );
    position: absolute;
    z-index: -1;
    top: -3px;
    left: -3px;
    animation: spin 2.5s linear infinite;
    opacity: 1;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.category-card-right::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    z-index: -1;
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.category-card-right:hover::before {
    opacity: 1;
    filter: brightness(1.5) drop-shadow(0 0 20px rgba(76, 175, 80, 0.8));
    animation: spin 1s linear infinite, pulse-glow-green 2s ease-in-out infinite;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.category-card-right:hover::after {
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.7);
}

.category-card-right:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.category-card-right:hover .category-image img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.category-card-right:hover .category-title {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
    transform-origin: bottom center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes spin {
    0% {
        --rotate: 0deg;
    }
    100% {
        --rotate: 360deg;
    }
}

.category-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 7px 7px 0 0;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-title {
    padding: 15px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Moyenage', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.8);
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    transform-origin: bottom center;
    transition: transform 0.3s ease;
    border-radius: 0 0 7px 7px;
}


/* Товары */
.product-card {
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 100ms ease-out;
    cursor: pointer;
    width: 100%;
    max-width: 440px;
    height: 520px;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    margin: 0 auto;
    align-self: center;
    box-sizing: border-box;
}

.product-card:hover {
    height: 530px;
    margin: 0 auto;
    box-shadow: 0px 13px 21px -5px rgba(0, 0, 0, 0.3);
    transition: all 100ms ease-out;
    z-index: 10;
}

/* Переопределение высот товаров (чтобы товары всегда были чуть больше категорий) */
@media (max-width: 850px) {
    .product-card {
        height: 500px;
    }

    .product-card:hover {
        height: 510px;
    }
}

@media (max-width: 768px) {
    .product-card {
        height: 480px;
    }

    .product-card:hover {
        height: 490px;
    }
}

@media (max-width: 690px) {
    .product-card {
        height: 460px;
    }

    .product-card:hover {
        height: 470px;
    }
}

@media (max-width: 480px) {
    .product-card {
        height: 420px;
    }

    .product-card:hover {
        height: 430px;
    }
}

@media (max-width: 410px) {
    .product-card {
        height: 360px;
    }

    .product-card:hover {
        height: 370px;
    }
}

.product-image {
    width: 100%;
    height: calc(100% - 100px);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 200ms ease-out;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 200ms ease-out;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover .product-image::before {
    opacity: 1;
    transition: all 200ms ease-out;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-card.product-2 .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-placeholder {
    font-size: 80px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.product-card:hover .product-placeholder {
    transform: scale(1.1);
}

.product-info {
    padding: 27px 35px 35px;
    text-align: left;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    background: #ffffff;
    box-sizing: border-box;
}

.product-price {
    font-size: 22px;
    font-weight: 600;
    font-family: 'Moyenage', serif;
    color: #393c45;
    margin: 0;
    float: right;
    letter-spacing: 0.5px;
}

.product-card::after {
    content: 'Add to Cart';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 19px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 0;
    width: 172px;
    opacity: 0;
    transition: all 200ms ease-out;
    pointer-events: none;
    z-index: 3;
    font-family: 'Moyenage', serif;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.product-card:hover::after {
    opacity: 1;
    width: 152px;
    font-size: 15px;
    transform: translate(-50%, -50%);
    transition: all 200ms ease-out;
    pointer-events: auto;
    cursor: pointer;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.product-card::after:hover {
    background: #ffffff;
    color: #333333;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.product-card.product-1:hover::after {
    text-shadow: 0 0 20px rgba(76, 175, 80, 1), 0 0 30px rgba(76, 175, 80, 0.6);
}

.product-card.product-1::after:hover {
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

.product-card.product-2:hover::after {
    text-shadow: 0 0 20px rgba(255, 107, 157, 1), 0 0 30px rgba(255, 107, 157, 0.6);
}

.product-card.product-2::after:hover {
    text-shadow: 0 0 15px rgba(255, 107, 157, 0.6);
}


@media (max-width: 850px) {
    .product-card {
        height: 520px;
    }

    .product-card:hover {
        height: 530px;
    }
}

@media (max-width: 690px) {
    .product-card {
        height: 600px;
    }

    .product-card:hover {
        height: 610px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 15px);
        left: -20px;
        right: -20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 20px;
        background-color: #000000;
        border-radius: 0 0 10px 10px;
        z-index: 21;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu .nav-link {
        width: 100%;
        padding: 12px 0;
    }

    .nav-menu .nav-link::after {
        bottom: 6px;
    }


    .banner-1 {
        height: 200px;
    }

    .banner-2 {
        height: 180px;
    }

    .side-block {
        display: none;
    }

    .center-image {
        left: 0;
        right: 0;
        width: 100%;
    }

    .product-card {
        height: 500px;
    }

    .product-card:hover {
        height: 510px;
    }
}

@media (max-width: 700px) {
    .main-content {
        margin-top: 220px;
    }
}

@media (max-width: 400px) {
    .main-content {
        margin-top: 200px;
    }
}

@media (max-width: 350px) {
    .main-content {
        margin-top: 160px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px 10px;
    }

    .header {
        padding: 10px 15px;
    }

    .nav-menu {
        top: calc(100% + 10px);
        left: -15px;
        right: -15px;
        padding: 8px 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .side-block {
        display: none;
    }

    .center-image {
        left: 0;
        right: 0;
        width: 100%;
    }

    .product-card {
        height: 600px;
    }

    .product-card:hover {
        height: 610px;
    }
}

@media (max-width: 1600px) {
    .side-block {
        display: none;
    }

    .center-image {
        left: 0;
        right: 0;
        width: 100%;
    }
}

@media (max-width: 1000px) {
    .center-image {
        height: auto;
    }

    .center-image img {
        object-fit: contain;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 410px) {
    .product-card {
        height: 300px;
    }

    .product-card:hover {
        height: 310px;
    }

    .product-info {
        padding: 15px 20px 20px;
    }

    .product-price {
        font-size: 18px;
    }
}
