/* ===== ЛЭЙАУТ: магазин слева, виджеты справа ===== */
main.container.Index-module__wrapper,
main.Index-module__wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 18px !important;
    background: transparent !important;
}

/* Магазин занимает всё свободное место */
.Shop-module__wrapper {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Виджеты справа */
.Widgets-module__wrapper {
    order: 2 !important;
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    margin-left: auto !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* На мобилках возвращаем вниз */
@media (max-width: 980px) {
    main.container.Index-module__wrapper,
    main.Index-module__wrapper {
        flex-direction: column !important;
    }

    .Widgets-module__wrapper {
        order: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }
}

/* =========================================
   RUST MOSCOW — BIRD STYLE V3
   ========================================= */

:root {
    --bg-main: #0b0f14;
    --bg-panel: #121821;
    --bg-card: #171e27;
    --bg-card-2: #141a22;

    --text-main: #eef3f8;
    --text-soft: rgba(238,243,248,0.65);

    --border: rgba(255,255,255,0.06);

    --accent: #4aa3ff;
    --green: #39d353;

    --radius: 14px;
}

/* ===== ФОН ===== */
html,
body,
#root {
    background: radial-gradient(circle at top, #101722, #06080c 70%) !important;
    color: var(--text-main) !important;
}

/* ===== ПАНЕЛИ ===== */
.Shop-module__wrapper {
    background: var(--bg-panel) !important;
    border-radius: 18px !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45) !important;
}

/* ===== КАРТОЧКИ ===== */
.Product-module__wrapper {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2)) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.03) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02),
                0 10px 20px rgba(0,0,0,0.35) !important;
    transition: all 0.2s ease !important;
}

.Product-module__wrapper:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 35px rgba(0,0,0,0.5) !important;
}

/* Картинка */
.Product-module__img {
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent) !important;
    border-radius: 12px !important;
    padding: 10px !important;
}

/* Цена */
.Product-module__price {
    background: rgba(0,0,0,0.6) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

/* ===== КАТЕГОРИИ ===== */
.Categories-module__categories button {
    background: rgba(255,255,255,0.04) !important;
    border-radius: 10px !important;
    color: var(--text-soft) !important;
}

.Categories-module__categories button.active {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}

/* ===== МОДАЛКА ===== */

/* затемнение */
[class*="Modal-module__overlay"],
[class*="Popup-module__overlay"] {
    background: rgba(0,0,0,0.75) !important;
    backdrop-filter: blur(6px) !important;
}

/* окно */
[class*="Modal-module__content"],
[class*="Popup-module__content"],
[class*="ProductView"],
[class*="ProductInfo"] {
    background: linear-gradient(180deg, #1a222c, #121820) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6) !important;
    padding: 20px !important;
}

/* Кнопки в модалке */
[class*="Modal-module__content"] button {
    border-radius: 10px !important;
}

/* ЗЕЛЁНЫЕ кнопки как у Bird */
button[class*="primary"],
button[type="submit"] {
    background: linear-gradient(180deg, #39d353, #2ea043) !important;
    color: #fff !important;
    border: none !important;
}

/* ===== ТЕНЬ СЕТКИ ===== */
.Products-module__wrapper {
    position: relative !important;
}

.Products-module__wrapper::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(74,163,255,0.08), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.Product-module__wrapper {
    position: relative;
    z-index: 1;
}

/* ===== ЧИСТОЕ СКРУГЛЕНИЕ ===== */

/* Верхняя панель */
.headerContainer-module__wrapper {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22) !important;
}

/* Сам магазин */
.Shop-module__wrapper {
    border-radius: 18px !important;
    overflow: hidden !important;
}

/* Контейнер правой колонки */
.Widgets-module__wrapper {
    border-radius: 0 !important;
    overflow: visible !important;
}

/* Отдельные виджеты справа */
.Widgets-module__widgetWrapper {
    margin-bottom: 18px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: var(--bg-panel) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45) !important;
}

.Widgets-module__widgetWrapper:last-child {
    margin-bottom: 0 !important;
}

/* Верхние части блоков */
.Shop-module__header,
.boxHeader {
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Нижняя часть виджета */
.boxBody {
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
}

/* Поиск */
input,
input[type="text"],
input[type="search"] {
    border-radius: 10px !important;
}

/* Кнопки категорий */
.Categories-module__categories button,
.Categories-module__categories a {
    border-radius: 10px !important;
}

/* Карточки товаров */
.Product-module__wrapper {
    border-radius: 14px !important;
    overflow: hidden !important;
}

/* Картинка товара */
.Product-module__img {
    border-radius: 12px !important;
}

/* Цена */
.Product-module__price {
    border-radius: 8px !important;
}

/* Кнопки */
button,
a[role="button"] {
    border-radius: 10px !important;
}

/* Текст в верхней панели */
.headerContainer-module__wrapper a,
.headerContainer-module__wrapper span,
.headerContainer-module__wrapper button {
    color: rgba(255,255,255,0.9) !important;
}

/* ===== TELEGRAM ===== */

.tg-head-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: inherit !important;
    text-decoration: none !important;
    font: inherit !important;
}

.tg-icon {
    width: 14px !important;
    height: 14px !important;
    object-fit: contain !important;
}

.tg-body-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: #fff !important;
}

.tg-body-logo {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.tg-body-link span {
    font-size: 15px !important;
}