:root {
    --gb-brand: #d3321f;
    --gb-brand-hover: #962416;
    --gb-brand-active: #7b0c00;
    --gb-ink: #2f3640;
    --gb-title: #13243f;
    --gb-dark: #1c2f4f;
    --gb-soft-bg: #f3f5f7;
    --gb-line: #d8dde3;
    --gb-card: #ffffff;
    --gb-radius: 10px;
    --gb-shadow: 0 8px 24px rgba(17, 30, 52, 0.08);
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--gb-ink);
    line-height: 1.65;
    background: #fff;
}

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

a {
    color: var(--gb-dark);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: var(--gb-brand);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #2f8efc;
    outline-offset: 2px;
}

.gb-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.gb-head {
    background: var(--gb-dark);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.gb-nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gb-logo {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: lowercase;
}

.gb-logo img {
    max-width: 280px;
    width: auto;
    height: auto;
}

.gb-logo:hover {
    color: #fff;
    text-decoration: none;
}

.gb-main-nav {
    display: flex;
    flex: 3 1 0;
    align-items: center;
    justify-content: space-evenly;
    gap: 12px;
    min-width: 0;
}

.gb-main-nav a {
    color: #f8fbff;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.gb-main-nav a:hover {
    color: #fff;
}

.gb-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: transparent;
    padding: 10px 9px;
    gap: 5px;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.gb-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
}

.gb-hero {
    background: var(--gb-dark);
    color: #fff;
    padding: 40px 0 50px;
}

.gb-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    align-items: center;
}

.gb-hero-layout.is-single {
    grid-template-columns: 1fr;
}

.gb-hero-layout.is-single .gb-hero-block {
    max-width: none;
}

.gb-hero-block {
    max-width: 720px;
}

.gb-hero h1 {
    margin: 0;
    font-size: clamp(1.875rem, 4.2vw, 3.6rem);
    line-height: 1.08;
    color: #fff;
}

.gb-hero p {
    margin: 18px 0 0;
    max-width: 780px;
    font-size: clamp(1rem, 2.3vw, 1.3rem);
    opacity: 0.92;
}

.gb-hero .gb-hero-block > p {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.gb-hero-block .gb-btn {
    margin-top: 22px;
}

.gb-hero-banner {
    background: var(--gb-soft-bg);
    margin-top: 40px;
    padding: 0 0 20px;
}

.gb-hero-feature {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(8, 20, 38, 0.26);
}

.gb-hero-feature--wide {
    margin-top: -24px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
}

.gb-hero-feature-image {
    display: block;
    color: inherit;
}

.gb-hero-feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 360px;
    object-fit: cover;
}

.gb-hero-feature-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gb-hero-feature-kicker {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5a667a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gb-hero-feature-title {
    display: block;
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gb-title);
}

.gb-hero-feature-summary {
    margin: 10px 0 0;
    font-size: 0.92rem;
    color: #485465;
}

.gb-main-surface {
    background: var(--gb-soft-bg);
    padding: 44px 0;
}

.gb-home-categories {
    background: var(--gb-soft-bg);
    padding: 0 0 44px;
}

.gb-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.gb-hot-section h2,
.gb-board h2,
.gb-page-wrap h1 {
    margin: 0 0 20px;
    color: var(--gb-title);
}

.gb-home-category + .gb-home-category {
    margin-top: 30px;
}

.gb-home-category h2 {
    margin: 0 0 20px;
}

.gb-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gb-card {
    background: var(--gb-card);
    border: 1px solid var(--gb-line);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gb-card-media img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gb-card-body {
    padding: 16px;
}

.gb-card-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gb-title);
    margin-bottom: 10px;
}

.gb-card-summary {
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.gb-card-meta {
    margin-bottom: 12px;
    color: #5d6775;
    font-size: 0.84rem;
}

.gb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gb-btn--primary {
    background: var(--gb-brand);
    color: #fff;
}

.gb-btn--primary:hover {
    background: var(--gb-brand-hover);
    color: #fff;
    text-decoration: none;
}

.gb-btn--primary:active {
    background: var(--gb-brand-active);
}

.gb-btn--neutral {
    background: var(--gb-dark);
    color: #fff;
}

.gb-btn--neutral:hover {
    background: var(--gb-title);
    color: #fff;
    text-decoration: none;
}

.gb-btn--neutral:active {
    background: #0f1c31;
}

.gb-btn--primary:disabled,
.gb-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gb-btn--sm {
    height: 32px;
    padding: 0 10px;
    font-size: 0.83rem;
}

.gb-board {
    background: #fff;
    border: 1px solid var(--gb-line);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow);
    padding: 20px;
}

.gb-hot-section + .gb-board {
    margin-top: 28px;
}

.gb-board table {
    width: 100%;
    border-collapse: collapse;
}

.gb-board td {
    border-bottom: 1px solid var(--gb-line);
    padding: 14px 8px;
    font-size: 0.9rem;
}

.gb-board tr:last-child td {
    border-bottom: 0;
}

.gb-page-wrap {
    padding: 40px 0 56px;
}

.gb-breadcrumb {
    margin: 0 0 18px;
}

