html,
body {
    width: 100%;
    min-width: 320px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.index-page {
    background: #1b193b;
    color: #ffffff;
    font-family: Inter, Arial, ui-sans-serif, system-ui, sans-serif;
}

.index-page *,
.index-page *::before,
.index-page *::after {
    box-sizing: border-box;
}

.home-main {
    width: 100%;
    padding-bottom: 86px;
    background: #1b193b;
}

.home-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.home-slider-section,
.home-section {
    width: calc(100% - 32px);
    max-width: 1320px;
    margin: 0 auto;
}

.home-slider-section {
    padding-top: 28px;
}

.home-slider {
    --slide-width: 708px;
    --slide-height: 390px;
    --slide-gap: 10px;

    position: relative;
    height: var(--slide-height);
    overflow: hidden;
    touch-action: pan-y;
}

.home-slide {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: var(--slide-width);
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    opacity: 0;
    filter: brightness(.46) saturate(.78);
    pointer-events: none;
    transform: translate3d(-50%, 0, 0) scale(.96);
    transition:
        transform .62s cubic-bezier(.22, .8, .24, 1),
        opacity .45s ease,
        filter .45s ease;
}

.home-slide a,
.home-slide img {
    width: 100%;
    height: 100%;
    display: block;
}

.home-slide img {
    object-fit: cover;
    object-position: center;
}

.home-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    pointer-events: none;
}

.home-slide.is-active {
    z-index: 3;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0) scale(1);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
}

.home-slide.is-active::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, .02),
        rgba(0, 0, 0, .16)
    );
}

.home-slide.is-prev {
    z-index: 2;
    opacity: 1;
    transform: translate3d(
        calc(-50% - var(--slide-width) - var(--slide-gap)),
        0,
        0
    ) scale(.965);
}

.home-slide.is-next {
    z-index: 2;
    opacity: 1;
    transform: translate3d(
        calc(-50% + var(--slide-width) + var(--slide-gap)),
        0,
        0
    ) scale(.965);
}

.home-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 0 18px rgba(255, 255, 255, .24);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.home-slider-arrow:hover {
    background: rgba(255, 255, 255, .17);
}

.home-slider-arrow svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-slider-arrow.is-prev {
    left: calc(50% - var(--slide-width) / 2 - 38px);
}

.home-slider-arrow.is-next {
    right: calc(50% - var(--slide-width) / 2 - 38px);
}

.home-slider-dots {
    display: none;
}

.home-section {
    padding-top: 72px;
}

.home-section-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.home-section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.03em;
}

.home-section-heading > a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
}

.home-section-heading > a:hover {
    color: #ffffff;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.home-product-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #13122a;
    display: flex;
    flex-direction: column;
}

.home-product-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 245 / 340;
    overflow: hidden;
    background: #0e0d29;
}

.home-product-poster > a {
    position: absolute;
    inset: 0;
    color: inherit;
    text-decoration: none;
    display: block;
}

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

.home-product-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 42%,
        #000000
    );
    pointer-events: none;
}

.home-product-platform {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.home-product-discount {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ff4a4a;
    color: #ffffff;
    font-size: 12px;
    line-height: 24px;
    font-weight: 700;
}

.home-product-bookmark {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 4;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .78));
}

.home-product-bookmark svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-product-bookmark.is-active {
    color: #ff4a4a;
}

.home-product-bookmark.is-active svg {
    fill: currentColor;
}

