.market-home {
    padding: 24px 24px 0;
}

.market-home__hero,
.catalog-shelf {
    max-width: var(--content-width);
    margin: 0 auto 24px;
}

.market-home__hero {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.market-home__hero-intro {
    max-width: 760px;
}

.market-home__hero-intro span {
    color: rgba(252, 228, 77, 0.76);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-home__hero-intro h1 {
    margin: 10px 0 10px;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 0.96;
}

.market-home__hero-intro p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.62;
}

.market-home__hero-top {
    display: grid;
    grid-template-columns: minmax(0, 920px) 372px;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
}

.market-home__hero-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(17, 26, 39, 0.98), rgba(10, 17, 27, 1));
    box-shadow: var(--shadow-lg);
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
}

.market-home__hero-stage,
.market-home__hero-sidebar,
.market-home__hero-bottom {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.market-home__hero-stage {
    position: relative;
    width: 100%;
    max-width: 920px;
    aspect-ratio: 460 / 250;
    min-height: 0;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(252, 228, 77, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(17, 26, 39, 0.98), rgba(10, 17, 27, 1));
    justify-self: start;
}

.market-home__hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.market-home__hero-slide-shell {
    display: block;
    height: 100%;
    min-height: 100%;
}

.market-home__hero-slide-art {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

.market-home__hero-slide-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-home__hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(98deg, rgba(7, 10, 16, 0.94) 16%, rgba(7, 10, 16, 0.76) 43%, rgba(7, 10, 16, 0.22) 88%),
        linear-gradient(180deg, rgba(7, 10, 16, 0.08), rgba(7, 10, 16, 0.26));
}

.market-home__hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    max-width: min(61%, 520px);
    padding: 24px 26px 28px;
}

.market-home__hero-slide-head,
.market-home__hero-slide-tags,
.market-home__hero-actions,
.market-home__hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.market-home__hero-slide-head {
    align-items: center;
    margin-bottom: 18px;
}

.market-home__hero-slide-eyebrow {
    color: rgba(252, 228, 77, 0.76);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-home__hero-slide-eyebrow--featured {
    position: relative;
    z-index: 0;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(255, 241, 168, 0.98), rgba(252, 228, 77, 0.98) 52%, rgba(224, 176, 48, 0.98));
    color: rgba(18, 24, 34, 0.96);
    letter-spacing: 0.06em;
    line-height: 1.05;
    clip-path: polygon(2% 0, 4% 7%, 6% 1%, 8% 9%, 10% 2%, 12% 8%, 14% 1%, 16% 10%, 18% 2%, 20% 9%, 22% 1%, 24% 8%, 26% 2%, 28% 10%, 30% 3%, 32% 9%, 34% 1%, 36% 10%, 38% 2%, 40% 9%, 42% 1%, 44% 10%, 46% 3%, 48% 8%, 50% 2%, 52% 9%, 54% 1%, 56% 10%, 58% 2%, 60% 9%, 62% 1%, 64% 8%, 66% 2%, 68% 10%, 70% 3%, 72% 9%, 74% 1%, 76% 10%, 78% 2%, 80% 9%, 82% 1%, 84% 8%, 86% 2%, 88% 10%, 90% 3%, 92% 9%, 94% 1%, 96% 8%, 98% 0, 100% 6%, 97% 13%, 100% 19%, 96% 27%, 100% 35%, 95% 43%, 99% 50%, 94% 57%, 100% 66%, 96% 74%, 100% 83%, 97% 91%, 100% 98%, 98% 100%, 95% 92%, 93% 99%, 90% 90%, 88% 98%, 85% 89%, 83% 100%, 80% 91%, 78% 97%, 75% 88%, 73% 99%, 70% 90%, 68% 96%, 65% 87%, 63% 98%, 60% 89%, 58% 97%, 55% 88%, 53% 100%, 50% 90%, 47% 98%, 44% 87%, 42% 96%, 39% 89%, 37% 99%, 34% 88%, 32% 97%, 29% 90%, 27% 100%, 24% 89%, 22% 98%, 19% 87%, 17% 99%, 14% 91%, 12% 100%, 9% 90%, 7% 98%, 4% 92%, 1% 100%, 0 95%, 3% 87%, 0 79%, 4% 71%, 0 63%, 5% 55%, 1% 50%, 4% 41%, 0 33%, 4% 24%, 0 16%, 3% 8%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.market-home__hero-slide-eyebrow--featured::before,
.market-home__hero-slide-eyebrow--featured::after {
    content: "";
    position: absolute;
    clip-path: inherit;
}

.market-home__hero-slide-eyebrow--featured::before {
    inset: -4px;
    z-index: -2;
    background: rgba(255, 250, 232, 0.98);
}

.market-home__hero-slide-eyebrow--featured::after {
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.42), transparent 36%);
}

