:root {
    --token-brand-brand-color-3-500: #549fdd;
    --token-brand-primary-1-400: #ccbbae;
    --token-brand-primary-1-500: #e0cebf;
    --token-brand-secondary-2: #392f24;
    --token-brand-secondary-4: #2f2b2a;
    --token-brand-secondary-5: #433e3d;
    --token-brand-secondary-6: rgba(168, 157, 148, 0.2);
    --token-brand-secondary-13: #dfc7b4;
    --token-brand-button-normal: #d86927;
    --token-brand-button-hover: #b65d28;
    --token-brand-button-active: #e08752;
    --token-brand-shadow-1: 0 -4px 10px rgba(0, 0, 0, 0.05), 0 14px 20px rgba(0, 0, 0, 0.2);
    --token-border-radius-button: 20px;
    --token-font-ui-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    --joy-header-offset: 16px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--joy-header-offset);
}

body {
    background-color: var(--token-brand-secondary-4);
    color: var(--token-brand-primary-1-400);
    font-family: var(--token-font-ui-family);
}

.section-box-header {
    background: linear-gradient(180deg, var(--token-brand-secondary-5) 0%, var(--token-brand-secondary-4) 100%);
    border-bottom: 1px solid var(--token-brand-secondary-6);
    box-shadow: var(--token-brand-shadow-1);
    width: 100%;
    min-height: 64px;
    position: static !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
}

#header_,
.section-box-header {
    background-color: var(--token-brand-secondary-4) !important;
}

.section-box-header *,
.section-box-header *::before,
.section-box-header *::after {
    box-sizing: border-box;
}

.header-container {
    max-width: 1200px;
    padding-left: 10px;
    padding-right: 10px;
}

.header-row {
    min-height: 64px;
    align-items: center;
}

.header-brand,
.header-actions {
    display: flex;
    align-items: center;
}

.header-brand {
    justify-content: flex-start;
}

.header-actions {
    justify-content: flex-end;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--token-brand-primary-1-500);
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    min-width: 0;
    height: auto;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
}

.site-logo {
    max-width: 146px;
    max-height: 32px;
    width: auto;
    height: auto;
    display: block;
}

.logo-link,
.logo-link:hover,
.logo-link:focus,
.logo-link:active,
.logo-link .site-logo,
.logo-link:hover .site-logo,
.logo-link:focus .site-logo,
.logo-link:active .site-logo {
    transform: none !important;
    transition: none !important;
}

.header-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.header-buttons__link {
    flex: 0 0 auto;
}

.header-buttons .buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--token-border-radius-button);
    font-family: var(--token-font-ui-family);
    font-weight: 700;
    font-size: 12px;
    line-height: 14px;
    height: 30px;
    text-align: center;
    padding: 0 14px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color 0.12s linear, color 0.12s linear, border-color 0.12s linear;
    box-shadow: none !important;
    text-transform: none;
}

.header-buttons .btn-register {
    width: 134px;
    min-width: 134px;
    background: var(--token-brand-button-normal) !important;
    border-color: var(--token-brand-button-normal);
    color: #fff !important;
    text-shadow: none !important;
}

.header-buttons .btn-register span {
    color: #fff !important;
}

.header-buttons .btn-register:hover {
    background: var(--token-brand-button-hover) !important;
    border-color: var(--token-brand-button-hover);
}

.header-buttons .btn-register:active {
    background: var(--token-brand-button-active) !important;
    border-color: var(--token-brand-button-active);
}

.header-buttons .btn-login {
    width: 72px;
    min-width: 72px;
    background: transparent !important;
    border-color: var(--token-brand-secondary-6);
    color: var(--token-brand-primary-1-500) !important;
    text-shadow: none !important;
}

.header-buttons .btn-login span {
    color: var(--token-brand-primary-1-500) !important;
}

.header-buttons .btn-login:hover {
    background: rgba(168, 157, 148, 0.08) !important;
    border-color: rgba(168, 157, 148, 0.34);
}

.header-buttons .btn-login:active {
    background: rgba(168, 157, 148, 0.14) !important;
}

.header-links {
    display: none;
}

.header-links li {
    list-style: none;
}

.header-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #5d5148;
    background: #332d2b;
    color: #d7c0ae !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.header-links li a:hover {
    background: #3f3734;
    border-color: #74655a;
    color: #f1ddce !important;
}

.header-links li:first-child a {
    background: #d86927;
    border-color: #d86927;
    color: #fff !important;
}

.header-links li:first-child a:hover {
    background: #b65d28;
    border-color: #b65d28;
}

.button-mobile-menu {
    border: 0;
    background: transparent;
    padding: 0;
}

.section-box-6 {
    background: linear-gradient(180deg, rgba(67, 62, 61, 0.55) 0%, rgba(47, 43, 42, 0.94) 100%);
    border: 1px solid rgba(168, 157, 148, 0.24);
    border-radius: 14px;
    margin-top: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    padding: 12px;
}

