:root {
    --color-primary: #7c2d12;
    --color-primary-dark: #5c1f09;
    --color-accent: #0f766e;
    --color-accent-dark: #0a5c56;
    --color-bg: #fff7ed;
    --color-bg-section: #fdf3e3;
    --color-text: #2a1005;
    --color-text-muted: #7a4f2e;
    --color-border: #e8c9a0;
    --font-main: Tahoma, Geneva, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

.table-responsive,
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

a:hover,
a:focus {
    text-decoration: underline;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

p {
    margin: 0 0 16px;
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.7;
    margin: 0 0 16px;
    color: var(--color-text);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

ul, ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

li {
    line-height: 1.7;
    margin-bottom: 6px;
}

strong {
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff7ed;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-dark);
    color: #fff7ed;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(124, 45, 18, 0.25);
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--color-accent-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: #fff7ed;
    border: 2px solid #fff7ed;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: #fff7ed;
    color: var(--color-primary);
    text-decoration: none;
}

.skip-to-content {
    position: absolute;
    top: -60px;
    left: 24px;
    background-color: var(--color-primary);
    color: #fff7ed;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 9999;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 12px;
    outline: 2px solid var(--color-accent);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

table th {
    background-color: var(--color-primary);
    color: #fff7ed;
    padding: 12px 16px;
    font-weight: 700;
    text-align: left;
}

table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

table tr:nth-child(even) td {
    background-color: var(--color-bg-section);
}

table tr:hover td {
    background-color: #fde8cc;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

@media (max-width: 768px) {
    body { overflow-x: hidden; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .container {
        width: 100%;
        padding: 0 16px;
    }

    .grid, [class*='grid'] {
        grid-template-columns: 1fr !important;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    table th,
    table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}