/* =========================================================
   SHOP PAGE
   ========================================================= */

.shop {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 100px;
    scroll-margin-top: 100px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    width: min(1400px, calc(100% - 48px));

    margin: 0 auto;

    padding: 70px 0 80px;

    border-bottom: 2px solid #111111;
}

.hero__inner {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(400px, 1.1fr);

    gap: 60px;

    align-items: center;
}

.hero__content {
    min-width: 0;
}

.hero__eyebrow {
    margin-bottom: 18px;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #315cff;
}

.hero__title {
    max-width: 800px;

    margin: 0;

    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 900;
    line-height: 0.88;

    letter-spacing: -0.065em;

    color: #111111;
}

.hero__description {
    max-width: 560px;

    margin: 28px 0 0;

    font-size: 16px;
    line-height: 1.55;

    color: #666666;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    min-width: 210px;
    min-height: 52px;

    margin-top: 32px;
    padding: 0 18px;

    border: 1px solid #111111;

    background: #315cff;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #ffffff;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.hero__btn::after {
    content: "→";

    margin-left: 30px;

    font-size: 20px;

    transition: transform 0.15s ease;
}

.hero__btn:hover {
    background: #111111;
}

.hero__btn:hover::after {
    transform: translateX(4px);
}

.hero__image {
    position: relative;

    width: 100%;

    aspect-ratio: 2693 / 1766;

    overflow: hidden;
}

.hero__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   PURCHASE FEED
   ========================================================= */

.feed {
    width: 100%;

    padding: 32px 0;

    border-bottom: 1px solid #111111;

    overflow: hidden;
}

.feed__inner {
    width: min(1400px, calc(100% - 48px));

    margin: 0 auto;
}

.feed__eyebrow {
    margin-bottom: 7px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.15em;
    text-transform: uppercase;

    color: #315cff;
}

.feed__title {
    margin: 0 0 18px;

    font-size: 22px;
    font-weight: 900;

    letter-spacing: -0.035em;

    color: #111111;
}

.feed__track {
    width: 100%;

    overflow: hidden;

    border-top: 1px solid #d4d3cf;
    border-bottom: 1px solid #d4d3cf;
}

.feed__scroll {
    display: flex;

    width: max-content;

    gap: 0;

    animation: shopFeedScroll 45s linear infinite;
}

.feed__scroll:hover {
    animation-play-state: paused;
}

@keyframes shopFeedScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.feed-item {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    min-height: 58px;

    padding: 0 22px;

    border-right: 1px solid #d4d3cf;

    background: #f5f4f0;
}

.feed-item__avatar {
    width: 32px;
    height: 32px;

    margin-right: 11px;

    flex-shrink: 0;

    overflow: hidden;

}

.feed-item__avatar img {
    display: block;

    width: 100%;
    height: 100%;

    image-rendering: pixelated;
}

.feed-item__text {
    font-size: 12px;
    line-height: 1.4;

    color: #666666;

    white-space: nowrap;
}

.feed-item__nickname {
    font-weight: 900;

    color: #111111;
}

.feed-item__product {
    font-weight: 800;

    color: #315cff;
}

.feed-item__price {
    margin-left: 18px;

    font-size: 12px;
    font-weight: 900;

    color: #111111;

    white-space: nowrap;
}

.feed-item__time {
    margin-left: 14px;

    font-size: 10px;

    color: #999999;

    white-space: nowrap;
}


/* =========================================================
   CURRENCY SECTION
   ========================================================= */

.currency-buyer-section {
    width: 100%;

    padding: 70px 0 0;
}

.currency-buyer-container {
    width: min(1400px, calc(100% - 48px));

    margin: 0 auto;
}


/* =========================================================
   SHOP LAYOUT
   ========================================================= */

.shop__layout {
    display: grid;

    grid-template-columns: 230px minmax(0, 1fr);

    gap: 55px;

    align-items: start;
}

