:root {
    --tk-bg: #060606;
    --tk-bg-soft: #101010;
    --tk-surface: #151515;
    --tk-surface-2: #1e1c16;
    --tk-text: #f8f6ee;
    --tk-muted: #c5c1b6;
    --tk-dim: #8f897a;
    --tk-line: rgba(245, 196, 69, 0.2);
    --tk-gold: #f5c445;
    --tk-gold-2: #d89b22;
    --tk-green: #42d6a4;
    --tk-danger: #ff6b5f;
    --tk-max: 1140px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--tk-bg);
    color: var(--tk-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(245, 196, 69, 0.08), rgba(6, 6, 6, 0) 34rem),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px);
    pointer-events: none;
}

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

a {
    color: var(--tk-gold);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: #ffe18b;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    clip: auto;
    background: var(--tk-gold);
    color: #171106;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 6, 6, 0.94);
    border-bottom: 1px solid rgba(245, 196, 69, 0.14);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: min(var(--tk-max), calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.site-branding__link,
.site-footer__logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.custom-logo,
.custom-logo-link img,
.site-branding img,
.brand-logo,
.brand-logo img,
.site-footer__logo img,
.brand-logo--footer {
    width: auto;
    max-width: 148px;
    max-height: 44px;
    object-fit: contain;
}

.site-footer__logo .custom-logo,
.site-footer__logo .custom-logo-link img,
.brand-logo--footer {
    max-width: 128px;
    max-height: 38px;
}

.site-branding__wordmark {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 0.75rem;
    border: 1px solid var(--tk-line);
    color: var(--tk-text);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.primary-navigation {
    display: flex;
    align-items: center;
}

.primary-menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-menu a,
.footer-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.35rem 0.65rem;
    color: var(--tk-muted);
    font-size: 0.94rem;
    line-height: 1.2;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: var(--tk-text);
    background: rgba(245, 196, 69, 0.08);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--tk-line);
    background: transparent;
    color: var(--tk-text);
    cursor: pointer;
}

.menu-toggle__bar {
    width: 18px;
    height: 2px;
    background: currentColor;
}

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

.hero-section {
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4.5rem);
    background:
        linear-gradient(180deg, rgba(245, 196, 69, 0.06), rgba(6, 6, 6, 0)),
        radial-gradient(circle at 50% 0, rgba(66, 214, 164, 0.08), transparent 35rem);
}

.hero-section__inner {
    width: min(var(--tk-max), calc(100% - 32px));
    margin: 0 auto;
    text-align: center;
}

.hero-section__kicker,
.page-hero__kicker {
    margin: 0 0 0.75rem;
    color: var(--tk-gold);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-section h1,
.page-hero h1 {
    max-width: 920px;
    margin: 0 auto;
    color: var(--tk-text);
    font-size: clamp(2.3rem, 4.8vw, 4.85rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.hero-section__intro {
    max-width: 760px;
    margin: 1.25rem auto 0;
    color: var(--tk-muted);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.action-link,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.72rem 1.05rem;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.action-link--primary,
.wp-block-button__link {
    background: linear-gradient(180deg, #ffdc6e, var(--tk-gold-2));
    color: #171106;
    box-shadow: 0 12px 28px rgba(216, 155, 34, 0.2);
}

.action-link--secondary {
    border: 1px solid var(--tk-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--tk-text);
}

.action-link:hover,
.action-link:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
    transform: translateY(-1px);
    color: #171106;
}

.action-link--secondary:hover,
.action-link--secondary:focus-visible {
    color: var(--tk-text);
    background: rgba(245, 196, 69, 0.1);
}

.hero-visual {
    margin: clamp(2rem, 5vw, 3.5rem) auto 0;
}

.hero-visual__image,
.content-shell .wp-block-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(245, 196, 69, 0.18);
    border-radius: 8px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    object-position: center;
}

.brand-snapshot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 1.25rem auto 0;
    overflow: hidden;
    border: 1px solid var(--tk-line);
    background: var(--tk-line);
}

.brand-snapshot__item {
    min-height: 92px;
    padding: 1rem;
    background: rgba(21, 21, 21, 0.96);
    text-align: left;
}

.brand-snapshot__item span {
    display: block;
    color: var(--tk-dim);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-snapshot__item strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--tk-text);
    font-size: 1rem;
    line-height: 1.35;
}

.page-hero {
    width: min(var(--tk-max), calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) 0 2rem;
    text-align: center;
}

.page-hero p {
    max-width: 760px;
    margin: 1rem auto 0;
    color: var(--tk-muted);
}

.content-shell {
    width: min(var(--tk-max), calc(100% - 32px));
    margin: 0 auto clamp(3rem, 7vw, 6rem);
}

.content-shell__inner {
    max-width: 900px;
    margin: 0 auto;
}

.content-shell--home .content-shell__inner {
    max-width: 960px;
}

.content-shell h2,
.content-shell h3 {
    color: var(--tk-text);
    line-height: 1.17;
    letter-spacing: 0;
}

.content-shell h2 {
    margin: 3rem 0 1rem;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.content-shell h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.content-shell p,
.content-shell li,
.content-shell td,
.content-shell th {
    color: var(--tk-muted);
}

.content-shell p {
    margin: 0 0 1rem;
}

.content-shell strong {
    color: var(--tk-text);
}

.content-shell ul,
.content-shell ol {
    padding-left: 1.3rem;
}

.content-shell li + li {
    margin-top: 0.45rem;
}

.content-shell .wp-block-group {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid rgba(245, 196, 69, 0.15);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(245, 196, 69, 0.06), rgba(255, 255, 255, 0.025));
}

.content-shell .wp-block-columns {
    gap: 1rem;
    align-items: stretch;
}

.content-shell .wp-block-column {
    min-width: 0;
}

.content-shell .wp-block-table {
    overflow-x: auto;
}

.content-shell table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border: 1px solid rgba(245, 196, 69, 0.16);
}