.home-product-body {
    min-height: 166px;
    padding: 13px 10px 11px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.home-product-title {
    min-height: 38px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-spacer {
    width: 100%;
    height: 1px;
    margin: auto 0 14px;
    background: rgba(255, 255, 255, .12);
}

.home-product-prices {
    min-height: 25px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.home-product-prices strong {
    color: #ffffff;
    font-size: 21px;
    line-height: 1;
    font-weight: 550;
    white-space: nowrap;
}

.home-product-prices span {
    color: rgba(255, 255, 255, .34);
    font-size: 12px;
    line-height: 1;
    text-decoration: line-through;
    white-space: nowrap;
}

.home-product-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
}

.home-product-cart,
.home-product-actions > a {
    height: 36px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-product-cart {
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .88);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.home-product-cart.is-active {
    border-color: #ffffff;
    background: #ffffff;
    color: #13122a;
}

.home-product-cart svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-product-actions > a {
    background: #31af7c;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.home-product-cart:hover,
.home-product-actions > a:hover,
.home-product-bookmark:hover {
    opacity: .88;
}

.home-gift-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-gift-card {
    position: relative;
    width: 100%;
    aspect-ratio: 318 / 190;
    min-height: 150px;
    overflow: hidden;
    border-radius: 10px;
    background: #13122a;
    color: #ffffff;
    text-decoration: none;
    display: block;
    isolation: isolate;
}

.home-gift-card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition:
        transform .22s ease,
        filter .22s ease;
}

.home-gift-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: rgba(0, 0, 0, .08);
    pointer-events: none;
    transition: background .22s ease;
}

.home-gift-card-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 18px;
    display: flex;
    visibility: visible;
    opacity: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #ffffff;
    text-align: center;
    pointer-events: none;
}

.home-gift-card-title,
.home-gift-card-subtitle {
    position: relative;
    z-index: 4;
    display: block;
    visibility: visible;
    opacity: 1;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: Inter, Arial, ui-sans-serif, system-ui, sans-serif;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    text-align: center;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, .75),
        0 4px 16px rgba(0, 0, 0, .45);
}

.home-gift-card:hover .home-gift-card-image {
    transform: scale(1.025);
    filter: brightness(.88);
}

.home-gift-card:hover .home-gift-card-overlay {
    background: rgba(0, 0, 0, .17);
}

.home-empty {
    padding: 24px;
    border-radius: 7px;
    background: #13122a;
    color: rgba(255, 255, 255, .56);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .home-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 958px) {
    .home-main {
        padding-bottom: 68px;
    }

    .home-slider-section {
        width: 100%;
        padding-top: 0;
    }

    .home-slider {
        width: 100%;
        height: clamp(280px, 55.12vw, 528px);
    }

    .home-slide,
    .home-slide.is-prev,
    .home-slide.is-next,
    .home-slide.is-active {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        opacity: 0;
        filter: none;
        box-shadow: none;
        pointer-events: none;
        transform: scale(1.025);
        transition:
            opacity .34s ease,
            transform .5s ease;
    }

    .home-slide.is-active {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

    .home-slide::after,
    .home-slide.is-active::after {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, .03),
            rgba(0, 0, 0, .22)
        );
    }

    .home-slider-arrow {
        display: none;
    }

    .home-slider-dots {
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .home-slider-dots button {
        width: 11px;
        height: 11px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, .12);
        cursor: pointer;
    }

    .home-slider-dots button.is-active {
        background: #31af7c;
    }

    .home-section {
        width: calc(100% - 20px);
        padding-top: 54px;
    }

    .home-section-heading {
        margin-bottom: 20px;
    }

    .home-section-heading h2 {
        font-size: 26px;
    }

    .home-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .home-gift-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-gift-card {
        min-height: 112px;
        border-radius: 8px;
    }

    .home-gift-card-title,
    .home-gift-card-subtitle {
        font-size: 19px;
    }
}

@media (max-width: 680px) {
    .home-section {
        padding-top: 50px;
    }

    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-product-body {
        min-height: 158px;
        padding: 10px 8px;
    }

    .home-product-actions {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .home-gift-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-gift-card {
        min-height: 100px;
        border-radius: 8px;
    }

    .home-gift-card-content {
        padding: 10px;
    }

    .home-gift-card-title,
    .home-gift-card-subtitle {
        font-size: 17px;
        line-height: 1.28;
    }
}

@media (max-width: 390px) {
    .home-slider {
        height: 280px;
    }

    .home-section {
        width: calc(100% - 16px);
        padding-top: 48px;
    }

    .home-section-heading h2 {
        font-size: 24px;
    }

    .home-section-heading > a {
        font-size: 12px;
    }

    .home-gift-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-gift-card {
        min-height: 96px;
    }

    .home-gift-card-title,
    .home-gift-card-subtitle {
        font-size: 15px;
    }
}