.shop-sidebar {
    position: sticky;

    top: 105px;

    min-width: 0;
}

.shop-main {
    min-width: 0;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar-block {
    margin-bottom: 38px;
}

.sidebar-block__label {
    margin-bottom: 12px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #777777;
}

.sidebar-block__list {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.sidebar-block__btn {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 40px;

    padding: 0 12px;

    border: 0;

    background: transparent;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    text-align: left;

    color: #444444;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.sidebar-block__btn::before {
    content: "";

    width: 0;
    height: 2px;

    margin-right: 0;

    background: #315cff;

    transition:
        width 0.15s ease,
        margin-right 0.15s ease;
}

.sidebar-block__btn:hover {
    background: #e9e8e4;

    color: #111111;
}

.sidebar-block__btn.is-active {
    background: #111111;

    color: #ffffff;
}

.sidebar-block__btn.is-active::before {
    width: 8px;

    margin-right: 8px;

    background: #315cff;
}


/* =========================================================
   TOP PLAYERS
   ========================================================= */

.sidebar-block--top-players {
    padding-top: 24px;

    border-top: 1px solid #111111;
}

.sidebar-block--top-players .sidebar-block__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.top-player {
    display: grid;

    grid-template-columns: 25px 34px minmax(0, 1fr);

    gap: 9px;

    align-items: center;

    min-height: 54px;

    border-bottom: 1px solid #d8d7d3;
}

.top-player__rank {
    font-size: 10px;
    font-weight: 900;

    color: #999999;
}

.top-player__avatar {
    width: 32px;
    height: 32px;

    overflow: hidden;
}

.top-player__avatar img {
    display: block;

    width: 100%;
    height: 100%;

    image-rendering: pixelated;
}

.top-player__info {
    min-width: 0;
}

.top-player__name {
    overflow: hidden;

    font-size: 12px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;

    color: #111111;
}

.top-player__total {
    margin-top: 2px;

    font-size: 10px;
    font-weight: 700;

    color: #315cff;
}


/* =========================================================
   CONTACTS
   ========================================================= */

.sidebar-block--contacts {
    padding: 20px;

    border: 1px solid #111111;

    background: #111111;
}

.sidebar-block--contacts .sidebar-block__label {
    color: #ffffff;
}

.sidebar-block--contacts .sidebar-block__text {
    margin: 0 0 16px;

    font-size: 12px;
    line-height: 1.5;

    color: #aaaaaa;
}

.sidebar-block__link {
    display: inline-flex;
    align-items: center;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.05em;
    text-transform: uppercase;

    color: #ffffff;
}

.sidebar-block__link::after {
    content: "→";

    margin-left: 8px;

    color: #315cff;

    transition: transform 0.15s ease;
}

.sidebar-block__link:hover {
    color: #315cff;
}

.sidebar-block__link:hover::after {
    transform: translateX(4px);
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.shop-categories {
    margin-bottom: 28px;
    border-bottom: 2px solid #111111;
    overflow-x: auto;
    scrollbar-width: none;
}

.shop-categories::-webkit-scrollbar {
    display: none;
}

.shop-categories__list {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
}

.shop-categories__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #777777;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.shop-categories__btn:hover {
    background: #eeeeeb;
    color: #111111;
}

.shop-categories__btn.is-active {
    background: #315cff;
    color: #ffffff;
}


/* =========================================================
   PRODUCTS GRID
   ========================================================= */

.shop-products {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   EMPTY / NO RESULTS
   ========================================================= */

.shop-empty,
.shop-no-results {
    grid-column: 1 / -1;

    padding: 70px 30px;

    border-top: 1px solid #111111;
    border-bottom: 1px solid #111111;

    text-align: center;
}

.shop-empty__title,
.shop-no-results__title {
    margin-bottom: 8px;

    font-size: 28px;
    font-weight: 900;

    letter-spacing: -0.04em;

    color: #111111;
}

.shop-empty__text,
.shop-no-results__text {
    font-size: 13px;

    color: #777777;
}


/* =========================================================
   INFO BLOCK
   ========================================================= */

.info-block {
    width: min(1400px, calc(100% - 48px));

    margin: 0 auto;

    padding: 110px 0;
}

.info-block__inner {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 70px;

    align-items: center;

    padding-top: 70px;

    border-top: 2px solid #111111;
}

.info-block__content {
    min-width: 0;
}

.info-block__title {
    max-width: 600px;

    margin: 0 0 24px;

    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: 0.92;

    letter-spacing: -0.06em;

    color: #111111;
}

.info-block__text {
    max-width: 600px;

    margin: 0 0 28px;

    font-size: 15px;
    line-height: 1.65;

    color: #666666;
}

.info-block__list {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 0;

    margin: 0;
    padding: 0;

    list-style: none;

    border-top: 1px solid #d2d1cd;
}

.info-block__list li {
    min-height: 52px;

    padding: 15px 12px 15px 0;

    border-bottom: 1px solid #d2d1cd;

    font-size: 12px;
    font-weight: 800;

    color: #333333;
}

.info-block__image {
    position: relative;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    border: 1px solid #111111;

    background: #e5e4e0;
}

.info-block__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.info-block__image:hover img {
    transform: scale(1.025);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);

        gap: 40px;
    }

    .hero__title {
        font-size: clamp(46px, 6vw, 70px);
    }

    .shop__layout {
        grid-template-columns: 200px minmax(0, 1fr);

        gap: 32px;
    }

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


/* =========================================================
   TABLET / SMALL
   ========================================================= */

@media (max-width: 850px) {
    .hero {
        padding-top: 50px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__image {
        order: -1;
        max-width: 650px;
    }

    .shop__layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .sidebar-block {
        margin-bottom: 0;
    }

    .sidebar-block--top-players {
        padding-top: 0;
        border-top: 0;
    }

    .info-block__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-block__image {
        order: -1;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
    .hero,
    .shop,
    .info-block {
        width: calc(100% - 28px);
    }

    .feed__inner,
    .currency-buyer-container {
        width: calc(100% - 28px);
    }

    .hero {
        padding: 40px 0 50px;
    }

    .hero__title {
        font-size: clamp(40px, 12vw, 58px);
    }

    .hero__description {
        margin-top: 22px;

        font-size: 14px;
    }

    .hero__btn {
        width: 100%;
    }

    .hero__image {
        aspect-ratio: 1 / 1;
    }

    .feed {
        padding: 24px 0;
    }

    .feed__title {
        font-size: 19px;
    }

    .feed-item {
        min-height: 52px;

        padding: 0 16px;
    }

    .feed-item__time {
        display: none;
    }

    .currency-buyer-section {
        padding-top: 45px;
    }

    .shop {
        padding-top: 45px;
        padding-bottom: 70px;
    }

    .shop-categories {
        margin-bottom: 22px;

        overflow-x: auto;
    }

    .shop-categories__list {
        width: max-content;
        min-width: 100%;
    }

    .shop-categories__btn {
        padding: 0 13px;
    }

    .shop-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .info-block {
        padding: 70px 0;
    }

    .info-block__inner {
        padding-top: 45px;
    }

    .info-block__title {
        font-size: 42px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {
    .hero__eyebrow {
        font-size: 9px;
    }

    .hero__title {
        font-size: 39px;
    }

    .hero__description {
        font-size: 13px;
    }

    .shop {
        width: calc(100% - 24px);
    }

    .feed__inner,
    .currency-buyer-container {
        width: calc(100% - 24px);
    }

    .info-block {
        width: calc(100% - 24px);
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .feed__scroll {
        animation: none;
    }

    .hero__btn,
    .feed-item,
    .sidebar-block__btn,
    .shop-categories__btn,
    .info-block__image img {
        transition: none;
    }
}