html {
    background: #1a1a1a;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    margin: 0;
    width: 100%;
}

.home-hero {
    text-align: center;
    padding: 48px 0 36px;
}

.home-hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.home-hero__subtitle {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.65;
    color: #b5b5c3;
}

.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    background: #028578;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-cta:hover {
    background: #02b5a5;
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.home-cta:active {
    background: #027a6f;
}

.home-cta:focus-visible {
    outline: 2px solid rgba(2, 181, 165, 0.65);
    outline-offset: 3px;
}

.home-cta__arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.home-cta:hover .home-cta__arrow {
    transform: translateX(4px);
}

.home-cta__meta {
    display: block;
    margin-top: 14px;
    font-size: 0.82rem;
    color: #8e8e9a;
    letter-spacing: 0.04em;
}

.home-section {
    padding: 28px 0 40px;
}

.home-section:has(+ .home-about) {
    padding-bottom: 0;
}

.home-section:has(+ .home-about) > .home-highlight:last-child {
    padding-bottom: 0;
}

.home-about + .cheats-menu-section.home-section {
    padding-top: 0;
}

.home-section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 6px;
    margin-bottom: 14px;
}

.home-section__title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.home-section__subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #8e8e9a;
    max-width: 720px;
}

.home-section__link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8e8e9a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(142, 142, 154, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.home-section__link:hover {
    color: #02b5a5;
    border-bottom-color: rgba(2, 181, 165, 0.55);
    gap: 8px;
}

.home-popular-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.home-product-card {
    --card-surface: #1b1d1d;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--card-surface);
    border: 1px solid rgba(2, 181, 165, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    isolation: isolate;
    transform: translateZ(0);
}

.home-product-card:hover {
    transform: translateY(-6px) translateZ(0);
    border-color: rgba(2, 181, 165, 0.55);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38), 0 0 28px rgba(2, 181, 165, 0.1);
}

.home-product-card__media {
    position: relative;
    height: 112px;
    overflow: hidden;
    background: var(--card-surface);
    transform: translateZ(0);
}

.home-product-card__media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--card-surface);
    z-index: 3;
    pointer-events: none;
}

.home-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.06);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: transform 0.35s ease;
    will-change: transform;
}

.home-product-card:hover .home-product-card__media img {
    transform: scale(1.1);
}

.home-product-card__fade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, transparent 0%, transparent 52%, rgba(27, 29, 29, 0.55) 78%, var(--card-surface) 96%, var(--card-surface) 100%),
        linear-gradient(135deg, rgba(2, 181, 165, 0.1) 0%, rgba(0, 0, 0, 0.22) 100%);
    pointer-events: none;
}

.home-product-card__body {
    position: relative;
    z-index: 4;
    margin-top: -2px;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--card-surface) 0%, #141616 100%);
}

.home-product-card__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.home-product-card__category {
    font-size: 0.75rem;
    color: #02b5a5;
    font-weight: 500;
    line-height: 1.15;
}

.home-product-card__price {
    margin-top: 4px;
    padding-top: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.home-product-card__price .price-label {
    color: #8e8e9a;
    font-size: 0.75rem;
    font-weight: 500;
}

.home-product-card__price .price-value {
    color: #02b5a5;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-product-card__price .price-alt,
.home-product-card__price .price-usd {
    color: #8e8e9a;
    font-size: 0.75rem;
    font-weight: 400;
}

.home-product-card__price small {
    color: #8e8e9a;
    font-weight: 500;
}

.home-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 18px 0;
}

.home-highlight--reverse .home-highlight__visual {
    order: 2;
}

.home-highlight--reverse .home-highlight__body {
    order: 1;
}

.home-highlight__visual {
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(2, 181, 165, 0.18);
    background:
        radial-gradient(circle at 20% 20%, rgba(2, 181, 165, 0.22), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.35)),
        #151515;
    position: relative;
    isolation: isolate;
}

.home-visual-fx::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 42%,
        rgba(2, 181, 165, 0.025) 50%,
        transparent 58%
    );
    background-size: 220% 100%;
    animation: home-fx-shimmer 12s ease-in-out infinite;
}

.home-visual-fx__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

/* Quality — full-frame shield glow + scan */
.home-fx-shield-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 72% 78% at 50% 40%, rgba(2, 181, 165, 0.14), transparent 72%),
        radial-gradient(ellipse 95% 90% at 50% 50%, rgba(2, 181, 165, 0.06), transparent 88%);
    animation: home-fx-breathe 4.5s ease-in-out infinite;
}

.home-fx-beam {
    position: absolute;
    pointer-events: none;
}

.home-fx-beam--v {
    top: 0;
    bottom: 0;
    width: 1px;
    left: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 181, 165, 0.55), transparent);
    box-shadow: 0 0 8px rgba(2, 181, 165, 0.35);
    opacity: 0;
    animation: home-fx-beam-h 7s ease-in-out infinite;
}

.home-fx-sweep--soft {
    opacity: 0.65;
    animation-duration: 9s;
}

/* Discounts — soft light sweep */
.home-fx-sweep {
    position: absolute;
    inset: -40%;
    background: linear-gradient(
        108deg,
        transparent 44%,
        rgba(2, 181, 165, 0.07) 49.5%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(2, 181, 165, 0.07) 50.5%,
        transparent 56%
    );
    animation: home-fx-sweep 8s ease-in-out infinite;
}

/* Support — expanding signal rings */
.home-fx-pulse-ring {
    position: absolute;
    left: 58%;
    top: 42%;
    width: 90px;
    height: 90px;
    margin: -45px 0 0 -45px;
    border-radius: 50%;
    border: 1px solid rgba(2, 181, 165, 0.28);
    animation: home-fx-ring-out 4s ease-out infinite;
}

