/* ========================================
   Логотип
   ======================================== */
.logo a {
    color: #fff;
}

/* ========================================
   Навигация в шапке
   ======================================== */
#header nav a {
    display: inline-flex;
    align-items: center;
    line-height: inherit;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* ========================================
   Иконки в меню
   ======================================== */
.menu_icon_label {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.menu_icon {
    position: relative;
    min-width: 2rem;
    max-width: 2rem;
    height: 2rem;
    padding: .25rem;
    margin-right: .75rem;
    border-radius: 50%;
    transition: transform .2s ease;
}

.menu_icon_label .menu_icon svg {
    color: #ffffff;
}

.menu_icon_bgcolor_yellow {
    background-color: #F9BD3B;
    background-image: linear-gradient(180deg, #FEDE4A 0%, #F8B035 100%);
    box-shadow: 0 .25rem .5rem 0 rgba(251,205,66,0.3);
}

.menu_icon_bgcolor_purple {
    background-color: #9248E1;
    background-image: linear-gradient(180deg, #9B54E8 0%, #7126C1 100%);
    box-shadow: 0 .25rem .5rem 0 rgba(146,72,225,0.3);
}

.menu_icon_bgcolor_red {
    background-color: #FB614A;
    background-image: linear-gradient(180deg, #FF715C 0%, #F74A2F 100%);
    box-shadow: 0 .25rem .5rem 0 rgba(255,89,64,0.3);
}

.menu_icon_bgcolor_blue {
    background-color: #37A9E4;
    background-image: linear-gradient(180deg, #38B9E6 0%, #368BE1 100%);
    box-shadow: 0 .25rem .5rem 0 rgba(55,169,228,0.3);
}

.menu_icon_bgcolor_white {
    background-color: white;
}

.menu-item:hover .menu_icon {
    transform: scale(0.9);
}

#header nav .menu li:hover a::before {
    display: none;
}

.menu-item:is(.menu_item_games):hover a {
    color: #F9BD3B;
}

.menu-item:is(.menu_item_apps):hover a {
    color: #9248E1;
}

.menu-item:is(.menu_item_top):hover a {
    color: #FB614A;
}

.menu-item:is(.menu_item_news):hover a {
    color: #37A9E4;
}

/* ========================================
   Меню категорий (сворачивание)
   ======================================== */
.cat-menu-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.cat-menu-collapse.in {
    max-height: 1000px;
}

.icon-close {
    display: none;
}

.page-head-cat {
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 25px;
}

.head-cat-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.cat-lists {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.catalog-genres-item a {
    display: block;
    padding: .375rem .5rem;
    border-radius: .375rem;
    background-color: #1e73be57;
    color: #fff;
    font-weight: bold;
    font-size: .75rem;
    transition: background-color .2s ease;
}

.catalog-genres-item a:hover,
.catalog-genres-item:is(.current) a {
    background-color: #1e73be;
}

.cat-menu-btn,
.cat-menu-btn:focus {
    color: #ffffff;
    width: 45px;
    height: 45px;
    padding: 10px;
    border-radius: 50%;
    background-color: #1e73be57;
}

/* ========================================
   Подменю в шапке
   ======================================== */
#header nav .menu>li>.sub-menu {
    padding: 15px;
    visibility: hidden;
}

#header nav .menu>li.menu-item-has-children:hover .sub-menu {
    visibility: visible;
}

#header nav .menu .sub-menu li a {
    padding-right: 0;
    padding-left: 0;
}

#header nav .menu .sub-menu li a:hover {
    color: #1e73be;
    background: transparent;
}

html #header nav .menu > li.menu-item-has-children > .sub-menu::before {
    display: none;
}

/* ========================================
   Кнопка "Ещё" (more_items)
   ======================================== */
.more_items > a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2rem;
    border: 0 none;
    line-height: 1rem;
    padding: .5rem;
    border-radius: 1rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: transparent;
    background-image: linear-gradient(90deg, rgba(23, 43, 61, 0) 0%, rgb(113 113 113 / 43%) 100%);
}

.more_items > a:hover,
.more_items:is(.current) > a {
    background-image: linear-gradient(90deg, rgba(76, 203, 112, 0) 0%, rgb(30 115 190 / 43%) 100%);
}