.content-shell th,
.content-shell td {
    padding: 0.85rem;
    border-bottom: 1px solid rgba(245, 196, 69, 0.12);
    text-align: left;
    vertical-align: top;
}

.content-shell th {
    color: var(--tk-text);
    background: rgba(245, 196, 69, 0.08);
}

.content-shell .wp-block-image {
    margin: 2rem 0;
}

.content-shell figcaption {
    margin-top: 0.65rem;
    color: var(--tk-dim);
    font-size: 0.9rem;
    text-align: center;
}

.content-shell details {
    margin: 0.8rem 0;
    border: 1px solid rgba(245, 196, 69, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.content-shell summary {
    cursor: pointer;
    padding: 0.95rem 1rem;
    color: var(--tk-text);
    font-weight: 800;
}

.content-shell details p,
.content-shell details ul {
    padding: 0 1rem 1rem;
}

.site-footer {
    border-top: 1px solid rgba(245, 196, 69, 0.15);
    background: #050505;
}

.site-footer__inner {
    width: min(var(--tk-max), calc(100% - 32px));
    margin: 0 auto;
    padding: 2.2rem 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.site-footer p {
    color: var(--tk-muted);
    margin: 0.8rem 0 0;
}

.footer-navigation {
    justify-self: end;
}

.footer-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-footer__responsible {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid rgba(245, 196, 69, 0.12);
    font-size: 0.95rem;
}

.post-list {
    width: min(var(--tk-max), calc(100% - 32px));
    margin: 0 auto 4rem;
    display: grid;
    gap: 1rem;
}

.post-card {
    padding: 1.25rem;
    border: 1px solid rgba(245, 196, 69, 0.15);
    border-radius: 8px;
    background: var(--tk-surface);
}

.post-card h2 {
    margin: 0 0 0.5rem;
}

.search-form {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.search-field {
    min-height: 44px;
    width: min(420px, 76vw);
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--tk-line);
    background: #101010;
    color: var(--tk-text);
}

.search-form button {
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 0;
    background: var(--tk-gold);
    color: #171106;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 900px) {
    .site-header__inner {
        min-height: 64px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 0.75rem 16px 1rem;
        background: rgba(6, 6, 6, 0.98);
        border-bottom: 1px solid rgba(245, 196, 69, 0.15);
    }

    .primary-navigation.is-open {
        display: block;
    }

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

    .primary-menu a {
        justify-content: center;
        border: 1px solid rgba(245, 196, 69, 0.12);
        background: rgba(255, 255, 255, 0.03);
    }

    .brand-snapshot {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .footer-navigation {
        justify-self: start;
    }

    .footer-menu {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15.5px;
    }

    .site-header__inner,
    .hero-section__inner,
    .content-shell,
    .page-hero,
    .post-list,
    .site-footer__inner {
        width: min(100% - 24px, var(--tk-max));
    }

    .custom-logo,
    .custom-logo-link img,
    .site-branding img,
    .brand-logo,
    .brand-logo img {
        max-width: 118px;
        max-height: 36px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .action-link,
    .wp-block-button__link {
        width: 100%;
    }

    .brand-snapshot {
        grid-template-columns: 1fr;
    }

    .brand-snapshot__item {
        min-height: auto;
    }

    .content-shell .wp-block-group {
        padding: 1rem;
    }

    .content-shell th,
    .content-shell td {
        padding: 0.7rem;
    }
}