.home-fx-pulse-ring--delay {
    animation-delay: 2s;
}

/* About — map radar + horizontal scan (no dots) */
.home-visual-fx__overlay--about {
    clip-path: inset(0 0 48% 0);
}

.home-fx-map-radar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 55%;
    max-width: 320px;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(2, 181, 165, 0.22) 18deg,
        transparent 36deg
    );
    opacity: 0.45;
    mask: radial-gradient(circle, #000 18%, transparent 62%);
    -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%);
    animation: home-fx-radar-spin 5s linear infinite;
}

.home-fx-map-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    top: 0;
    background: linear-gradient(90deg, transparent 5%, rgba(2, 181, 165, 0.55) 50%, transparent 95%);
    box-shadow: 0 0 10px rgba(2, 181, 165, 0.35);
    opacity: 0;
    animation: home-fx-map-scan 6s linear infinite;
}

@keyframes home-fx-beam-h {
    0%, 100% {
        left: 8%;
        opacity: 0;
    }
    8% {
        opacity: 0.45;
    }
    92% {
        opacity: 0.45;
    }
    100% {
        left: 92%;
        opacity: 0;
    }
}

@keyframes home-fx-breathe {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

@keyframes home-fx-sweep {
    0%, 100% {
        transform: translateX(-18%) rotate(0deg);
    }
    50% {
        transform: translateX(18%) rotate(0deg);
    }
}

@keyframes home-fx-ring-out {
    0% {
        transform: scale(0.55);
        opacity: 0.55;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

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

@keyframes home-fx-map-scan {
    0% {
        top: 0;
        opacity: 0;
    }
    6% {
        opacity: 0.55;
    }
    94% {
        opacity: 0.55;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes home-fx-shimmer {
    0%, 100% {
        background-position: 120% 0;
    }
    50% {
        background-position: -20% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-visual-fx::before,
    .home-fx-shield-glow,
    .home-fx-beam,
    .home-fx-sweep,
    .home-fx-sweep,
    .home-fx-pulse-ring,
    .home-fx-map-radar,
    .home-fx-map-scan {
        animation: none;
        opacity: 0;
    }
}

.home-highlight__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
}

.home-highlight__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(2, 181, 165, 0.35);
    color: #02b5a5;
    font-size: 0.78rem;
    font-weight: 600;
}

.home-highlight__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 181, 165, 0.14);
    border: 1px solid rgba(2, 181, 165, 0.28);
    color: #02b5a5;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.home-highlight__title {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.home-highlight__text {
    color: #b5b5c3;
    line-height: 1.7;
    font-size: 1rem;
}

.home-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin: 60px 0;
    padding: 0;
}

.home-about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-about__visual {
    min-height: 220px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(2, 181, 165, 0.2);
    background: #111;
    position: relative;
}

.home-about__visual img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.home-about__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.home-about__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

.home-about__text {
    color: #b5b5c3;
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 14px;
}

.home-about__text:last-child {
    margin-bottom: 0;
}

.home-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.home-catalog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 20px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(2, 181, 165, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.home-catalog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 181, 165, 0.55);
    background: rgba(2, 181, 165, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.home-catalog-card.hidden {
    display: none;
}

.home-catalog-card__name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.home-catalog-card__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(2, 181, 165, 0.14);
    border: 1px solid rgba(2, 181, 165, 0.28);
    color: #02b5a5;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-catalog-card__price {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

.home-catalog-card__count {
    font-size: 0.84rem;
    color: #8e8e9a;
}

.home-show-more {
    display: block;
    margin: 22px auto 0;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid rgba(2, 181, 165, 0.35);
    background: rgba(2, 181, 165, 0.08);
    color: #02b5a5;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-show-more:hover {
    background: rgba(2, 181, 165, 0.16);
    border-color: #02b5a5;
}

.home-telegram {
    margin: 18px 0 40px;
    padding: 28px 24px;
    border-radius: 18px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(2, 181, 165, 0.16), transparent 42%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(2, 181, 165, 0.24);
}

.home-telegram__title {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
}

.home-telegram .home-cta {
    min-width: 0;
    max-width: 100%;
    padding: 0 20px;
    font-size: 0.92rem;
}

.home-telegram__text {
    max-width: 640px;
    margin: 0 auto 18px;
    color: #b5b5c3;
    line-height: 1.65;
}

@media (max-width: 1200px) {
    .home-popular-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .home-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-highlight,
    .home-about {
        grid-template-columns: 1fr;
    }

    .home-highlight--reverse .home-highlight__visual,
    .home-highlight--reverse .home-highlight__body {
        order: initial;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .home-hero {
        padding-top: 8px;
    }

    .home-popular-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .home-product-card {
        min-width: min(72vw, 240px);
        scroll-snap-align: start;
    }

    .home-section__head {
        column-gap: 12px;
        row-gap: 5px;
        margin-bottom: 12px;
    }

    .home-section__link {
        font-size: 0.84rem;
    }

    .home-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-visual-fx::before,
    .home-visual-fx__overlay > * {
        animation: none !important;
        opacity: 0 !important;
    }

    .home-product-card,
    .home-product-card:hover {
        transform: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    .home-below-fold .home-visual-fx {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-product-card,
    .home-product-card__media img,
    .home-catalog-card,
    .home-cta,
    .home-cta__arrow {
        transition: none;
    }

    .home-cta:hover .home-cta__arrow {
        transform: none;
    }
}
