* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: Comfortaa;
}

/* Для Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 10px;
    /* ширина скролла */
}

::-webkit-scrollbar-track {
    background: #0A1715;
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::-webkit-scrollbar-thumb {
    background: #18332C;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C98A4C;
}

/* Для Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #18332C #0A1715;
}


input:focus {
    outline: none;
    box-shadow: none;
}

/* Аналоговая микро-текстура рисовой бумаги (смягчает цифровые градиенты) */
.ghostea_texture_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
    mix-blend-mode: overlay;
    transform: translateZ(0);
}

img {
    user-select: none;
    /* нельзя выделять */
    -webkit-user-drag: none;
    /* нельзя перетаскивать */
}

.modal {
    width: 440px;
    max-width: 90vw;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(2, 35, 31, 0.95) 0%, rgba(0, 20, 17, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(252, 224, 180, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    color: #FCE0B4;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.title {
    color: #FCE0B4;
    font-size: 20px;
    font-weight: 700;
    font-family: Comfortaa, sans-serif;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.opisanie {
    color: rgba(252, 224, 180, 0.8);
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
    font-family: Nunito, sans-serif;
    margin-top: 18px;
    text-align: center;
}

.opisanie b {
    color: #ECBF8B;
    font-weight: 700;
}

.exit_modal_actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.button_exit_modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    font-size: 14px;
    font-family: Nunito, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 12px;
    border: 1px solid rgba(220, 80, 80, 0.45);
    color: #FFF0F0;
    background: linear-gradient(135deg, #A83232, #8A2525);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(168, 50, 50, 0.35);
    transition: all 0.2s ease;
}

.button_exit_modal:hover {
    background: linear-gradient(135deg, #BA3838, #9C2A2A);
    border-color: rgba(240, 90, 90, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 50, 50, 0.5);
}

.button_cancel_modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 14px;
    font-family: Nunito, sans-serif;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(230, 197, 148, 0.22);
    color: #F7EAD8;
    background: rgba(3, 20, 17, 0.65);
    cursor: pointer;
    transition: all 0.2s ease;
}

.button_cancel_modal:hover {
    background: rgba(230, 197, 148, 0.12);
    border-color: rgba(230, 197, 148, 0.45);
    color: #FFF;
}

.line_modal {
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 191, 139, 0.6), transparent);
    margin-top: 14px;
}

#exitModal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}


@font-face {
    font-family: "Comfortaa";
    src: url("fonts/Comfortaa-VariableFont_wght.woff2") format("woff2"),
         url("fonts/Comfortaa-VariableFont_wght.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.woff2") format("woff2"),
         url("fonts/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("truetype");
    font-display: swap;
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО БЕЗОПАСНОЙ АВТОРИЗАЦИИ TELEGRAM (С ЗАЩИТОЙ ДЛЯ РФ)
   ========================================================================== */

.auth_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 8, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.25s ease;
}

.auth_modal_card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(160deg, rgba(6, 28, 24, 0.96) 0%, rgba(2, 18, 15, 0.98) 100%);
    border: 1px solid rgba(230, 197, 148, 0.2);
    border-radius: 20px;
    padding: 34px 28px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    box-sizing: border-box;
    text-align: center;
    animation: scaleIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.auth_modal_close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(230, 197, 148, 0.08);
    border: 1px solid rgba(230, 197, 148, 0.15);
    color: rgba(247, 234, 216, 0.7);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth_modal_close:hover {
    background: rgba(230, 197, 148, 0.2);
    color: #FFFFFF;
}

.auth_modal_title {
    font-family: Comfortaa, sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #F7EAD8;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.auth_modal_subtitle {
    font-family: Nunito, sans-serif;
    font-size: 13.5px;
    color: rgba(247, 234, 216, 0.68);
    line-height: 1.55;
    margin: 0 0 20px;
}

/* VPN Notice Box */
.vpn_notice_box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(212, 155, 91, 0.08);
    border: 1px solid rgba(230, 197, 148, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    margin-bottom: 22px;
}

.vpn_notice_text {
    font-family: Nunito, sans-serif;
    font-size: 12px;
    color: rgba(247, 234, 216, 0.85);
    line-height: 1.5;
}

.vpn_notice_text b {
    color: #EED9BE;
}

/* Action Zone */
.auth_action_zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 52px;
}

.tg_login_action_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    border-radius: 14px;
    background: #258fcc;
    border: none;
    color: #FFFFFF;
    font-family: Nunito, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.35);
    transition: all 0.25s ease;
}

.tg_login_action_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(34, 158, 217, 0.5);
}

.tg_login_action_btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.auth_divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 2px 0;
}

.auth_divider::before,
.auth_divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(238, 217, 190, 0.15);
}

.auth_divider span {
    padding: 0 12px;
    font-size: 12px;
    color: rgba(247, 234, 216, 0.5);
    text-transform: lowercase;
    font-family: Nunito, sans-serif;
}

.vk_login_action_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    border-radius: 14px;
    background: #0077FF;
    border: none;
    color: #FFFFFF;
    font-family: Nunito, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
    transition: all 0.25s ease;
}

.tg_login_action_btn svg,
.vk_login_action_btn svg {
    flex-shrink: 0;
}

.vk_login_action_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 119, 255, 0.45);
    background: #006ce6;
}

.vk_login_action_btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.tg_spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tg_auth_status_msg {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: Nunito, sans-serif;
    font-size: 13px;
    box-sizing: border-box;
}

.tg_auth_status--loading {
    background: rgba(252, 224, 180, 0.08);
    color: #FCE0B4;
    border: 1px solid rgba(252, 224, 180, 0.15);
}

.tg_auth_status--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.telegram_widget_slot {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth_modal_footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(252, 224, 180, 0.1);
}

.direct_bot_link {
    font-family: Nunito, sans-serif;
    font-size: 12.5px;
    color: #ECBF8B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.direct_bot_link:hover {
    color: #FCE0B4;
    text-decoration: underline;
}

.auth_policy_notice {
    margin-top: 16px;
    font-family: Nunito, sans-serif;
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(247, 234, 216, 0.55);
    text-align: center;
}

.auth_policy_link {
    color: #FCE0B4;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s ease;
}

.auth_policy_link:hover {
    opacity: 0.8;
}

