*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
    --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    background-color: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--ink);
}

.site-logo span { color: var(--primary); }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.site-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--ink); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

@media (max-width: 767px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 24px 24px;
    }
    .site-nav.open { display: block; }
    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.hero-band {
    padding: 80px 0 64px;
    background: var(--canvas);
}

.hero-band h1 {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 800px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .hero-band h1 { letter-spacing: -1px; }
}

.hero-band .hero-sub {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
}

.hero-image {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.hero-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.section { padding: 80px 0; }

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-body {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 640px;
}

.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1023px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
    .article-grid { grid-template-columns: 1fr; }
}

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    flex: 1;
    margin-bottom: 20px;
}

.article-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    padding-bottom: 2px;
    align-self: flex-start;
    transition: color 0.15s, border-color 0.15s;
}

.article-card-link:hover { color: var(--primary); border-color: var(--primary); }

.info-band {
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

@media (max-width: 1023px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
    .info-grid { grid-template-columns: 1fr; }
}

.info-card {
    padding: 24px;
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
}

.info-card-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted-soft);
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.4;
}

.info-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.contact-band { padding: 80px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 48px;
}

@media (max-width: 767px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 12px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}

.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-group input.error,
.form-group textarea.error { border-color: var(--semantic-error); }

.form-group .field-error {
    font-size: 12px;
    color: var(--semantic-error);
    display: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    align-self: flex-start;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
    display: none;
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px;
    font-size: 14px;
    color: var(--semantic-success);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    padding: 64px 0 80px;
    align-items: start;
}

@media (max-width: 1023px) {
    .article-layout { grid-template-columns: 1fr; gap: 40px; }
}

.article-content h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -1.5px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
}

.article-meta-item {
    font-size: 13px;
    color: var(--muted);
}

.article-feat-img {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin-bottom: 40px;
    max-height: 400px;
    object-fit: cover;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    line-height: 1.25;
    margin: 40px 0 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin: 28px 0 12px;
}

.article-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 8px;
}

.article-body a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); padding-bottom: 1px; }
.article-body a:hover { color: var(--primary); border-color: var(--primary); }

.article-body .callout {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--ink);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    margin: 28px 0;
}

.article-body .callout p { margin-bottom: 0; font-size: 14px; }

.article-body img {
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin: 24px 0;
}

.article-body .img-caption {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: -16px;
    margin-bottom: 24px;
}

.article-sidebar { position: sticky; top: 80px; }

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-card ul { list-style: none; }

.sidebar-card li { padding: 6px 0; border-bottom: 1px solid var(--hairline-soft); }
.sidebar-card li:last-child { border-bottom: none; }

.sidebar-card a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.sidebar-card a:hover { color: var(--ink); }

.sidebar-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 12px;
}

.page-layout { max-width: 760px; margin: 0 auto; padding: 64px 0 80px; }

.page-layout h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: 8px;
}

.page-layout .page-date {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
}

.page-layout h2 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 36px 0 14px;
}

.page-layout h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 24px 0 10px;
}

.page-layout p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 18px;
}

.page-layout ul, .page-layout ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.page-layout li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 6px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

@media (max-width: 767px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-grid img {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
}

@media (max-width: 1023px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child { grid-column: span 2; }
}

@media (max-width: 639px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-col:first-child { grid-column: span 1; }
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.footer-brand span { color: var(--primary); }

.footer-tagline {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--ink); }

.footer-contact {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}

.footer-contact a { color: var(--ink); }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    margin-top: 48px;
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

.footer-disclaimer {
    font-size: 12px;
    color: var(--muted-soft);
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--ink);
    border-radius: var(--rounded-lg);
    padding: 16px 24px;
    max-width: 600px;
    width: calc(100% - 48px);
    display: none;
}

.cookie-banner.show { display: flex; align-items: center; gap: 20px; }

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.cookie-inner p {
    font-size: 14px;
    color: var(--canvas);
    line-height: 1.4;
    flex: 1;
    min-width: 200px;
}

.cookie-inner p a { color: var(--canvas); border-bottom: 1px solid rgba(247,247,244,0.4); }

.cookie-btns { display: flex; gap: 10px; }

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    height: 36px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas-soft);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    height: 36px;
    border-radius: var(--rounded-md);
    border: 1px solid rgba(247,247,244,0.3);
    cursor: pointer;
    transition: border-color 0.15s;
    white-space: nowrap;
}

.btn-cookie-reject:hover { border-color: rgba(247,247,244,0.6); }

.table-responsive { overflow-x: auto; margin: 20px 0; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--surface-card);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.data-table th {
    background: var(--canvas-soft);
    color: var(--ink);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
}

.data-table td {
    padding: 12px 16px;
    color: var(--body);
    border-bottom: 1px solid var(--hairline-soft);
}

.data-table tr:last-child td { border-bottom: none; }
