*, *::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;
    --on-primary: #ffffff;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --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;
}

html { scroll-behavior: smooth; }

body {
    background: var(--canvas);
    color: var(--body);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary); }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    list-style: none;
    min-width: 220px;
    padding: 8px 0;
    z-index: 200;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    white-space: nowrap;
}

.dropdown-menu li a:hover { color: var(--ink); background: var(--canvas); }

.nav-dropdown:hover .dropdown-menu { display: block; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* HERO */
.hero {
    padding: 80px 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-meta {
    font-size: 13px;
    color: var(--muted);
}

.hero-img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.hero-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
    margin-bottom: 48px;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}

.card:hover { border-color: var(--hairline-strong); }

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 10px;
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 16px;
}

.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    padding-bottom: 2px;
    transition: border-color 0.15s, color 0.15s;
}

.card-link:hover { color: var(--primary); border-color: var(--primary); }

/* INFO BLOCKS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.info-block {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 28px;
}

.info-block-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.info-block p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

/* DIVIDER */
.section-divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

/* ARTICLE PAGE */
.article-hero {
    padding: 64px 0 0;
    border-bottom: 1px solid var(--hairline);
}

.article-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-hero-img {
    margin-top: 48px;
    border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-bottom: none;
}

.article-hero-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-date {
    font-size: 13px;
    color: var(--muted);
}

.article-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

.article-content h1 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    line-height: 1.25;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin: 28px 0 12px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 24px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 8px;
}

.article-content a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
}

.article-content a:hover { color: var(--primary); border-color: var(--primary); }

.article-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14px;
}

.article-content .data-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    font-weight: 600;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-content .data-table td {
    padding: 10px 14px;
    border: 1px solid var(--hairline);
    color: var(--body);
}

.article-content .data-table tr:nth-child(even) td {
    background: var(--canvas-soft);
}

.article-sidebar {
    position: sticky;
    top: 84px;
}

.sidebar-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-box-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box ul li {
    border-bottom: 1px solid var(--hairline-soft);
    padding: 10px 0;
    font-size: 14px;
}

.sidebar-box ul li:last-child { border-bottom: none; }

.sidebar-box ul li a { color: var(--body); }
.sidebar-box ul li a:hover { color: var(--ink); }

.highlight-box {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 28px 0;
}

.highlight-box p {
    font-size: 15px;
    color: var(--ink);
    margin: 0;
}

/* CONTACT FORM */
.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }

.form-error {
    font-size: 13px;
    color: var(--semantic-error);
    margin-top: 4px;
    display: none;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    display: inline-block;
    background: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    transition: background 0.15s;
}

.btn-secondary:hover { background: var(--canvas); }

.form-loading {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    margin-top: 16px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--hairline);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
    display: none;
    background: #e8f5f0;
    border: 1px solid #b3ddd0;
    border-radius: var(--rounded-md);
    padding: 16px;
    color: var(--semantic-success);
    font-size: 14px;
    margin-top: 16px;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    z-index: 999;
    padding: 16px 24px;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-inner p {
    font-size: 14px;
    line-height: 1.5;
    color: #d4d2ca;
}

.cookie-inner a { color: var(--canvas); border-bottom: 1px solid rgba(255,255,255,0.3); }

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner .btn-primary {
    background: var(--primary);
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

.cookie-banner .btn-secondary {
    background: transparent;
    color: #d4d2ca;
    border-color: rgba(255,255,255,0.2);
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

/* PAGE HERO (regular pages) */
.page-hero {
    padding: 64px 0;
    border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 16px;
    color: var(--body);
    max-width: 600px;
    line-height: 1.5;
}

.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin: 40px 0 14px;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 10px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 18px;
}

.page-content ul {
    margin: 0 0 18px 24px;
}

.page-content ul li {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 6px;
}

.page-updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
}

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    display: block;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--body);
}

.footer-col ul li a:hover { color: var(--ink); }

.footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--muted);
}

.footer-disclaimer {
    font-size: 13px;
    color: var(--muted-soft);
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-soft); }

/* RELATED */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 40px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 24px;
    }

    .nav-links.open { display: flex; }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--hairline-soft);
    }

    .nav-toggle { display: flex; }

    .nav-dropdown .dropdown-menu {
        position: static;
        border: none;
        padding: 0 0 0 16px;
        border-radius: 0;
    }

    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }

    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 32px; }
    .hero { padding: 48px 0; }
    .section { padding: 48px 0; }
    .section-title { font-size: 28px; }
    .cards-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .article-content h1 { font-size: 28px; }
    .article-content h2 { font-size: 22px; }
    .article-hero-img img { height: 240px; }
    .hero-img img { height: 240px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .contact-form { padding: 24px; }
    .page-hero h1 { font-size: 28px; }
}

@media (max-width: 640px) {
    .container, .nav-container, .hero-inner, .article-layout, .article-hero-inner,
    .footer-container, .footer-bottom, .page-content { padding-left: 16px; padding-right: 16px; }
}