.market-home__hero-slide-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.market-home__hero-slide h1 {
    max-width: none;
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3.7vw, 3rem);
    line-height: 1.04;
    padding-bottom: 0.08em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.market-home__hero-slide p {
    max-width: 42ch;
    margin-bottom: 12px;
    color: rgba(241, 245, 249, 0.84);
    font-size: 0.9rem;
    line-height: 1.48;
}

.market-home__hero-slide-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 10px;
}

.market-home__hero-slide-discount {
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(252, 228, 77, 0.18);
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 900;
}

.market-home__hero-slide-price strong {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1;
}

.market-home__hero-slide-price span:last-child {
    color: rgba(241, 245, 249, 0.56);
    font-size: 1rem;
    text-decoration: line-through;
}

.market-home__hero-slide-tags {
    margin-bottom: 12px;
}

.market-home__hero-slide-tags span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(4, 8, 14, 0.34);
    color: rgba(241, 245, 249, 0.86);
    font-size: 0.82rem;
    font-weight: 700;
}

.market-home__hero-actions .market-button {
    min-width: 180px;
    justify-content: center;
}

.market-home__hero-dots {
    position: absolute;
    z-index: 2;
    display: flex;
    gap: 10px;
}
.market-home__hero-dot {
    border: 0;
    cursor: pointer;
}

.market-home__hero-dots {
    right: 16px;
    bottom: 16px;
}

.market-home__hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.market-home__hero-dot.is-active {
    background: var(--yellow);
}

.market-home__hero-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.market-home__hero-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    gap: 12px;
}

.market-home__hero-nav-item {
    position: relative;
    display: grid;
    grid-template-columns: 166px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    flex: 1 1 0;
    min-height: 0;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.market-home__hero-nav-item--featured {
    background:
        linear-gradient(180deg, rgba(252, 228, 77, 0.08), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(252, 228, 77, 0.24);
    box-shadow: 0 0 20px rgba(252, 228, 77, 0.12), inset 0 0 0 1px rgba(252, 228, 77, 0.08);
}

.market-home__hero-nav-item--featured::before {
    content: none;
}

.market-home__hero-nav-item:hover,
.market-home__hero-nav-item.is-active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.06));
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.market-home__hero-nav-item--featured:hover,
.market-home__hero-nav-item--featured.is-active {
    background:
        linear-gradient(180deg, rgba(252, 228, 77, 0.12), rgba(255, 255, 255, 0.07)),
        rgba(255, 255, 255, 0.06);
    border-color: rgba(252, 228, 77, 0.38);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(252, 228, 77, 0.12);
}

