/* ===== Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e1e1e;
    background: #f7f8fa;
}

/* Links */
a {
    color: #e55000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.grid-x {
    display: flex;
}

.grid-padding-x {
    gap: 24px;
}

.cell {
    width: 100%;
}

@media (min-width: 992px) {
    .large-6 {
        width: 50%;
    }
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6a00, #e55000);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(229, 80, 0, .35);
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #121c33;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.menu-grid-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.logo img {
    height: 42px;
    width: auto;
}

.header__btns {
    display: flex;
    gap: 12px;
}

.top-bar {

    display: none;
}

.header-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.header-menu a {
    font-weight: 500;
    color: #333;
}

.header-menu a:hover {
    color: #e55000;
}

.custom-burger {
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.custom-burger span,
.custom-burger span::before,
.custom-burger span::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff;
    content: "";
    transition: .3s;
}

.custom-burger span {
    top: 50%;
    transform: translateY(-50%);
}

.custom-burger span::before {
    top: -9px;
}

.custom-burger span::after {
    top: 9px;
}

.hero {
    background: linear-gradient(135deg, #0f172a, #020617);
    color: #fff;
    padding: 80px 0;
}

.hero__main h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero__rating {
    font-weight: 600;
    margin-bottom: 16px;
}

.hero__rating span {
    color: #ffc107;
    margin-left: 6px;
}

.hero__desc p {
    opacity: .9;
    margin-bottom: 24px;
}

.hero__btns .button {
    font-size: 18px;
}

.main-content {
    padding: 60px 0;
    background: #fff;
}

.entry__content h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.entry__content p {
    margin-bottom: 16px;
    color: #444;
}

.simpletoc-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.simpletoc-list {
    list-style: none;
    border-left: 3px solid #e55000;
    padding-left: 16px;
}

.simpletoc-list li {
    margin-bottom: 8px;
}

.simpletoc-list a {
    color: #333;
    font-size: 15px;
}

.simpletoc-list a:hover {
    color: #e55000;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.wp-block-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.wp-block-table tr:first-child td {
    background: #f1f5f9;
    font-weight: 700;
}

._active {
    display: block !important;
}

footer {

    display: flex;
    background: #121c33;
    color: #ccc;
    padding: 40px 0;
    font-size: 14px;
}

footer ul li {
    list-style: none;
    margin-bottom: 8px;
}

footer ul li a {
    align-items: center;
    display: flex;
}

@media (max-width: 768px) {
    .grid-x {
        flex-direction: column;
    }

    .hero {
        padding: 50px 0;
        text-align: center;
    }

    .hero__main h1 {
        font-size: 32px;
    }

    .header__btns {
        display: none;
    }
}

/* === MOBILE NAVBAR === */
#main-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;

    background-color: #121c33;

    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);

    transform: translateX(100%);
    transition: transform 0.35s ease;

    z-index: 1000;
    overflow-y: auto;
    padding: 24px 20px;
}

/* OPEN STATE */
#main-menu._active {
    transform: translateX(0);
}

#main-menu .header-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* пункты */
#main-menu .menu-item>a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    padding: 10px 0;
}

/* hover */
#main-menu .menu-item>a:hover {
    color: #ff6a00;
}

#main-menu .submenu {
    list-style: none;
    margin-top: 8px;
    margin-left: 16px;

    display: none;
}

/* показываем submenu при клике/hover */
#main-menu .menu-item-has-children:hover>.submenu {
    display: block;
}

/* подпункты */
#main-menu .submenu a {
    font-size: 16px;
    font-weight: 500;
}

body.menu-open {
    overflow: hidden;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 28px;
    height: 28px;
    cursor: pointer;
}

.menu-close::before,
.menu-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;

    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;

    transform-origin: center;
}

/* линии крестика */
.menu-close::before {
    transform: translateY(-50%) rotate(45deg);
}

.menu-close::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* hover */
.menu-close:hover::before,
.menu-close:hover::after {
    background: #ff5900;
}

/* 
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 999;
}


.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
} */