.modal {
    width: 440px;
    max-width: 90vw;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(2, 35, 31, 0.95) 0%, rgba(0, 20, 17, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(252, 224, 180, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    color: #FCE0B4;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.title {
    color: #FCE0B4;
    font-size: 20px;
    font-weight: 700;
    font-family: Comfortaa, sans-serif;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.opisanie {
    color: rgba(252, 224, 180, 0.8);
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
    font-family: Nunito, sans-serif;
    margin-top: 18px;
    text-align: center;
}

.opisanie b {
    color: #ECBF8B;
    font-weight: 700;
}

.button_exit_modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 36px;
    font-size: 14px;
    font-family: Nunito, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    border: none;
    color: #00312D;
    background: linear-gradient(100deg, #ECBF8B, #EFD6AE, #B07F31);
    margin-top: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(176, 127, 49, 0.35);
    transition: all 0.25s ease;
}

.button_exit_modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(176, 127, 49, 0.5);
}

.line_modal {
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 191, 139, 0.6), transparent);
    margin-top: 14px;
}




@font-face {
    font-family: "Comfortaa";
    src: url("fonts/Comfortaa-VariableFont_wght.woff2") format("woff2"),
         url("fonts/Comfortaa-VariableFont_wght.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.woff2") format("woff2"),
         url("fonts/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("truetype");
    font-display: swap;
}

.menu_left {
    width: 380px;
    max-width: 85vw;
    height: 100%;
    left: -400px;
    position: fixed;
    top: 0;
    background: linear-gradient(165deg, rgba(1, 28, 24, 0.96) 0%, rgba(0, 16, 13, 0.98) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid rgba(252, 224, 180, 0.15);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.65);
    z-index: 40;
    padding: 50px 30px;
    transition: left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

.bonus_menu_left {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.bonus_text_left {
    font-family: Nunito;
    font-size: 15px;
    font-weight: 800;
    color: #FCE0B4;
    text-decoration: none;
}

.bonusd_left_img {
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.bonusd_left_img img {
    width: 100%;
    height: 100%;
    display: block;
}

.menu_left.active {
    left: 0;
}

.line_gradient_menu {
    width: 100%;
    height: 1px;
    margin-top: 32px;
    background: linear-gradient(90deg, transparent, rgba(236, 191, 139, 0.5), transparent);
    margin-bottom: 32px;
}

.vkaldka_menu_left {
    color: rgba(252, 224, 180, 0.85);
    font-size: 20px;
    text-decoration: none;
    font-family: Comfortaa, sans-serif;
    font-weight: 700;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
}

.vkaldka_menu_left:hover {
    color: #FFE4A0;
    transform: translateX(6px);
}

.vkaldka_menu_left.vkaldka_menu_left--active {
    color: #ECBF8B;
    font-weight: 800;
    text-decoration: none;
}

#frukty {
    color: rgba(252, 224, 180, 0.35);
}

.exit_button {
    position: absolute;
    bottom: 30px;
    color: rgba(255, 122, 143, 0.85);
    font-size: 18px;
    font-family: Comfortaa, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.exit_button:hover {
    color: #ff7a8f;
    transform: translateX(4px);
}

.vkladka_menu_cont {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    cursor: pointer;
}

.titul_menu_text {
    color: #FCE0B4;
    font-size: 20px;
    margin-top: 20px;
}

.with_icon_menu_cont {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.icon_menu {
    width: 22px;
    height: 22px;
}

.icon_menu img {
    width: 100%;
    height: 100%;
}

.icon_text {
    color: #FCE0B4;
    font-size: 18px;
}

.line_menu {
    width: 50%;
    height: 2px;
    background-color: #FCE0B4;
}

.data_menu_left_cont {
    margin-left: 15px;
}

.login_menu_left {
    color: #FCE0B4;
    font-size: 22px;
    margin-top: 5px;
}

.id_menu_left {
    font-size: 14px;
    color: #FCE0B4;
    font-family: Nunito;
    margin-top: 5px;
}

.top_menu_left_cont {
    display: flex;
    cursor: pointer;
    text-decoration: none;
}

.ava_menu_left {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: #FCE0B4 solid 4px;
}

.ava_menu_left img {
    width: 100%;
    border-radius: 50%;
    height: 100%;
}

#AdminButton {
    display: none;
}

.temn {
    z-index: 39;
    background: rgba(0, 10, 8, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.temn_reg {
    z-index: 39;
    background: rgba(0, 10, 8, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal_redir {
    width: 440px;
    max-width: 90vw;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(2, 35, 31, 0.95) 0%, rgba(0, 20, 17, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(252, 224, 180, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    color: #FCE0B4;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.title_redir {
    color: #FCE0B4;
    font-size: 22px;
    font-weight: 700;
    font-family: Comfortaa, sans-serif;
    text-align: center;
}

.line_redir {
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 191, 139, 0.6), transparent);
    margin: 14px 0 18px;
}

.text_redir {
    color: rgba(252, 224, 180, 0.85);
    font-size: 14px;
    line-height: 1.6;
    font-family: Nunito, sans-serif;
    text-align: center;
}

.text_redir a {
    color: #ECBF8B;
    text-decoration: underline;
    font-weight: 700;
}

.redir_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 36px;
    font-size: 14px;
    font-family: Nunito, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    text-decoration: none;
    color: #00312D;
    background: linear-gradient(100deg, #ECBF8B, #EFD6AE, #B07F31);
    margin-top: 24px;
    box-shadow: 0 6px 20px rgba(176, 127, 49, 0.35);
    transition: all 0.25s ease;
}

.redir_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(176, 127, 49, 0.5);
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО ПРЕДУПРЕЖДЕНИЯ ОБ ОСТАТКАХ ТОВАРОВ (STOCK WARNING)
   ========================================================================== */

.stock_modal_card {
    position: relative;
    width: 460px;
    max-width: 92vw;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(2, 35, 31, 0.96) 0%, rgba(0, 20, 17, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(252, 224, 180, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    color: #FCE0B4;
    padding: 34px 28px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    animation: stockModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stockModalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stock_warning_icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(236, 191, 139, 0.12);
    border: 1px solid rgba(236, 191, 139, 0.3);
    color: #ECBF8B;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(236, 191, 139, 0.15);
}

.stock_modal_title {
    color: #FCE0B4;
    font-size: 21px;
    font-weight: 700;
    font-family: Comfortaa, sans-serif;
    text-align: center;
    line-height: 1.3;
}

.stock_modal_line {
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 191, 139, 0.6), transparent);
    margin: 14px 0 16px;
}

.stock_modal_text {
    color: rgba(252, 224, 180, 0.88);
    font-size: 15px;
    line-height: 1.6;
    font-family: Nunito, sans-serif;
    text-align: center;
    margin-bottom: 24px;
}

.stock_modal_text b {
    color: #FFE6BA;
    font-size: 16px;
}

.stock_modal_actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.stock_modal_apply_btn {
    width: 100%;
    max-width: 360px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-family: Nunito, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    border: none;
    color: #00312D;
    background: linear-gradient(100deg, #ECBF8B, #EFD6AE, #B07F31);
    box-shadow: 0 6px 20px rgba(176, 127, 49, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.stock_modal_apply_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(176, 127, 49, 0.5);
}

.stock_modal_apply_btn:active {
    transform: translateY(1px);
}

.stock_modal_catalog_btn {
    width: 100%;
    max-width: 360px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    font-size: 14px;
    font-family: Nunito, sans-serif;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(230, 197, 148, 0.25);
    color: #F7EAD8;
    background: rgba(3, 20, 17, 0.65);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.stock_modal_catalog_btn:hover {
    background: rgba(230, 197, 148, 0.12);
    border-color: rgba(230, 197, 148, 0.45);
    color: #FFF;
}

.podval_pc,
.podval_pad,
.podval_mobile {
    background: linear-gradient(180deg, rgba(0, 18, 14, 0.98) 0%, #000c09 100%) !important;
    border-top: 1px solid rgba(252, 224, 180, 0.12) !important;
}


/* ==========================================================================
   НОВАЯ ШАПКА GHOSTEA (С НАВИГАЦИЕЙ И ПРОФИЛЕМ)
   ========================================================================== */

.shapka {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-sizing: border-box;
    z-index: 100;
    background: rgba(10, 23, 21, 0.94);
    border-bottom: 1px solid rgba(230, 197, 148, 0.1);
    transition: all 0.25s ease;
}

.shapka--scrolled {
    height: 64px;
    background: #0A1715;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    border-bottom-color: rgba(230, 197, 148, 0.14);
}

.shapka--ghosteaapp {
    justify-content: center;
    background: rgba(0, 49, 45, 1) !important;
}

/* Логотип */
.logo {
    height: 46px;
    width: auto;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Навигация строго по центру экрана — уютная, чистая, без рамок-пилюль */
.shapka_nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 26px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    z-index: 2;
}

.shapka_nav_link {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 6px 0;
    border-radius: 0;
    background: transparent;
    color: rgba(247, 234, 216, 0.68);
    font-family: Nunito, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.shapka_nav_link:hover {
    color: #F7EAD8;
    background: transparent;
}

.shapka_nav_link.active {
    color: #F7EAD8;
    font-weight: 700;
    background: transparent;
}

.shapka_nav_link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #EED9BE;
    border-radius: 1px;
}

/* Десктопная компоновка шапки */
.shapka_top {
    display: contents;
}

.shapka_search_row {
    display: flex;
    align-items: center;
    order: 3;
    margin-left: auto;
}

/* Действия справа: Корзина + Профиль */
.shapka_actions {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 4;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Кнопка Корзины: скрыта по умолчанию для гостей */
.shapka_cart_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(230, 197, 148, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.shapka_cart_btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.shapka_cart_btn:hover {
    border-color: rgba(230, 197, 148, 0.45);
    background: rgba(230, 197, 148, 0.08);
    transform: translateY(-1px);
}

.shapka_cart_btn:hover img {
    transform: scale(1.06);
}

/* Слот профиля */
.shapka_user_slot {
    display: flex;
    align-items: center;
}

/* Кнопка Войти для гостей */
.shapka_login_btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(230, 197, 148, 0.22);
    color: #F7EAD8;
    font-family: Nunito, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shapka_login_btn .login_user_icon {
    flex-shrink: 0;
    color: #D49B5B;
}

.shapka_login_btn:hover {
    background: rgba(230, 197, 148, 0.08);
    border-color: rgba(230, 197, 148, 0.45);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Авторизованный профиль */
.shapka_user_profile {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 3px 10px 3px 3px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(230, 197, 148, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.shapka_user_profile:hover {
    border-color: rgba(230, 197, 148, 0.45);
    background: rgba(230, 197, 148, 0.08);
    transform: translateY(-1px);
}

.user_avatar_wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(230, 197, 148, 0.5);
    background: #00120D;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user_avatar_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user_meta_desktop {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user_name_text {
    font-family: Comfortaa, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #F7EAD8;
    line-height: 1.2;
    max-width: 95px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user_bonus_pill {
    font-family: Nunito, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #EED9BE;
    line-height: 1.2;
}

/* Адаптив под мобильные: 2 строки (строка 1: Лого + Навигация + Действия, строка 2: Поиск) */
@media (max-width: 860px) {
    .shapka {
        display: flex;
        flex-direction: column;
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
        padding-bottom: 16px;
        padding-left: 16px;
        padding-right: 16px;
        height: auto;
        min-height: auto;
        gap: 10px;
        background: rgba(10, 23, 21, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-sizing: border-box;
    }

    .shapka--scrolled {
        height: auto;
        background: #0A1715;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
        border-bottom-color: rgba(230, 197, 148, 0.16);
    }

    /* Верхняя строка */
    .shapka_top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 38px;
        position: relative;
    }

    .logo {
        height: 34px;
        order: 1;
        flex-shrink: 0;
    }

    .logo img {
        height: 100%;
        width: auto;
    }

    /* Навигация Чай / Посуда / Блог по центру верхней строки */
    .shapka_nav {
        display: flex !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        gap: 16px;
        align-items: center;
        order: 2;
        padding: 0;
        background: transparent;
        border: none;
        z-index: 2;
    }

    .shapka_nav_link {
        padding: 4px 0;
        font-size: 13.5px;
        font-weight: 500;
        color: rgba(247, 234, 216, 0.75);
    }

    .shapka_nav_link.active {
        color: #F7EAD8;
        font-weight: 700;
    }

    .desktop_nav_item {
        display: none !important;
    }

    /* Правая часть: Корзина и Профиль */
    .shapka_actions {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 3;
        margin-left: 0;
        flex-shrink: 0;
    }

    .shapka_cart_btn {
        width: 34px;
        height: 34px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid rgba(230, 197, 148, 0.22);
        background: rgba(247, 234, 216, 0.04);
        box-sizing: border-box;
    }

    .shapka_cart_btn:hover,
    .shapka_cart_btn:active {
        border-color: rgba(230, 197, 148, 0.45);
        background: rgba(230, 197, 148, 0.08);
    }

    .shapka_cart_btn img {
        width: 17px;
        height: 17px;
    }

    .user_meta_desktop {
        display: none !important;
    }

    .shapka_user_profile {
        width: 34px;
        height: 34px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid rgba(230, 197, 148, 0.22);
        background: rgba(247, 234, 216, 0.04);
        box-sizing: border-box;
    }

    .shapka_user_profile:hover,
    .shapka_user_profile:active {
        border-color: rgba(230, 197, 148, 0.45);
        background: rgba(230, 197, 148, 0.08);
    }

    .user_avatar_wrap {
        width: 26px;
        height: 26px;
        border-width: 1px;
    }

    .login_btn_text {
        display: none !important;
    }

    .shapka_login_btn {
        width: 34px;
        height: 34px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid rgba(230, 197, 148, 0.22);
        background: rgba(247, 234, 216, 0.04);
        box-sizing: border-box;
    }

    .shapka_login_btn:hover,
    .shapka_login_btn:active {
        border-color: rgba(230, 197, 148, 0.45);
        background: rgba(230, 197, 148, 0.08);
    }

    /* Вторая строка: Поиск на всю ширину экрана */
    .shapka_search_row {
        display: flex;
        width: 100%;
        margin: 0;
        position: relative;
        order: 2;
    }

    .shapka_search_wrap {
        width: 100%;
        position: relative;
    }

    .header_search_bar {
        display: flex !important;
        width: 100%;
        position: relative;
    }

    .header_search_input_wrap {
        width: 100% !important;
        height: 36px;
        background: rgba(247, 234, 216, 0.05);
        border: 1px solid rgba(230, 197, 148, 0.2);
        border-radius: 8px;
        padding: 0 10px 0 32px;
        box-sizing: border-box;
    }

    .header_search_input_wrap:focus-within {
        width: 100% !important;
        background: #0B1C19;
        border-color: rgba(230, 197, 148, 0.55);
        box-shadow: 0 0 12px rgba(230, 197, 148, 0.12);
    }

    .header_search_input {
        font-size: 16px !important;
    }

    .header_search_input::placeholder {
        font-size: 14px;
    }

    .header_search_dropdown {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(80vh - 100px);
        max-height: calc(80dvh - 100px);
        background: #0A1715;
        border: 1px solid rgba(230, 197, 148, 0.25);
        border-radius: 12px;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 10002;
    }
}

@media (max-width: 370px) {
    .shapka_nav {
        gap: 10px;
    }
    .shapka_nav_link {
        font-size: 12px;
    }
}

.all {
    position: relative;
    justify-content: space-between;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-grow: 1;
}

.border_first {
    position: relative;
    width: 120px;
    background: url('img/miniuzor.png') repeat-y;
    background-size: contain;
    overflow: hidden;
}

.border_second {
    position: relative;
    width: 120px;
    background: url('img/miniuzor 1.png') repeat-y;
    background-size: contain;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .border_first,
    .border_second {
        display: none !important;
        width: 0 !important;
    }
}

.baze {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    flex-grow: 1;
    background-color: #00312D;
    width: 100%;
}

/* Для Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Для Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

#userReady {
    display: none;
}

#userNot {
    display: block;
}

.vhod_text {
    color: #FCE0B4;
    font-size: 26px;
}

.vhod_tg_cont {
    display: flex;
    margin-top: 7px;
    gap: 10px;
    align-items: center;
}

.tg_vhod_hint {
    color: rgba(252, 224, 180, 0.78);
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    max-width: 180px;
}

.tg_vhod_icon {
    width: 22px;
    height: 22px;
    line-height: 22px;
}

.tg_vhod_icon img {
    display: block;
    width: 100%;
    height: 100%;
}


/* ==========================================================================
   НОВЫЙ ПРЕМИАЛЬНЫЙ ФУТЕР GHOSTEA (DARK EMERALD & GOLD)
   ========================================================================== */

.ghostea_footer {
    width: 100%;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 20, 16, 0.98) 0%, #000c09 100%);
    box-sizing: border-box;
    overflow: hidden;
    margin-top: auto;
}

.footer_top_border {
    width: 100%;
    height: 1px;
    background: radial-gradient(circle, rgba(236, 191, 139, 0.6) 0%, rgba(176, 127, 49, 0.25) 50%, transparent 100%);
}

.footer_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 36px;
    box-sizing: border-box;
}

/* Header */
.footer_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}

.footer_brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer_logo_link {
    display: inline-block;
    text-decoration: none;
}

.footer_logo {
    height: 28px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.footer_tagline {
    color: rgba(252, 224, 180, 0.65);
    font-size: 13px;
    font-family: Nunito, sans-serif;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer_social_block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer_social_plaque {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(3, 26, 23, 0.75);
    border: 1px solid rgba(230, 197, 148, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: Comfortaa, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #FCE0B4;
    letter-spacing: 0.02em;
    user-select: none;
    transition: all 0.2s ease;
}

.social_plaque_sparkle {
    color: #ECBF8B;
    font-size: 10px;
    line-height: 1;
}

.social_plaque_text {
    line-height: 1.2;
}

.footer_socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer_social_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 12px;
    background: rgba(3, 26, 23, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(230, 197, 148, 0.18);
    color: #F7EAD8;
    font-family: Nunito, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer_social_btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.footer_social_btn:hover {
    background: rgba(230, 197, 148, 0.14);
    border-color: rgba(230, 197, 148, 0.45);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.footer_social_btn:hover svg {
    transform: scale(1.06);
}

/* Divider */
.footer_divider {
    width: 100%;
    height: 1px;
    background: rgba(230, 197, 148, 0.1);
    margin-bottom: 36px;
}

/* 4-Columns Grid */
.footer_grid {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 0.9fr 1.1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer_col {
    display: flex;
    flex-direction: column;
}

.footer_col_title {
    font-family: Comfortaa, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #F7EAD8;
    margin: 0 0 16px 0;
    letter-spacing: 0.01em;
}

/* Store card */
.footer_store_card {
    background: rgba(3, 26, 23, 0.7);
    border: 1px solid rgba(230, 197, 148, 0.14);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.footer_address {
    font-family: Nunito, sans-serif;
    font-size: 13.5px;
    color: #FCE0B4;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 12px;
}

.footer_schedule {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(252, 224, 180, 0.08);
}

.schedule_row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-family: Nunito, sans-serif;
}

.schedule_days {
    color: #ECBF8B;
    font-weight: 600;
}

.schedule_hours {
    color: rgba(252, 224, 180, 0.75);
    font-weight: 500;
}

/* Map Badges */
.footer_map_badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer_badges_label {
    font-size: 12px;
    color: rgba(252, 224, 180, 0.55);
    font-family: Nunito, sans-serif;
    font-weight: 500;
}

.footer_badges_row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map_badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(230, 197, 148, 0.08);
    border: 1px solid rgba(230, 197, 148, 0.16);
    color: rgba(247, 234, 216, 0.85);
    font-size: 12px;
    font-family: Nunito, sans-serif;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.map_badge:hover {
    border-color: rgba(230, 197, 148, 0.45);
    color: #FFFFFF;
    background: rgba(212, 155, 91, 0.18);
    transform: translateY(-1px);
}

/* Tea Grid */
.footer_tea_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

/* Navigation Links */
.footer_nav_link {
    font-family: Nunito, sans-serif;
    font-size: 13.5px;
    color: rgba(252, 224, 180, 0.72);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.footer_nav_link:hover {
    color: #FCE0B4;
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(236, 191, 139, 0.4);
}

.footer_vertical_nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Contacts Column */
.footer_phone_block {
    margin-bottom: 16px;
}

.phone_label {
    display: block;
    font-size: 11.5px;
    color: rgba(252, 224, 180, 0.55);
    font-family: Nunito, sans-serif;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer_phone_link {
    font-family: Comfortaa, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FCE0B4;
    text-decoration: none;
    letter-spacing: 0.02em;
    display: inline-block;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer_phone_link:hover {
    color: #ECBF8B;
    text-shadow: 0 0 12px rgba(236, 191, 139, 0.5);
}

.footer_chat_links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.footer_chat_pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: rgba(247, 234, 216, 0.8);
    font-family: Nunito, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer_chat_pill:hover {
    color: #EED9BE;
    background: transparent;
    border: none;
    box-shadow: none;
    transform: translateX(2px);
}

.chat_dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 8px #4ADE80;
    flex-shrink: 0;
}

.footer_faq_shortcuts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq_mini_link {
    font-family: Nunito, sans-serif;
    font-size: 12px;
    color: #ECBF8B;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.faq_mini_link:hover {
    color: #FCE0B4;
    transform: translateX(3px);
}

/* Bottom bar */
.footer_bottom_divider {
    width: 100%;
    height: 1px;
    background: rgba(252, 224, 180, 0.08);
    margin-bottom: 22px;
}

.footer_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: Nunito, sans-serif;
    font-size: 12.5px;
    color: rgba(252, 224, 180, 0.5);
}

.footer_copyright {
    font-weight: 500;
}

.footer_policy_link {
    color: rgba(252, 224, 180, 0.6);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.footer_policy_link:hover {
    color: #FCE0B4;
}

.footer_slogan {
    font-style: italic;
    color: rgba(252, 224, 180, 0.4);
}

.footer_meta_disclaimer {
    margin-top: 10px;
    font-family: Nunito, sans-serif;
    font-size: 11px;
    color: rgba(252, 224, 180, 0.35);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1080px) {
    .footer_grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }
}

@media (max-width: 640px) {
    .footer_container {
        padding: 36px 16px 28px;
    }

    .footer_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer_social_block {
        width: 100%;
        align-items: flex-start;
        gap: 10px;
    }

    .footer_socials {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer_grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}



@media (max-width: 650px) {
    .menu_left {
        width: 70%;
    }
}

@media (max-width: 500px) {
    .modal {
        width: 85%;
        border-radius: 20px;
        background-color: #00312D;
        color: #FCE0B4;
        padding: 25px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .title {
        color: #FCE0B4;
        font-size: 16px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .opisanie {
        color: #FCE0B4;
        width: 100%;
        font-size: 12px;
        font-family: Nunito;
        margin-top: 20px;
    }

    .opisanie b {
        color: #FCE0B4;
        font-size: 12px;
        font-family: Nunito;
    }

    .button_exit_modal {
        display: inline-block;
        padding: 8px 30px;
        font-size: 16px;
        border-radius: 50px;
        border: solid #FCE0B4 2px;
        color: #FCE0B4;
        margin-top: 25px;
    }

    .line_modal {
        width: 200px;
        height: 1px;
        background: linear-gradient(90deg, #ECBF8B 34%, #B07F31 50%, #EFD6AE 68%);
        margin-top: 15px;
    }
}

@media(max-width:790px) {


    .exit_button {
        position: absolute;
        bottom: 30px;
        color: #FCE0B4;
        font-size: 16px;
        cursor: pointer;
    }

    .bonus_menu_left {
        display: flex;
        align-items: center;
        gap: 3px;
        margin-top: 3px;
    }

    .bonus_text_left {
        font-family: Nunito;
        font-size: 10px;
        font-weight: 800;
        color: #FCE0B4;
        text-decoration: none;
    }

    .bonusd_left_img {
        width: 11px;
        height: 11px;
        line-height: 11px;
    }

    .border_first {
        display: none;
    }

    .border_second {
        display: none;
    }

    .podval {
        height: 150px;
    }


    .menu_button {
        height: 23px;
        width: 20px;
        cursor: pointer;
    }

    .menu_button img {
        height: 100%;
        width: 5px;
    }

    .logo {
        height: 47px;
        width: 38px;
        cursor: pointer;
    }

    .korzina_button {
        height: 31px;
        width: 21px;
        cursor: pointer;
    }

    .menu_left {
        left: -70%;
        position: fixed;
        background-color: #00312D;
        z-index: 30;
        padding: 30px 20px;
        transition: 0.2s;
    }

    .menu_left.active {
        left: 0;
    }

    .line_gradient_menu {
        width: 100%;
        height: 2px;
        margin-top: 20px;
        background: linear-gradient(90deg, #ECBF8B 34%, #B07F31 50%, #EFD6AE 68%);
        margin-bottom: 20px;
    }

    .vkaldka_menu_left {
        color: #FCE0B4;
        font-size: 18px;
    }

    .vkladka_menu_cont {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
        cursor: pointer;
    }

    .titul_menu_text {
        color: #FCE0B4;
        font-size: 16px;
        margin-top: 20px;
    }

    .with_icon_menu_cont {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }

    .icon_menu {
        width: 18px;
        height: 18px;
    }

    .icon_menu img {
        width: 100%;
        height: 100%;
    }

    .icon_text {
        color: #FCE0B4;
        font-size: 14px;
    }

    .line_menu {
        width: 50%;
        height: 2px;
        background-color: #FCE0B4;
    }

    .data_menu_left_cont {
        margin-left: 15px;
    }

    .login_menu_left {
        color: #FCE0B4;
        font-size: 18px;
        margin-top: 5px;
    }

    .id_menu_left {
        font-size: 12px;
        color: #FCE0B4;
        font-family: Nunito;
        margin-top: 5px;
    }

    .top_menu_left_cont {
        display: flex;
        cursor: pointer;
    }

    .ava_menu_left {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        border: #FCE0B4 solid 3px;
    }

    .ava_menu_left img {
        width: 100%;
        border-radius: 50%;
        height: 100%;
    }

    .vhod_text {
        color: #FCE0B4;
        font-size: 20px;
    }

    .vhod_tg_cont {
        display: flex;
        margin-top: 5px;
        gap: 5px;
        align-items: center;
    }

    .tg_vhod_hint {
        font-size: 12px;
        max-width: 140px;
    }

    .tg_vhod_icon {
        width: 16px;
        height: 16px;
        line-height: 16px;
    }

    .tg_vhod_icon img {
        display: block;
        width: 100%;
        height: 100%;
    }

}

/* ==========================================================================
   BLOG & ARTICLE STYLES (Ghostea)
   ========================================================================== */
.blog_admin_bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
}

.blog_admin_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    background: #EED9BE;
    color: #0A1715;
    font-family: Comfortaa, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    border: 1px solid rgba(230, 197, 148, 0.35);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
}

.blog_admin_btn:hover {
    background: #F7EAD8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.blog_admin_btn:active {
    transform: translateY(0);
}

.article_card_ghost {
    position: relative;
    width: 360px;
    max-width: 100%;
    background: #0E221E;
    border: 1px solid rgba(230, 197, 148, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.article_card_ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 197, 148, 0.26);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.article_card_img_wrap {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #081714;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article_card_bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.35) saturate(1.2);
    opacity: 0.75;
    transform: scale(1.15);
    pointer-events: none;
    z-index: 0;
}

.article_card_img_wrap img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.article_card_ghost:hover .article_card_img_wrap img {
    transform: scale(1.04);
}

.article_card_body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.article_card_title {
    font-family: Comfortaa, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #F7EAD8;
    line-height: 1.35;
    margin: 0;
}

.article_card_excerpt {
    font-family: Nunito, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(247, 234, 216, 0.7);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article_card_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(230, 197, 148, 0.1);
}

.article_card_date {
    font-family: Nunito, sans-serif;
    font-size: 12.5px;
    color: rgba(247, 234, 216, 0.55);
}

.article_card_read_more {
    font-family: Nunito, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #EED9BE;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.article_card_ghost:hover .article_card_read_more {
    gap: 6px;
}

/* Кнопки админа на карточке и на детальной странице */
.article_admin_badge_group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article_admin_small_btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-family: Nunito, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.article_admin_small_btn--edit {
    background: rgba(230, 197, 148, 0.1);
    color: #F7EAD8;
    border: 1px solid rgba(230, 197, 148, 0.25);
}

.article_admin_small_btn--edit:hover {
    background: rgba(230, 197, 148, 0.2);
    color: #FFF;
}

.article_admin_small_btn--delete {
    background: rgba(239, 68, 68, 0.12);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.article_admin_small_btn--delete:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #FFF;
}

/* Детальная страница статьи */
.article_detail_header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article_detail_top_nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.article_detail_back_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    background: transparent;
    border: none;
    color: rgba(247, 234, 216, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-family: Nunito, sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}

.article_detail_back_btn:hover {
    color: #F7EAD8;
    transform: translateX(-3px);
}

.article_detail_title {
    font-family: Comfortaa, sans-serif;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    color: #F7EAD8;
    margin: 0;
}

.article_detail_meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(247, 234, 216, 0.6);
    font-family: Nunito, sans-serif;
    font-size: 13.5px;
}

.article_detail_cover {
    position: relative;
    width: 100%;
    max-height: 480px;
    min-height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    background: #081714;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article_cover_bg {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.32) saturate(1.2);
    opacity: 0.7;
    transform: scale(1.15);
    pointer-events: none;
    z-index: 0;
}

.article_detail_cover img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.article_detail_content {
    font-family: Nunito, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(247, 234, 216, 0.88);
}

.article_detail_content h1,
.article_detail_content h2,
.article_detail_content h3,
.article_detail_content h4 {
    font-family: Comfortaa, sans-serif;
    color: #F7EAD8;
    margin-top: 30px;
    margin-bottom: 12px;
    line-height: 1.35;
}

.article_detail_content p {
    margin: 0 0 16px;
}

.article_detail_content img {
    max-width: min(100%, 520px);
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 18px auto;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(230, 197, 148, 0.1);
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article_detail_content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.article_detail_content blockquote {
    border-left: 3px solid #EED9BE;
    margin: 18px 0;
    padding: 10px 18px;
    background: rgba(230, 197, 148, 0.08);
    border-radius: 0 8px 8px 0;
    color: #F7EAD8;
    font-style: italic;
}

.article_detail_content ul,
.article_detail_content ol {
    margin: 14px 0 18px 24px;
    padding: 0;
}

.article_detail_content li {
    margin-bottom: 8px;
}

.article_detail_content a {
    color: #EED9BE;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Модальные окна блога */
.blog_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 15, 13, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.blog_modal_overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.blog_modal_card {
    background: #0E221E;
    border: 1px solid rgba(230, 197, 148, 0.2);
    border-radius: 16px;
    padding: 28px 32px;
    width: 640px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.blog_modal_overlay.active .blog_modal_card {
    transform: scale(1);
}

.blog_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.blog_modal_title {
    font-family: Comfortaa, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #F7EAD8;
    margin: 0;
}

.blog_modal_close {
    background: transparent;
    border: none;
    color: rgba(247, 234, 216, 0.6);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.blog_modal_close:hover {
    color: #F7EAD8;
}

.blog_form_group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog_form_label {
    font-family: Comfortaa, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #F7EAD8;
}

.blog_form_input,
.blog_form_textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(3, 20, 17, 0.85);
    border: 1px solid rgba(230, 197, 148, 0.2);
    color: #F7EAD8;
    font-family: Nunito, sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.blog_form_input:focus,
.blog_form_textarea:focus {
    border-color: #EED9BE;
    box-shadow: 0 0 0 2px rgba(230, 197, 148, 0.15);
}

.blog_form_textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

.blog_form_hint {
    font-family: Nunito, sans-serif;
    font-size: 12px;
    color: rgba(247, 234, 216, 0.5);
    margin-top: 4px;
}

.blog_modal_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.blog_btn_cancel {
    padding: 9px 18px;
    border-radius: 8px;
    background: rgba(230, 197, 148, 0.08);
    border: 1px solid rgba(230, 197, 148, 0.18);
    color: #F7EAD8;
    font-family: Nunito, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog_btn_cancel:hover {
    background: rgba(230, 197, 148, 0.16);
}

.blog_btn_submit {
    padding: 9px 22px;
    border-radius: 8px;
    background: #EED9BE;
    border: 1px solid rgba(230, 197, 148, 0.35);
    color: #0A1715;
    font-family: Comfortaa, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.blog_btn_submit:hover {
    background: #F7EAD8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.blog_btn_submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Панель инструментов форматирования и вставки изображений */
.blog_editor_toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 8px;
    background: rgba(3, 20, 17, 0.95);
    border: 1px solid rgba(230, 197, 148, 0.2);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.blog_tool_btn {
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(230, 197, 148, 0.08);
    border: 1px solid rgba(230, 197, 148, 0.15);
    color: #F7EAD8;
    font-family: Nunito, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog_tool_btn:hover {
    background: rgba(230, 197, 148, 0.2);
    color: #FFF;
    border-color: #EED9BE;
}

.blog_tool_btn--primary {
    background: rgba(230, 197, 148, 0.15);
    border-color: rgba(230, 197, 148, 0.35);
    color: #F7EAD8;
}

.blog_tool_btn--primary:hover {
    background: #EED9BE;
    color: #0A1715;
}

.blog_form_textarea--with_toolbar {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Зона загрузки и предпросмотра обложки */
.blog_upload_zone {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog_file_btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(230, 197, 148, 0.08);
    border: 1px dashed rgba(230, 197, 148, 0.3);
    color: #F7EAD8;
    font-family: Nunito, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog_file_btn:hover {
    background: rgba(230, 197, 148, 0.18);
    border-color: #EED9BE;
    color: #FFF;
}

.blog_cover_preview_wrap {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(230, 197, 148, 0.2);
    background: rgba(3, 20, 17, 0.6);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog_cover_preview_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Автор статьи */
.article_card_meta_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.article_card_author {
    font-family: Nunito, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #ECBF8B;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Хлебные крошки для блога (SEO & UX) */
.blog_breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: Nunito, sans-serif;
    font-size: 13.5px;
    color: rgba(252, 224, 180, 0.6);
    margin-bottom: 20px;
    padding: 0 4px;
}

.blog_breadcrumbs a {
    color: rgba(252, 224, 180, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog_breadcrumbs a:hover {
    color: #ECBF8B;
    text-decoration: underline;
}

.blog_breadcrumb_sep {
    color: rgba(252, 224, 180, 0.35);
    font-size: 12px;
}

.blog_breadcrumb_current {
    color: #FCE0B4;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* Оформление вставленных в текст статьи картинок */
.article_inline_img_wrap {
    margin: 28px auto;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.article_inline_img_wrap img {
    max-width: min(100%, 520px);
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(230, 197, 148, 0.1);
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article_inline_img_wrap img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.article_inline_img_wrap figcaption {
    font-family: Nunito, sans-serif;
    font-size: 13px;
    color: rgba(252, 224, 180, 0.65);
    font-style: italic;
    margin-top: 8px;
    text-align: center;
    max-width: 520px;
    line-height: 1.4;
}

/* Lightbox для полноразмерного просмотра картинок из статьи */
.article_image_lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.article_image_lightbox.is-active {
    display: flex;
}

.article_lightbox_backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 15, 13, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.article_lightbox_content {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: articleLightboxZoom 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes articleLightboxZoom {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.article_lightbox_img {
    max-width: 90vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}

.article_lightbox_close {
    position: absolute;
    top: -42px;
    right: 0;
    background: rgba(230, 197, 148, 0.15);
    border: 1px solid rgba(230, 197, 148, 0.3);
    color: #F7EAD8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.article_lightbox_close:hover {
    background: rgba(230, 197, 148, 0.3);
    transform: scale(1.08);
}

.article_lightbox_caption {
    margin-top: 12px;
    color: rgba(252, 224, 180, 0.85);
    font-family: Nunito, sans-serif;
    font-size: 14px;
    text-align: center;
    max-width: 600px;
}

/* Блок похожих статей (Перелинковка для SEO) */
.related_articles_section {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(230, 197, 148, 0.12);
}

.related_articles_title {
    font-family: Comfortaa, sans-serif;
    font-size: clamp(19px, 3vw, 22px);
    font-weight: 700;
    color: #F7EAD8;
    margin: 0 0 20px;
}

.related_articles_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.related_article_card {
    background: #0E221E;
    border: 1px solid rgba(230, 197, 148, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.related_article_card:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 197, 148, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.related_card_img_wrap {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
    background: #081714;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related_card_bg {
    position: absolute;
    inset: -15px;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.35) saturate(1.2);
    opacity: 0.75;
    transform: scale(1.15);
    pointer-events: none;
    z-index: 0;
}

.related_card_img_wrap img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.related_article_card:hover .related_card_img_wrap img {
    transform: scale(1.04);
}

.related_card_body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related_card_meta {
    font-family: Nunito, sans-serif;
    font-size: 11.5px;
    color: rgba(247, 234, 216, 0.6);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related_card_title {
    font-family: Comfortaa, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #F7EAD8;
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related_card_excerpt {
    font-family: Nunito, sans-serif;
    font-size: 13px;
    color: rgba(247, 234, 216, 0.7);
    line-height: 1.45;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.related_card_read_more {
    font-family: Nunito, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #EED9BE;
}

@media (max-width: 680px) {
    .article_detail_cover {
        max-height: 280px;
        min-height: 160px;
        margin-bottom: 22px;
    }

    .article_detail_cover img {
        max-height: 280px;
    }

    .article_detail_content img,
    .article_inline_img_wrap img {
        max-width: 100%;
        max-height: 280px;
        margin: 12px auto;
    }
}

/* ─── BLUR-UP IMAGE PRELOADER SYSTEM ─── */
.img_product,
.img_cont,
.article_cover_wrap,
.has-blur-preloader {
    position: relative;
}

/* Персональный размытый SVG-слой конкретного товара */
.blur-placeholder-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: blur(6px);
    transform: scale(1.04);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.45s ease-out, filter 0.45s ease-out;
}

/* Основное фото товара (только для блоков с блюр-плейсхолдерами: карточки каталога и корзина) */
.product_block .img_product img:not(.blur-placeholder-svg),
.cart_cont .img_product img:not(.blur-placeholder-svg),
.has-blur-preloader img:not(.blur-placeholder-svg) {
    position: relative;
    z-index: 2;
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.97);
    transition: opacity 0.4s cubic-bezier(0.2, 0, 0.2, 1),
                filter 0.4s cubic-bezier(0.2, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Hero-слайдер и детальная страница товара: прямое чистое отображение без блюр-артефактов и скачков */
.itc-slider .img_cont img,
.img_cont img {
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

.top_cont_desktop .img_product img,
.mobile_version .img_product img {
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5)) !important;
    transform: none;
}

/* Состояние полной загрузки: резкое фото, растворение блюра */
.product_block .img_product.is-loaded img:not(.blur-placeholder-svg),
.cart_cont .img_product.is-loaded img:not(.blur-placeholder-svg),
.has-blur-preloader.is-loaded img:not(.blur-placeholder-svg),
img.is-loaded {
    opacity: 1 !important;
    filter: blur(0px) !important;
    transform: scale(1) !important;
}

.product_block .img_product.is-loaded .blur-placeholder-svg,
.cart_cont .img_product.is-loaded .blur-placeholder-svg,
.has-blur-preloader.is-loaded .blur-placeholder-svg {
    opacity: 0 !important;
    visibility: hidden;
}

/* При ошибке загрузки */
.img_product.is-error img,
.img_cont.is-error img,
.has-blur-preloader.is-error img {
    opacity: 1 !important;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5)) !important;
}

/* Мягкий ненавязчивый шиммер-скелетон при загрузке картинки товара или слайдера */
@keyframes ghosteaImageShimmer {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.7;
    }
}

.top_cont_desktop .img_product:not(.is-loaded)::before,
.mobile_version .img_product:not(.is-loaded)::before,
.img_cont:not(.is-loaded)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(230, 197, 148, 0.08) 0%, rgba(14, 34, 30, 0.25) 70%);
    animation: ghosteaImageShimmer 1.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.top_cont_desktop .img_product.is-loaded::before,
.mobile_version .img_product.is-loaded::before,
.img_cont.is-loaded::before {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .blur-placeholder-svg,
    .img_product img,
    .img_cont img,
    .top_cont_desktop .img_product:not(.is-loaded)::before,
    .mobile_version .img_product:not(.is-loaded)::before,
    .img_cont:not(.is-loaded)::before {
        animation: none !important;
        transition: none !important;
    }
}




/* ==========================================================================
   ПОИСК В ХЕДЕРЕ (HEADER SEARCH)
   ========================================================================== */
.shapka_search_wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Мобильная кнопка вызова поиска: скрыта на десктопе */
.shapka_search_mobile_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(230, 197, 148, 0.2);
    color: #F7EAD8;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-sizing: border-box;
}

.shapka_search_mobile_btn:hover {
    border-color: rgba(230, 197, 148, 0.45);
    background: rgba(230, 197, 148, 0.08);
    color: #E6C594;
    transform: translateY(-1px);
}

/* Поле поиска на десктопе */
.header_search_bar {
    position: relative;
    display: flex;
    align-items: center;
}

.header_search_input_wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 200px;
    height: 38px;
    background: rgba(247, 234, 216, 0.05);
    border: 1px solid rgba(230, 197, 148, 0.22);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 8px 0 32px;
}

.header_search_input_wrap:focus-within {
    width: 280px;
    background: rgba(10, 23, 21, 0.98);
    border-color: rgba(230, 197, 148, 0.6);
    box-shadow: 0 0 16px rgba(230, 197, 148, 0.15);
}

.search_bar_icon {
    position: absolute;
    left: 9px;
    pointer-events: none;
    color: rgba(247, 234, 216, 0.5);
    transition: color 0.2s ease;
}

.header_search_input_wrap:focus-within .search_bar_icon {
    color: #E6C594;
}

.header_search_input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #F7EAD8;
    font-family: Nunito, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .header_search_input,
    .header_search_input_wrap .header_search_input,
    #headerSearchInput {
        font-size: 16px !important;
    }
}

.header_search_input::placeholder {
    color: rgba(247, 234, 216, 0.45);
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.header_search_input_wrap:focus-within .header_search_input::placeholder {
    opacity: 0.7;
}

.search_clear_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(247, 234, 216, 0.15);
    color: rgba(247, 234, 216, 0.7);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.15s ease;
    margin-left: 4px;
}

.search_clear_btn:hover {
    background: rgba(247, 234, 216, 0.28);
    color: #F7EAD8;
}

.search_mobile_close_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: rgba(247, 234, 216, 0.8);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

/* ==========================================================================
   ВЫПАДАЮЩИЙ СПИСОК РЕЗУЛЬТАТОВ (DROPDOWN)
   ========================================================================== */
.header_search_dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 400px;
    max-height: 480px;
    overflow-y: auto;
    background: rgba(12, 26, 23, 0.98);
    border: 1px solid rgba(230, 197, 148, 0.24);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    z-index: 1000;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 197, 148, 0.3) transparent;
}

.header_search_dropdown::-webkit-scrollbar {
    width: 6px;
}

.header_search_dropdown::-webkit-scrollbar-thumb {
    background: rgba(230, 197, 148, 0.3);
    border-radius: 3px;
}

.header_search_content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Секции */
.search_section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search_section_title {
    font-family: Comfortaa, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(230, 197, 148, 0.7);
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(230, 197, 148, 0.1);
}

/* Чипсы категорий */
.search_categories_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.search_category_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 16px;
    background: rgba(230, 197, 148, 0.08);
    border: 1px solid rgba(230, 197, 148, 0.2);
    color: #F7EAD8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search_category_chip:hover,
.search_category_chip.is-keyboard-selected {
    background: rgba(230, 197, 148, 0.2);
    border-color: rgba(230, 197, 148, 0.55);
    color: #FFF;
    transform: translateY(-1px);
}

.chip_icon {
    font-size: 11px;
}

.chip_type {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(247, 234, 216, 0.6);
}

/* Список товаров */
.search_products_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search_product_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 9px;
    border-radius: 8px;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.search_product_row:hover,
.search_product_row.is-keyboard-selected {
    background: rgba(230, 197, 148, 0.1);
    border-color: rgba(230, 197, 148, 0.2);
}

.search_product_row.is_out {
    opacity: 0.6;
}

.search_prod_thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search_prod_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search_prod_main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search_prod_title {
    font-family: Nunito, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #F7EAD8;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search_prod_sub {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search_prod_category {
    font-size: 11px;
    color: rgba(247, 234, 216, 0.5);
}

.search_prod_side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.search_prod_price {
    font-family: Nunito, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #EED9BE;
    white-space: nowrap;
}

.search_prod_status {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.search_prod_status.in_stock {
    background: rgba(74, 222, 128, 0.12);
    color: #4ADE80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.search_prod_status.out_of_stock {
    background: rgba(247, 234, 216, 0.08);
    color: rgba(247, 234, 216, 0.45);
    border: 1px solid rgba(247, 234, 216, 0.15);
}

/* Подсветка текста */
.search_highlight {
    background: rgba(230, 197, 148, 0.35);
    color: #FFF;
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 700;
}

/* Состояния: загрузка, пусто, подсказка */
.search_loading_box,
.search_hint_box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    color: rgba(247, 234, 216, 0.65);
    font-size: 13px;
}

.search_loader_spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(230, 197, 148, 0.3);
    border-top-color: #E6C594;
    border-radius: 50%;
    animation: spinSearch 0.6s linear infinite;
}

@keyframes spinSearch {
    to { transform: rotate(360deg); }
}

.search_empty_box {
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.search_empty_icon {
    font-size: 24px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.search_empty_title {
    font-family: Comfortaa, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #F7EAD8;
}

.search_empty_text {
    font-size: 12px;
    color: rgba(247, 234, 216, 0.55);
    line-height: 1.4;
    max-width: 300px;
}



.search_main_section_chip {
    background: rgba(230, 197, 148, 0.12) !important;
    border-color: rgba(230, 197, 148, 0.35) !important;
    color: #F7EAD8 !important;
    font-weight: 600 !important;
}

.search_main_section_chip:hover {
    background: rgba(230, 197, 148, 0.22) !important;
    border-color: rgba(230, 197, 148, 0.6) !important;
    transform: translateY(-1px);
}