.more_items > a:before,
.more_items > a:after {
    display: none;
}

.hmenu-more-dots {
    width: 24px;
    height: 4px;
    display: flex;
    justify-content: space-between;
    transition: width .2s ease;
}

.hmenu-more-dots i {
    width: 4px;
    height: 4px;
    background-color: #fff;
    transition: background-color .2s ease;
    display: inline-block;
    border-radius: 50%;
}

.more_items > a:hover .hmenu-more-dots i,
.more_items:is(.current) > a .hmenu-more-dots i {
    background-color: #1e73be;
}

.menu-item:is(.order_table) {
    border-bottom: 1px solid #fff;
}

/* ========================================
   Меню (десктоп)
   ======================================== */
@media(min-width: 900px) {
    #header nav .menu {
        display: flex;
        align-items: center;
    }
}

/* ========================================
   Мобильное меню
   ======================================== */
@media(max-width: 900px) {
    #menu-mobile ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
        max-width: 400px;
        margin-right: auto;
        margin-left: auto;
    }

    #menu-mobile > ul > li {
        justify-content: center;
        display: flex;
        width: calc(50% - 7.5px);
    }

    #menu-mobile ul li:is(.menu_item_games) {
        background-color: rgba(254, 216, 74, 0.1);
        border-radius: 18px;
    }

    #menu-mobile ul li:is(.menu_item_apps) {
        background-color: rgba(151,79,229,0.1);
        border-radius: 18px;
    }

    #menu-mobile ul li:is(.menu_item_top) {
        background-color: rgba(251, 96, 72, 0.1);
        border-radius: 18px;
    }

    #menu-mobile ul li:is(.menu_item_news) {
        background-color: rgba(55,164,227,0.1);
        border-radius: 18px;
    }

    #menu-mobile ul li:is(.order_table) {
        width: 100%;
        background-color: rgba(76, 203, 112, .1);
        border-radius: 18px;
        border: unset;
    }

    #menu-mobile ul li:is(.order_table) > a {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }

    #menu-mobile ul li:is(.order_table) > a .menu_icon_label {
        width: 100%;
        justify-content: space-between;
    }

    #menu-mobile ul li:is(.more_items) {
        width: 100%;
        border-radius: unset;
    }

    #menu-mobile ul li.menu-item-has-children:is(.more_items)>a,
    #menu-mobile ul li.menu-item-has-children:is(.more_items) i {
        display: none;
    }

    #menu-mobile ul li .sub-menu {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #menu-mobile ul li a {
        border: unset;
    }

    html #menu-mobile ul li a:hover,
    html #menu-mobile ul li a:focus {
        background: transparent !important;
    }

    #menu-mobile > ul > li:not(.menu-item) {
        width: 100%;
    }

    #menu-mobile ul.social {
        display: flex;
        justify-content: center;
    }

    #wpadminbar {
        display: none;
    }
}

/* ========================================
   Нижнее меню (px-bottom-menu)
   ======================================== */
#px-bottom-menu .menu_icon_label {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
}

#px-bottom-menu .menu-item a {
    font-size: 12px !important;
    color: inherit !important;
    text-align: center !important;
    line-height: 1.2 !important;
    padding: 8px 5px !important;
}

#px-bottom-menu .menu_icon {
    display: block !important;
    margin: 0 auto !important;
}

#px-bottom-menu .menu_icon svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

/* ========================================
   Футер
   ======================================== */
.footer-notice {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #bdc3c7;
}

.copyright-link {
    font-size: 14px;
    color: #3498db;
    font-weight: 500;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-menu-item {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    line-height: 1.3;
}

.footer-menu-item:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

@media (max-width: 1024px) {
    .footer-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 600px;
    }
    .footer-menu-item {
        padding: 14px 10px;
        font-size: 15px;
        min-height: 55px;
    }
}

@media (max-width: 768px) {
    .footer-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 500px;
    }
    .footer-menu-item {
        padding: 12px 8px;
        font-size: 14px;
        min-height: 50px;
        border-radius: 6px;
    }
    .copyright-text {
        font-size: 13px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .footer-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 400px;
    }
    .footer-menu-item {
        padding: 10px 6px;
        font-size: 13px;
        min-height: 45px;
    }
}