.editor-text,
.editor-text p,
.editor-text li,
.editor-text h1,
.editor-text h2,
.editor-text h3 {
    color: var(--token-brand-primary-1-400);
}

.editor-text {
    font-family: var(--token-font-ui-family);
    font-size: 16px;
    line-height: 1.65;
    background: rgba(47, 43, 42, 0.9);
    border: 1px solid rgba(168, 157, 148, 0.2);
    border-radius: 12px;
    padding: 30px 32px;
}

.editor-text h1,
.editor-text h2,
.editor-text h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--token-brand-primary-1-500);
    letter-spacing: 0.01em;
}

.editor-text h1 {
    font-size: 40px;
    line-height: 1.22;
}

.editor-text h2 {
    font-size: 24px;
    line-height: 1.25;
}

.editor-text [id] {
    scroll-margin-top: var(--joy-header-offset);
}

.editor-text p {
    margin-bottom: 14px;
}

.editor-text a {
    color: var(--token-brand-brand-color-3-500);
}

.editor-text > ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 2px 0 6px;
    padding: 0;
    border: 0;
    background: transparent;
    position: static;
}

.articles-item {
    text-decoration: none;
    outline: none;
}

.articles-item span {
    display: inline-block;
    width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(168, 157, 148, 0.26);
    color: var(--token-brand-primary-1-400);
    font-size: 8px;
    line-height: 10px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.articles-item:hover span,
.articles-item:focus-visible span,
.articles-item.is-active span {
    background: transparent;
    border-color: rgba(224, 206, 191, 0.5);
    color: var(--token-brand-primary-1-500);
}

.editor-text :target {
    animation: anchor-glow 1.1s ease;
}

.faq,
.reviews-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
}

.faq-title,
.reviews-title {
    font-size: 28px;
    text-align: center;
    color: var(--token-brand-primary-1-500);
    margin-bottom: 30px;
}

.faq-item,
.review-block {
    border: 1px solid rgba(168, 157, 148, 0.22);
    background: rgba(57, 47, 36, 0.28);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.faq-item:hover,
.review-block:hover {
    border-color: rgba(224, 206, 191, 0.32);
    background: rgba(57, 47, 36, 0.34);
}

.faq-item:focus-within,
.review-block:focus-within {
    border-color: rgba(84, 159, 221, 0.5);
    box-shadow: 0 0 0 2px rgba(84, 159, 221, 0.16);
}

.faq-item-title,
.review-author-name {
    font-size: 18px;
    color: var(--token-brand-primary-1-500);
    margin: 0 0 7px;
    line-height: 1.35;
}

.faq-answer,
.review-text {
    color: var(--token-brand-primary-1-400);
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

/* Panel-like overrides (local and maintainable) */
.section-box-6 .editor-text > ul {
    margin: 0 0 8px;
    gap: 2px;
}

.section-box-6 .articles-item span {
    padding: 0;
    border-bottom-color: rgba(168, 157, 148, 0.24);
}

.section-box-6 .articles-item:hover span,
.section-box-6 .articles-item:focus-visible span,
.section-box-6 .articles-item.is-active span {
    border-bottom-color: rgba(224, 206, 191, 0.62);
}

#footer_,
.section-box-footer {
    background: var(--token-brand-secondary-4) !important;
    border-top: 1px solid var(--token-brand-secondary-6) !important;
}

.section-box-footer,
.section-box-footer a,
.section-box-footer .footer-copyright {
    color: var(--token-brand-primary-1-400) !important;
}

@keyframes anchor-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 206, 191, 0.45);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(224, 206, 191, 0);
    }
}

@media (max-width: 767px) {
    :root {
        --joy-header-offset: 12px;
    }

    .section-box-header {
        min-height: 56px;
    }

    .header-row {
        min-height: 56px;
        position: relative;
    }

    .site-logo {
        max-height: 28px;
    }

    .header-actions {
        justify-content: flex-end;
        padding-right: 40px;
    }

    .header-buttons {
        gap: 6px;
    }

    .header-buttons .buttons {
        height: 28px;
        font-size: 12px;
        line-height: 14px;
    }

    .editor-text > ul {
        gap: 1px;
        margin: 1px 0 4px;
    }

    .articles-item span {
        font-size: 7px;
        line-height: 9px;
    }

    .section-box-6 {
        border-radius: 12px;
        padding: 8px;
    }

    .editor-text {
        border-radius: 10px;
        padding: 20px 16px;
        font-size: 15px;
        line-height: 1.6;
    }

    .editor-text h1,
    .editor-text h2 {
        margin-top: 22px;
    }

    .editor-text h1 {
        font-size: 32px;
        line-height: 1.25;
    }

    .editor-text h2 {
        font-size: 22px;
    }

    .faq-item,
    .review-block {
        border-radius: 10px;
        padding: 12px;
    }

    .header-links {
        display: none;
    }

    .header-buttons .btn-login {
        width: 68px;
        min-width: 68px;
    }

    .header-buttons .btn-register {
        width: 126px;
        min-width: 126px;
    }

    .button-mobile-menu {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }
}
