:root {
    --bg: #1c1c1c;
    --surface: #252525;
    --surface-2: #2e2e2e;
    --accent: #d35400;
    --sand: #c2a36b;
    --text: #ffffff;
    --muted: #b8b8b8;
    --border: #3a3a3a;
    --container: 1200px;
    --head-font: "Arial Black", Impact, "Segoe UI", sans-serif;
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top right, #2d2b26 0%, #1c1c1c 45%, #141414 100%);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--sand);
    outline-offset: 2px;
}

a:hover {
    color: var(--sand);
}

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

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(21, 21, 21, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.brand {
    font-family: var(--head-font);
    letter-spacing: 0.08em;
    font-size: 1.55rem;
}

.menu-list,
.footer-menu,
.social-links,
.footer-news {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-list {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.site-main {
    min-height: 65vh;
}

.hero-section {
    padding: 2.5rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
}

.hero-brand-block,
.featured-card,
.news-card,
.simple-card,
.list-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(160deg, var(--surface) 0%, #222 100%);
    overflow: hidden;
}

.hero-brand-block {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.hero-brand-line {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.hero-logo-image {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-logo {
    margin: 0;
    font-family: var(--head-font);
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.hero-slogan {
    margin: 1rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.55rem);
    font-family: var(--head-font);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.hero-description {
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: clamp(0.95rem, 1.6vw, 1.04rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.hero-quick-links {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.hero-quick-links a {
    background: var(--accent);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    text-align: center;
    font-weight: 700;
    transition: filter 0.2s ease;
}

.hero-quick-links a:hover {
    filter: brightness(1.1);
    color: #fff;
}

.featured-thumb img,
.card-thumb img,
.entry-thumb img {
    width: 100%;
    object-fit: cover;
}

.featured-thumb img {
    aspect-ratio: 16/9;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.featured-content {
    padding: 1rem 1.2rem 1.4rem;
}

.featured-content h2 {
    margin: 0.2rem 0 0.7rem;
    font-family: var(--head-font);
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
    word-break: break-word;
}

.section {
    padding: 1.7rem 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 1.2rem;
}

.section-head h1,
.section-head h2,
.column-title,
.entry-title {
    margin: 0;
    font-family: var(--head-font);
    letter-spacing: 0.01em;
}

.more-link {
    color: var(--sand);
    font-weight: 700;
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-grid > * {
    min-width: 0;
}

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

.card-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card-thumb img {
    aspect-ratio: 16/10;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.card-thumb,
.featured-thumb {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.card-content,
.simple-card,
.list-card {
    padding: 0.95rem 1rem 1.1rem;
}

.card-content h2,
.card-content h3,
.simple-card h3,
.list-card h4 {
    margin: 0 0 0.5rem;
    font-family: var(--head-font);
    font-size: 1.05rem;
    line-height: 1.35;
    word-break: break-word;
}

.card-content p,
.simple-card p,
.list-card p,
.footer-text {
    margin: 0;
    color: var(--muted);
}

.news-card .card-content p:first-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta {
    margin-top: 0.55rem;
    color: var(--sand);
    font-size: 0.84rem;
}

.equip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.equip-grid > div {
    display: grid;
    align-content: start;
    gap: 0.8rem;
}

.list-cards {
    display: grid;
    gap: 1rem;
}

.column-title {
    margin-bottom: 0.35rem;
}

.content-section {
    padding: 2rem 0;
}

.single-wrap {
    width: min(860px, 100%);
}

.entry {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 1.3rem;
}

.entry-title {
    margin-bottom: 1rem;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.entry-content p {
    color: #e8e8e8;
}

.entry-content,
.entry-content p,
.entry-content li,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content table {
    max-width: 100%;
    height: auto;
}

.entry-content iframe {
    width: 100%;
}

.entry-content pre {
    max-width: 100%;
    overflow-x: auto;
}

.subsection-title {
    margin: 1.4rem 0 0.75rem;
    font-family: var(--head-font);
    font-size: 1.1rem;
}

.tag-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list a {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.tag-list a:hover {
    border-color: var(--sand);
    color: var(--sand);
}

.related-posts {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.entry-thumb {
    margin-bottom: 1rem;
}

.thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: repeating-linear-gradient(
        -45deg,
        #2c2c2c,
        #2c2c2c 12px,
        #232323 12px,
        #232323 24px
    );
}

.pagination {
    margin-top: 1rem;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    background: #161616;
}

.footer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    padding: 2rem 0 1.2rem;
}

.footer-title {
    margin: 0 0 0.8rem;
    font-family: var(--head-font);
    font-size: 1.03rem;
}

.footer-news,
.social-links {
    display: grid;
    gap: 0.45rem;
}

.social-links span {
    color: var(--muted);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.footer-menu {
    display: flex;
    gap: 0.8rem;
}

.copyright {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .hero-grid,
    .card-grid-3x2,
    .card-grid-3,
    .card-grid-4,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header-inner {
        min-height: auto;
        padding: 0.8rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }

    .menu-list {
        gap: 0.4rem;
        justify-content: flex-start;
    }

    .menu-list a {
        display: inline-block;
        padding: 0.35rem 0.55rem;
        border: 1px solid var(--border);
        border-radius: 8px;
    }

    .hero-grid,
    .card-grid-3x2,
    .card-grid-3,
    .card-grid-4,
    .equip-grid,
    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-logo {
        font-size: 2.2rem;
    }

    .hero-logo-image {
        width: 48px;
        height: 48px;
    }

    .hero-quick-links {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .footer-menu {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(var(--container), calc(100% - 1.2rem));
    }

    .hero-brand-block {
        padding: 1.3rem;
    }

    .hero-brand-line {
        gap: 0.6rem;
    }

    .hero-logo-image {
        width: 42px;
        height: 42px;
    }

    .featured-content,
    .card-content,
    .simple-card,
    .list-card {
        padding: 0.8rem;
    }
}
