:root {
    --blue-900: #082a52;
    --blue-800: #0b3a6f;
    --blue-700: #0f4b8f;
    --blue-600: #1667b8;
    --blue-500: #2a83d6;
    --blue-300: #9cc6ec;
    --blue-100: #e4effa;
    --blue-50: #f3f8fd;
    --ink: #1d2b3a;
    --ink-soft: #4a5b6d;
    --line: #dbe6f1;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(11, 58, 111, .10);
    --shadow-sm: 0 4px 14px rgba(11, 58, 111, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--blue-50);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

.container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 42px; width: auto; display: block; }
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--blue-700);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    box-shadow: var(--shadow-sm);
    transition: background .2s ease, transform .2s ease;
    white-space: nowrap;
}
.lang-switch:hover { background: var(--blue-600); transform: translateY(-1px); }
.lang-globe { font-size: 1rem; line-height: 1; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: #fff;
    padding: 34px 0 30px;
}
.hero .eyebrow {
    display: inline-block;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--blue-100);
    background: rgba(255, 255, 255, .14);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.hero .lead {
    margin: 0;
    max-width: 760px;
    font-size: 1.05rem;
    color: #eaf3fc;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 16px;
}
.tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--blue-800);
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.3;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .18s ease;
    white-space: normal;
    box-shadow: var(--shadow-sm);
}
.tab:hover { border-color: var(--blue-300); }
.tab.is-active {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: #fff;
}

/* Document card */
.document { display: none; }
.document.is-active { display: block; }
.document-inner {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 38px 40px;
    margin-bottom: 20px;
}

/* Word content typography */
.document-inner h1.doc-title {
    font-size: 1.5rem;
    line-height: 1.35;
    color: var(--blue-800);
    text-align: center;
    margin: 6px 0 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--blue-100);
    letter-spacing: .2px;
}
.document-inner .doc-company {
    text-align: center;
    font-weight: 700;
    color: var(--blue-700);
    letter-spacing: .04em;
    margin: 0 0 6px;
    font-size: 1.02rem;
    text-transform: uppercase;
}
.document-inner .doc-centered { text-align: center; }

.document-inner h2.doc-heading {
    font-size: 1.12rem;
    color: var(--blue-800);
    margin: 30px 0 12px;
    padding-left: 14px;
    border-left: 4px solid var(--blue-500);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.document-inner p {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 1rem;
}
.document-inner strong { color: var(--blue-900); font-weight: 700; }
.document-inner u { text-decoration-color: var(--blue-300); }
.document-inner em { font-style: italic; }
.doc-error { color: #b32020; font-weight: 600; }

/* Tables */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}
table.doc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: .92rem;
}
table.doc-table th,
table.doc-table td {
    border: 1px solid var(--line);
    padding: 11px 13px;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}
table.doc-table thead th {
    background: var(--blue-700);
    color: #fff;
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-color: var(--blue-600);
}
table.doc-table thead th,
table.doc-table thead th * { color: #fff; }
table.doc-table tbody tr:nth-child(even) { background: var(--blue-50); }
table.doc-table tbody tr:hover { background: var(--blue-100); }
table.doc-table strong { color: var(--blue-800); }

/* Actions */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 40px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-weight: 600;
    font-size: .92rem;
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
    border: 1px solid transparent;
}
.btn-outline {
    background: #fff;
    border-color: var(--blue-300);
    color: var(--blue-700);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--blue-100); }
.btn-ghost { color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-100); }

/* QR page */
.qr-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px;
    text-align: center;
    margin: 26px auto 20px;
    max-width: 520px;
}
.qr-card img { width: 300px; max-width: 100%; height: auto; }
.qr-box { display: inline-block; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.qr-url { word-break: break-all; color: var(--ink-soft); font-size: .85rem; }
.qr-note { color: var(--ink-soft); margin: 0 0 6px; }
.qr-title { color: var(--blue-800); margin: 0 0 6px; font-size: 1.25rem; }

/* Footer */
.site-footer {
    background: var(--blue-900);
    color: #cdddf0;
    padding: 30px 0;
    margin-top: 20px;
}
.footer-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-logo { height: 34px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-inner p { margin: 0; font-size: .88rem; line-height: 1.7; }

/* Responsive */
@media (max-width: 640px) {
    .document-inner { padding: 22px 18px 28px; border-radius: 12px; }
    .document-inner h1.doc-title { font-size: 1.22rem; }
    .document-inner h2.doc-heading { font-size: 1rem; }
    .document-inner p { font-size: .96rem; }
    .hero { padding: 26px 0 22px; }
    .hero .lead { font-size: 1rem; }
    .brand-logo { height: 34px; }
    .lang-switch { padding: 8px 13px; font-size: .85rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Print */
@media print {
    body { background: #fff; }
    .site-header, .hero, .tabs, .actions, .site-footer, .qr-tools { display: none !important; }
    .document { display: block !important; }
    .document-inner { border: 0; box-shadow: none; padding: 0; margin: 0; }
    table.doc-table { min-width: 0; font-size: 10pt; }
    .document-inner h2.doc-heading { break-after: avoid; }
    tr, .table-wrap { break-inside: avoid; }
}
