/* Подключение всех начертаний Hauora */
@font-face {
    font-family: 'Hauora';
    src: url('../fonts/Hauora-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hauora';
    src: url('../fonts/Hauora-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hauora';
    src: url('../fonts/Hauora-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hauora';
    src: url('../fonts/Hauora-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hauora';
    src: url('../fonts/Hauora-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hauora';
    src: url('../fonts/Hauora-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hauora';
    src: url('../fonts/Hauora-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Hauora', sans-serif;
}

.page-container {
    max-width: 1128px;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Стили шапки сайта */
.header-wraper {
    height: 88px;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.header__top {
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header__logo {
    display: block;
    line-height: 1;
    margin-right: 15px;
    flex-shrink: 0;
}

.header__logo-img {
    display: block;
    line-height: 1;
}

.header__inner {
    display: flex;
    align-items: center;
}

.header__nav {
    margin: auto;
}

.header__btn-search {
    margin-left: 15px;
    border: none;
    padding: 0;
    background-image: url("../img/btn-search-icon.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.header__btn-start {
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    background-color: #fff;
    border: none;
    color: #0E101A !important;
    text-transform: uppercase;
    border-radius: 30px;
    margin-left: 30px;
    flex-shrink: 0;
    text-decoration: none !important;
}

.header__btn-burger {
    padding: 0;
    border: none;
    width: 28px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("../img/burger-icon-open.svg");
    margin-left: 20px;
    display: none;
}

.header__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.header__menu>li {
    position: relative;
    margin: 0 15px;
}

.menu-label {
    cursor: pointer;
    display: block;
    padding: 10px 0;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-label::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 7px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("../img/menu-arrow-down.svg");
}

.sub-menu {
    min-width: 240px;
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 20px;
    padding: 15px 0;
    z-index: 100;
    list-style: none;
    margin: 0;
    background-color: #0E101A;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header__menu>li:hover .sub-menu::before {
    content: "";
    width: 100%;
    height: 10px;
    position: absolute;
    top: -10px;
    left: 0;
}

.header__menu>li:hover .sub-menu {
    display: block;
}

.sub-menu li {
    padding: 0;
}

.sub-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.sub-menu li.menu-item-has-arrow a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sub-menu li.menu-item-has-arrow a::after {
    content: "";
    width: 10px;
    height: 11px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='11' viewBox='0 0 10 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 1.5C1.7 1.5 6.66667 1.5 9 1.5M9 1.5V10.5M9 1.5L1 9.5' stroke='%23AAFE97' stroke-width='1.5'/%3E%3C/svg%3E%0A");
    margin-left: 5px;
}

.sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-3) !important;
}

/* Стили футера */
.footer__top-inner,
.footer__bottom-inner {
    display: flex;
}

.footer__top {
    padding: 100px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__social-text {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.footer__social-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    gap: 10px;
}

.footer__social-link {
    display: block;
    width: 40px;
    height: 40px;
    background-color: #222539;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__social-link svg {
    display: block;
    color: #fff;
}

.footer__social-link--tg svg {
    position: relative;
    left: -1px;
}

.footer__social-link--youtube svg {
    width: 15px;
}

.footer__social-link:hover svg {
    color: #fff;
}

.footer__social-link:hover svg:hover {
    color: #fff;
}

.footer__social-item--discord:hover {
    background-color: #6163eb;
}

.footer__social-link--twitter:hover {
    background-color: var(--contrast);
}

.footer__social-link--tg:hover {
    background-color: #59a6e6;
}

.footer__social-link--youtube:hover {
    background-color: #E9381D;
}

.footer__menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0 0 0 92px;
    padding: 0;
}

.footer-item {
    position: relative;
}

.footer-label {
    display: block;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    cursor: default;
}

.footer-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1;
}

.footer-sub-menu li {
    font-size: 14px;
    line-height: 1;
}

.footer-sub-menu li a {
    text-decoration: none !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 2.6;
    transition: color 0.3s ease;
}

.footer-sub-menu li a:hover {
    text-decoration: underline !important;
}

.footer__bottom {
    padding: 36px 0 36px;
}

.footer__logo {
    margin-right: 10px;
}

.footer__bottom-list {
    margin: 0 0 0 auto;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    align-self: center;
}

.footer__bottom-list li {
    font-size: 12px;
    line-height: 1;
}

.footer__bottom-list a {
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.7;
    text-decoration: none !important;
    color: #fff !important;
}

.footer__bottom-list a:hover {
    text-decoration: underline !important;
}

.footer__copy {
    margin: 0 0 0 59px;
    font-weight: 800;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.7;
    align-self: center;
}

/* Стили блока */
.blog {
    background-image: url("../img/top-bg.png");
    background-repeat: no-repeat;
    background-position: top -176px center;
    width: 100%;
}

.blog-top {
    padding: 238px 0 250px;
}

.blog-top-title {
    text-align: center;
}

.blog-top-cat {
    display: flex;
    justify-content: center;
}

.blog-top-btn {
    display: block;
    background-color: #0e101a;
    border-radius: 30px;
    padding: 16px 20px;
    font-family: 'Hauora', sans-serif;
    font-weight: 800;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-top-btn:after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 5px;
    background-image: url("../img/tob-cat-btn.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.blog-top-btn:hover,
.blog-top-btn:focus {
    background-color: #0e101a;
    color: #fff;
}

.blog-top-btn:focus-visible {
    outline-offset: 2px;
    outline: 1px solid #fff;
}



.blog-grid {
    margin-top: -100px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px 30px;
    margin-bottom: 40px;
}

/* Классы для элементов сетки */
.grid-item-12 {
    grid-column: span 12;
}

.grid-item-6 {
    grid-column: span 6;
}

.grid-item-4 {
    grid-column: span 4;
}

/* Стили для записей */
.post-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-thumbnail a {
    display: block;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.post-category {
    display: block;
    font-size: 14px;
    line-height: 1em;
}

.post-category a {
    background-color: #303348;
    display: inline-block;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1em;
    text-transform: uppercase;
}

.post-title {
    margin: 15px 0;
}

.post-info {
    display: flex;
    gap: 5px;
}

.post-info p {
    margin: 0;
    display: block;
    font-size: 14px;
    line-height: 1em;
    font-weight: 600;
    opacity: 0.4;
    text-transform: uppercase;
}

.post-item.grid-item-12 {
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.post-item.grid-item-12 .post-thumbnail {
    grid-column: span 7;
}

.post-item.grid-item-12 .post-content-wrapper {
    grid-column: span 5;
}

/* Стили пагинации */
.grid-pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    padding: 40px 0;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #303348;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.page-numbers.current {
    color: #fff;
}

@media (min-width: 1200px) {
    .grid-item-4 .post-title {
        font-size: 28px;
    }
}

@media (max-width: 1199px) and (min-width: 1024px) {
    .grid-item-4 {
        grid-column: span 6;
    }

    .footer__menu {
        margin-left: 50px;
        gap: 25px;
    }
}

@media (max-width: 1023px) {
    .header__nav {
        display: none;
    }

    .header__btn-search {
        margin-left: auto;
    }

    .header__btn-burger {
        display: block;
    }

    .header__btn-burger.open {
        background-image: url("../img/burger-icon-close.svg");
    }

    .header.open {
        height: 100%;
        background-color: #0E101A;
    }

    .header.open .header__nav {
        display: block;
        position: absolute;
        top: 88px;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0 15px;
        overflow: auto;
    }

    .header__menu {
        flex-direction: column;
        padding: 15px 0 43px;
        gap: 30px;
    }

    .menu-label {
        opacity: 0.5;
        font-size: 12px;
        padding: 0;
        margin: 0 0 20px;
    }

    .menu-label::after {
        display: none;
    }

    .sub-menu {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0;
        border: none;
        background-color: transparent;
    }

    .header__menu>li:hover .sub-menu::before {
        display: none;
    }

    .header__menu>li {
        margin: 0;
    }

    .sub-menu a {
        padding: 0;
    }

    .sub-menu a:hover {
        background-color: transparent;
        color: inherit !important;
    }

    .header__menu>li:hover .sub-menu {
        display: flex;
    }

    .footer__top-inner {
        flex-direction: column;
        align-items: center;
    }

    .footer__social {
        margin-bottom: 40px;
    }

    .footer__menu {
        margin: auto;
        max-width: 460px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
}

@media (max-width: 1023px) and (min-width: 734px) {
    .grid-item-4 {
        grid-column: span 6;
    }

    .post-item.grid-item-12 .post-thumbnail {
        grid-column: span 6;
    }

    .post-item.grid-item-12 .post-content-wrapper {
        grid-column: span 6;
    }
}

@media (max-width: 733px) {
    .post-item.grid-item-12 {
        display: flex;
    }

    .grid-item-6 {
        grid-column: span 12;
    }

    .grid-item-4 {
        grid-column: span 12;
    }

    .header__btn-start {
        display: none;
    }

    .footer__menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer__bottom-list {
        order: 1;
    }

    .footer__logo {
        display: block;
        width: 21px;
        height: 32px;
        background-image: url("../img/logo.svg");
        background-repeat: no-repeat;
        background-size: auto 100%;
        background-position: top left;
        flex-shrink: 0;
    }

    .footer__logo-img {
        display: none;
    }

    .footer__copy {
        margin: 0 10px 0 0;
        font-size: 10px;
    }

    .footer__bottom-list a {
        font-size: 10px;
    }
}

/* Стили модального окна категорий */
.categories-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-modal.active {
    display: flex;
    opacity: 1;
}

.categories-modal-content {
    padding: 50px;
    background: #fff;
    margin: auto;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s forwards;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.categories-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.categories-modal-close:hover {
    color: #000;
}

.categories-modal-content p {
    font-size: 24px;
    margin-bottom: 20px;
    color: #303348;
    font-weight: 600;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.categories-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.categories-list a {
    display: block;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #303348;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.categories-list a:hover {
    background: #303348;
    color: #fff;
    transform: translateY(-2px);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .categories-modal-content {
        padding: 30px 20px;
        margin: 20px auto;
    }

    .categories-list {
        grid-template-columns: 1fr;
    }

    .categories-modal-content h3 {
        font-size: 20px;
    }

    .blog-top-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Дополнительные стили для body при открытом модальном окне */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}


/* GeneratePress Site CSS */
/* navigation line and hover effect */

@media (min-width: 992px) {
    .main-navigation .menu>.menu-item>a::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 0px;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        display: block;
        width: 0;
        height: 3px;
        border-radius: 2px;
        background-color: var(--accent-3);
        transition: all 300ms ease-in-out;
    }
}

.main-navigation .menu>.menu-item>a:hover::after,
.main-navigation .menu>.menu-item>a:focus::after,
.main-navigation .menu>.current-menu-item>a::after {
    width: 24px;
}

/* remove bullets on WP category list block */
.wp-block-categories {
    list-style: none;
    margin-left: unset;
}

/* remove search icon right padding on desktop menu */
@media (min-width: 992px) {
    .main-navigation .menu-bar-item>a {
        padding-right: 0;
    }
}

/* Скрыть мобильный футер на больших экранах */
@media (min-width: 1201px) {
    .footer-mobile {
        display: none;
    }
}

/* Скрыть десктопный футер на мобилке */
@media (max-width: 1200px) {
    .footer-desktop {
        display: none;
    }
}

/* фикс шапки */

.main-navigation {
    background-color: transparent !important;
}


/* Какая то шляпа */
.main-navigation .main-nav ul li[class*="current-menu"]>a::before {
    display: none !important;
}

/* Подменю: увеличенная ширина и межстрочное расстояние */
.main-navigation ul ul {
    min-width: 280px !important;
    /* ширина выпадающего меню */
    padding: 16px;
    background-color: #0a0c12;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Ссылки внутри подменю */
.main-navigation ul ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 20px;
    /* межстрочный отступ */
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.main-navigation .main-nav ul li.menu-item-has-children>a {
    display: block;
    width: 100%;
    padding-right: 40px;
    /* отступ, чтобы стрелка не наезжала на текст */
    position: relative;
    z-index: 1;
}

.main-navigation .main-nav ul li.menu-item-has-children>a {
    cursor: pointer;
}

/* Убираем отступ у последнего элемента */
.main-navigation ul ul li:last-child a {
    margin-bottom: 0;
}

/* Hover эффект текста и стрелки */
.main-navigation ul ul li:hover>a {
    color: #2D68FF !important;
    background-color: transparent;
}

/* Убираем синюю черту под активным или текущим пунктом меню */
.main-navigation .main-nav ul li>a::before,
.main-navigation .main-nav ul li>a::after {
    display: none !important;
    content: none !important;
}


.main-navigation ul ul li:hover>a.external::after {
    color: #2D68FF !important;
}


.main-navigation .menu-item.menu-button>a {
    background-color: white;
    color: black !important;
    height: 44px;
    line-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.2s ease;
    font-size: 14px;
    box-sizing: border-box;
    border: none;
}

.main-navigation .menu-item.menu-button>a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    /* вертикальный и горизонтальный отступ */
    margin-top: 20px;
    border-radius: 999px;
    background-color: white;
    color: black !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    border: none;
    height: auto;
    /* убираем фиксированную высоту */
    line-height: normal;
}

/* Полностью скрыть главное меню и мобильное меню */
.main-navigation,
.menu-toggle,
.navigation-branding {
    display: none !important;
}

/* Отключаем hover и активные эффекты */
.main-navigation .menu-item.menu-button>a:hover,
.main-navigation .menu-item.menu-button>a:focus,
.main-navigation .menu-item.menu-button.current-menu-item>a {
    background-color: white !important;
    color: black !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
}

/* Убираем синие линии или псевдоэлементы */
.main-navigation .menu-item.menu-button>a::before,
.main-navigation .menu-item.menu-button>a::after {
    display: none !important;
}

/* Обёртка навигации */
.main-navigation .inside-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Цвет ссылок только на страницах блога (одиночные посты и архивы) */
body.single-post a,
body.blog a,
body.archive a {
    color: #2D68FF;
    /* здесь укажи нужный цвет */
    text-decoration: underline;
}

/* При наведении */
body.single-post a:hover,
body.blog a:hover,
body.archive a:hover {
    color: #2D68FF;
    /* и цвет при наведении */
    text-decoration: none;
}

/* Категория: белый цвет, без подчеркивания */
body.single-post .gb-text a {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Автор: белый цвет, без подчеркивания */
body.single-post .wp-block-post-author-name__link {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Поведение при наведении — также белый, без подчеркивания */
body.single-post .gb-text a:hover,
body.single-post .wp-block-post-author-name__link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Все ссылки внутри футера — белые и без подчеркивания */
.site-footer a {
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* При наведении — тоже белые и без подчёркивания */
.site-footer a:hover {
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Убрать подчеркивание у ссылок в хедере */
.site-header a {
    text-decoration: none !important;
}

/* При наведении — тоже без подчеркивания */
.site-header a:hover {
    text-decoration: none !important;
}

/* Заголовки статей — ссылки белые по умолчанию */
body.single-post h1 a,
body.single-post h2 a,
body.single-post h3 a,
body.archive h1 a,
body.archive h2 a,
body.archive h3 a,
body.blog h1 a,
body.blog h2 a,
body.blog h3 a {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* При наведении — синие */
body.single-post h1 a:hover,
body.single-post h2 a:hover,
body.single-post h3 a:hover,
body.archive h1 a:hover,
body.archive h2 a:hover,
body.archive h3 a:hover,
body.blog h1 a:hover,
body.blog h2 a:hover,
body.blog h3 a:hover {
    color: #2d68ff !important;
    /* или замени на свой оттенок синего */
    text-decoration: none !important;
}