@media (max-width: 360px) {
    .footer-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .footer-menu-item {
        padding: 8px 4px;
        font-size: 12px;
        min-height: 40px;
    }
}

/* ========================================
   Кастомная кнопка
   ======================================== */
.my-custom-button-container {
    text-align: center;
    margin: 20px 0;
}

.my-custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    font-family: Arial, sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    gap: 10px;
    line-height: 1;
}

.my-custom-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.my-custom-button i {
    font-size: 18px;
}

/* ========================================
   Руководство по установке — Стильный дизайн
   ======================================== */

:root {
    --guide-primary: #3b82f6;
    --guide-primary-dark: #2563eb;
    --guide-bg: #ffffff;
    --guide-sidebar: #f8fafc;
    --guide-border: #e2e8f0;
    --guide-text: #1e293b;
    --guide-text-light: #64748b;
    --guide-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --guide-radius: 16px;
}

.install-guide-wrapper {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.install-guide-wrapper *,
.install-guide-wrapper *::before,
.install-guide-wrapper *::after {
    box-sizing: border-box;
}

/* Заголовок */
.install-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0f172a;
    letter-spacing: -0.3px;
}

/* Основной контейнер */
.install-guide {
    display: flex;
    border: 1px solid var(--guide-border);
    border-radius: var(--guide-radius);
    overflow: hidden;
    background: var(--guide-bg);
    box-shadow: var(--guide-shadow);
}

/* Боковое меню */
.guide-menu {
    flex: 0 0 200px;
    background: var(--guide-sidebar);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 10px;
    text-align: left;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--guide-text-light);
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
}

.guide-menu button:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.guide-menu button.active {
    background: var(--guide-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.guide-menu button .icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

/* Контент */
.guide-content {
    flex: 1;
    padding: 28px 32px;
    background: #fff;
}

.guide-section {
    display: none;
}

.guide-section.active {
    display: block;
    animation: guideFadeIn 0.3s ease;
}

.guide-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #0f172a;
    letter-spacing: -0.2px;
}

/* Нумерованный список */
.guide-section ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0 0 16px 0;
}

.guide-section ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 40px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.guide-section ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--guide-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Маркированный список */
.guide-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.guide-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.guide-section ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--guide-primary);
    border-radius: 50%;
}

/* Вложенные списки */
.guide-section ol ul,
.guide-section ul ul {
    margin-top: 8px;
    padding-left: 10px;
}

.guide-section ol ul li::before {
    width: 5px;
    height: 5px;
    top: 8px;
}

/* Параграф */
.guide-section p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.guide-section strong {
    font-weight: 600;
    color: #0f172a;
}

.guide-section code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #e11d48;
}

/* Плашка с заметкой */
.guide-section .note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 16px 0 0 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.guide-section .note::before {
    content: '💡';
    flex-shrink: 0;
    font-size: 16px;
}

/* FAQ */
.guide-section .faq-item {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.guide-section .faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.guide-section .faq-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}

.guide-section .faq-item span {
    display: block;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* Анимация */
@keyframes guideFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Мобильная версия
   ======================================== */
@media (max-width: 768px) {
    .install-guide-wrapper {
        margin: 20px 10px;
    }

    .install-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .install-guide {
        flex-direction: column;
        border-radius: 12px;
    }

    /* Боковое меню — скрываем, показываем select */
    .guide-menu {
        display: none;
    }

    /* Выпадающий список */
    .guide-menu-mobile {
        display: block;
        width: 100%;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        background: var(--guide-primary);
        border: none;
        border-radius: 12px 12px 0 0;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='white'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        cursor: pointer;
        outline: none;
        font-family: inherit;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }

    .guide-content {
        padding: 20px 16px;
        border-top: none;
        border-radius: 0 0 12px 12px;
    }

    .guide-section h3 {
        font-size: 18px;
    }

    .guide-section ol li {
        font-size: 14px;
        padding-left: 36px;
    }

    .guide-section ol li::before {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .guide-section ul li {
        font-size: 14px;
    }

    .guide-section .note {
        font-size: 13px;
    }

    .guide-section .faq-item strong {
        font-size: 14px;
    }

    .guide-section .faq-item span {
        font-size: 13px;
    }
}

/* На десктопе — скрываем select */
@media (min-width: 769px) {
    .guide-menu-mobile {
        display: none;
    }
}