.gb-breadcrumb ol {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    font-size: 0.88rem;
}

.gb-breadcrumb li + li::before {
    content: "/";
    margin-right: 10px;
    color: #97a1ad;
}

.gb-category-head p {
    margin: 0 0 18px;
}

.gb-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.gb-side-block {
    background: #fff;
    border: 1px solid var(--gb-line);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow);
    padding: 18px;
}

.gb-side-title,
.gb-text-title {
    font-weight: 700;
    color: var(--gb-title);
    margin-bottom: 14px;
}

.gb-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gb-side-list li + li {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gb-line);
}

.gb-side-list a {
    display: block;
    font-weight: 600;
}

.gb-side-list span {
    color: #707c8e;
    font-size: 0.82rem;
}

.gb-detail h1 {
    margin-bottom: 12px;
}

.gb-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.9rem;
    color: #5f6876;
    margin-bottom: 18px;
}

.gb-detail-content {
    background: #fff;
    border: 1px solid var(--gb-line);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow);
    padding: 20px;
}

.gb-detail-content h2 {
    color: var(--gb-title);
    margin-top: 30px;
}

.gb-detail-content h3 {
    color: var(--gb-title);
}

.gb-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    display: block;
    overflow-x: auto;
}

.gb-detail-content th,
.gb-detail-content td {
    border: 1px solid var(--gb-line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.gb-detail-content th {
    background: #f7f9fc;
    color: var(--gb-title);
    font-weight: 700;
}

.gb-detail-content a {
    color: var(--gb-brand);
}

.gb-detail-content a:hover {
    color: var(--gb-brand-hover);
}

.gb-detail-content a:active {
    color: var(--gb-brand-active);
}

.gb-faq {
    margin-top: 28px;
}

.gb-faq h2 {
    margin: 0 0 12px;
}

.gb-faq-item {
    background: #fff;
    border: 1px solid var(--gb-line);
    border-radius: 8px;
    padding: 14px;
}

.gb-faq-item + .gb-faq-item {
    margin-top: 10px;
}

.gb-faq-item h3 {
    margin-top: 0;
}

.gb-related {
    margin-top: 30px;
}

.gb-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gb-related .gb-card-media img {
    aspect-ratio: 1 / 1;
}

.gb-related .gb-card-body {
    padding: 12px;
}

.gb-related .gb-card-title {
    font-size: 0.98rem;
    margin-bottom: 8px;
}

.gb-related .gb-card-summary {
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.gb-related .gb-card-meta {
    margin-bottom: 10px;
    font-size: 0.78rem;
}

.gb-related .gb-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 0.82rem;
}

.gb-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.gb-page-btn,
.gb-page-num {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--gb-line);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.gb-page-num.is-current {
    border-color: var(--gb-brand);
    color: var(--gb-brand);
    font-weight: 700;
}

.gb-page-btn.is-disabled {
    opacity: 0.5;
}

.gb-static-page h1,
.gb-not-found h1 {
    margin-bottom: 14px;
}

.gb-not-found {
    max-width: 760px;
}

.gb-404-cats {
    margin-top: 24px;
}

.gb-404-cats ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
}

.gb-foot {
    border-top: 1px solid var(--gb-line);
    padding: 40px 0 26px;
    background: #fff;
}

.gb-foot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.gb-foot-title {
    font-weight: 700;
    color: var(--gb-title);
    margin-bottom: 12px;
}

.gb-foot-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gb-foot-col li + li {
    margin-top: 8px;
}

.gb-copy {
    margin-top: 26px;
    font-size: 0.87rem;
    color: #697587;
}

@media (max-width: 1024px) {
    .gb-hero-layout {
        grid-template-columns: 1fr;
    }

    .gb-hero-feature {
        max-width: 560px;
    }

    .gb-hero-feature--wide {
        max-width: none;
        margin-top: -20px;
        grid-template-columns: 1fr;
    }

    .gb-hero-feature--wide .gb-hero-feature-image img {
        min-height: 220px;
    }

    .gb-main-grid,
    .gb-two-col,
    .gb-foot-grid {
        grid-template-columns: 1fr;
    }

    .gb-list-grid {
        grid-template-columns: 1fr;
    }

    .gb-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gb-wrap {
        width: min(1120px, calc(100% - 26px));
    }

    .gb-logo {
        flex: 0 0 auto;
    }

    .gb-nav-toggle {
        display: inline-flex;
    }

    .gb-main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        z-index: 20;
        background: var(--gb-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        padding: 14px 16px 18px;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
    }

    .gb-main-nav.is-open {
        display: flex;
    }

    .gb-main-nav a {
        width: 100%;
        text-align: left;
        padding: 8px 0;
    }

    .gb-hero {
        padding: 28px 0 38px;
    }

    .gb-hero-layout {
        gap: 18px;
    }

    .gb-hero-feature {
        max-width: none;
    }

    .gb-hero-banner {
        padding: 0 0 16px;
    }

    .gb-hero-feature--wide {
        margin-top: -12px;
    }

    .gb-404-cats ul {
        grid-template-columns: 1fr;
    }

    .gb-related-grid {
        grid-template-columns: 1fr;
    }
}