.market-home__hero-nav-media {
    width: 166px;
    min-height: 100%;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.market-home__hero-nav-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.market-home__hero-nav-copy span {
    display: block;
    margin-bottom: 4px;
    color: rgba(252, 228, 77, 0.72);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-home__hero-nav-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
    line-height: 1.28;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.market-home__hero-nav-copy em {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.35;
}

.market-home__hero-nav-copy small {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
}

.market-home__hero-nav-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px 16px 14px 0;
}

.market-home__hero-nav-copy small {
    margin-top: auto;
}

.market-home__hero-bottom {
    overflow: hidden;
    padding: 8px 10px;
    border-radius: 28px;
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 22px rgba(3, 8, 16, 0.16);
    background:
        radial-gradient(circle at top left, rgba(99, 115, 129, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(24, 36, 53, 0.88), rgba(14, 22, 35, 0.82)),
        rgba(10, 18, 30, 0.82);
}

.market-home__trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.market-home__trust-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 10px 18px;
    background: transparent;
}

.market-home__trust-card::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;
    width: 1px;
    height: calc(100% - 28px);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.market-home__trust-card:last-child::after {
    content: none;
}

.market-home__trust-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(34, 46, 62, 0.94), rgba(23, 32, 45, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: rgba(213, 186, 111, 0.88);
}

.market-home__trust-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.market-home__trust-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.market-home__trust-copy strong {
    color: rgba(245, 247, 251, 0.96);
    font-size: clamp(1.5rem, 1.95vw, 1.82rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.96;
}

.market-home__trust-copy span {
    color: rgba(206, 214, 227, 0.86);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.22;
}

.market-home__trust-copy small {
    max-width: 25ch;
    color: rgba(137, 149, 166, 0.9);
    font-size: 0.78rem;
    line-height: 1.25;
}

@media (max-width: 1180px) {
    .market-home__hero-top {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .market-home__hero-sidebar {
        order: 0;
    }

    .market-home__hero-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
    }

    .market-home__trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 2px;
    }

    .market-home__trust-card {
        padding-inline: 14px;
    }

    .market-home__trust-card::after {
        content: none;
    }

}

@media (max-width: 860px) {
    .market-home__hero-slide-shell {
        min-height: 100%;
    }

    .market-home__hero-slide h1 {
        max-width: none;
    }

    .market-home__hero-slide-content {
        max-width: min(72%, 500px);
        padding: 18px 18px 20px;
    }

    .market-home__hero-nav {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {
    .market-home {
        padding: 20px 18px 0;
    }

    .market-home__hero {
        gap: 14px;
    }

    .market-home__hero-stage {
        border-radius: 28px;
    }

    .market-home__hero-intro h1 {
        margin: 8px 0;
    }

    .market-home__hero-intro p {
        font-size: 0.92rem;
        line-height: 1.54;
    }

    .market-home__hero-slide-content {
        max-width: none;
        padding: 16px 16px 18px;
    }

    .market-home__hero-slide p {
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .market-home__hero-slide-tags {
        gap: 8px;
    }

    .market-home__hero-slide-tags span {
        padding: 8px 11px;
        font-size: 0.8rem;
    }

    .market-home__hero-actions .market-button {
        width: 100%;
    }

    .market-home__hero-dots {
        right: 12px;
        bottom: 12px;
    }

    .market-home__hero-nav-item {
        grid-template-columns: 138px minmax(0, 1fr);
    }

    .market-home__hero-nav-media {
        width: 138px;
    }

    .market-home__hero-nav-copy {
        padding: 12px 14px 12px 0;
    }

    .market-home__hero-bottom {
        padding: 7px 8px;
        border-radius: 24px;
    }

    .market-home__trust-card {
        gap: 12px;
        min-height: 70px;
        padding: 10px;
    }

    .market-home__trust-icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .market-home__trust-icon svg {
        width: 21px;
        height: 21px;
    }

    .market-home__trust-copy strong {
        font-size: 1.22rem;
    }

    .market-home__trust-copy span {
        font-size: 0.82rem;
    }

    .market-home__trust-copy small {
        font-size: 0.7rem;
    }

}

@media (max-width: 620px) {
    .market-home__hero-bottom {
        padding: 8px;
    }

    .market-home__trust-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .market-home__trust-card {
        min-height: 0;
        padding: 11px 12px;
    }
}
