/* === СБРОС И ПЕРЕМЕННЫЕ === */
:root {
    --primary-color: #0b2d4b;
    --secondary-color: #375e7f;
    --accent-color: #d45a2e;
    --bg-color: #f2f5f9;
    --paper-bg: #ffffff;
    --text-color: #1a2a3a;
    --text-muted: #4d6374;
    --border-color: #e0e8f0;
    --sidebar-width: 380px;
    --max-width: 1100px;
    --shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
    --radius: 32px;
    --radius-sm: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

/* === LAYOUT === */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-color);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

/* === MAIN CONTENT === */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.paper {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--paper-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    flex: 1;
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-color);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.1);
}

.logo {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    text-align: center;
}

.nav-list {
    list-style: none;
}

.nav-section {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.nav-section ul {
    list-style: none;
    margin-top: 0.5rem;
}

.nav-section li {
    margin-bottom: 0.25rem;
}

.nav-section a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-section a:hover,
.nav-section a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* === COLLAPSIBLE NAVIGATION === */
.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 0.25rem 0.5rem;
    margin: 0.5rem 0 0.25rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-section-header:hover {
    background: rgba(255,255,255,0.05);
}

.nav-section-header .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-section.collapsed .nav-section-header .arrow {
    transform: rotate(-90deg);
}

.nav-section.collapsed ul {
    display: none;
}

.nav-section ul {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-section .nav-article-title {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    margin: 0.1rem 0;
    line-height: 1.4;
}

.nav-section .nav-article-title:hover,
.nav-section .nav-article-title.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* === BURGER MENU === */
.burger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === MAIN CONTENT === */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
}

.paper {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--paper-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

/* === TYPOGRAPHY === */
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    border-left: 8px solid var(--accent-color);
    padding-left: 1.3rem;
}

.subhead {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-top: 0.2rem;
    margin-bottom: 1.8rem;
    padding-left: 2rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

ul, ol {
    margin-left: 1.8rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    font-weight: 600;
    color: #b14521;
}

/* Стили для пунктов в статьях (Пункт 1, Пункт 2...) */
.article-content strong,
.paper strong:not(.warning-block strong):not(.info-block strong):not(.exception-block strong):not(.case-block strong):not(.highlight strong):not(.note strong) {
    color: #b14521;
}

/* Блок примеров (примеры в рамочке) */
.example {
    background-color: #fafeff;
    border-radius: 28px;
    padding: 1.2rem 1.8rem;
    margin: 1.5rem 0;
    border: 1px solid #dbe3ed;
    font-style: normal;
}

.example:last-child {
    margin-bottom: 0;
}

.example p {
    margin-bottom: 0.5rem;
}

.example p:last-child {
    margin-bottom: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* === SPECIAL BOXES === */
.attention, .example-box, .strategy {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}

.attention {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
}

.attention p {
    margin-bottom: 0;
}

.example-box {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.example-box p {
    margin-bottom: 0;
}

.strategy {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.strategy p {
    margin-bottom: 0.75rem;
}

/* === TABLES === */
.scroll-table {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

tr:hover {
    background: rgba(0,0,0,0.02);
}

/* === BADGE === */
.badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* === CALC === */
.calc {
    display: inline-block;
    background: rgba(0,0,0,0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

/* === CROSS-LINKING === */
.related-articles {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.related-list {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.related-list li {
    margin-bottom: 0;
}

.related-list a {
    display: block;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.related-list a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
}

.pagination .prev::before {
    content: "←";
}

.pagination .next::after {
    content: "→";
}

.pagination .empty {
    visibility: hidden;
}

/* === FOOTER === */
.article-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.article-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* === RESPONSIVE === */
@media (min-width: 769px) {
    .burger {
        display: flex;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }

    .burger {
        display: flex;
    }
    
    .sidebar-close {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
        width: 380px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 5rem 1rem 1.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .sidebar-close {
        display: block;
    }

    .paper {
        padding: 1.5rem;
        border-radius: 20px;
        overflow-x: hidden;
        max-width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
        max-width: 100%;
    }

    table tbody,
    table thead,
    table tr,
    table td,
    table th {
        display: block;
        width: 100%;
    }

    table thead {
        display: none;
    }

    table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.5rem;
    }

    table td {
        padding: 0.5rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    table td:last-child {
        border-bottom: none;
    }

    table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary-color);
        display: block;
        margin-bottom: 0.25rem;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Убираем фиксированные ширины */
    .paper * {
        max-width: 100%;
    }

    h1 {
        font-size: 1.75rem;
        padding-left: 1rem;
    }

    .subhead {
        font-size: 1.1rem;
        padding-left: 1rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination a {
        width: 100%;
        justify-content: center;
    }
}

/* === OVERLAY FOR MOBILE === */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 50;
}

.overlay.active {
    display: block;
}

/* === INDEX PAGE === */
.hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.hero h1 {
    border-left: none;
    padding-left: 0;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.section-card {
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.section-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-card h2 {
    margin-top: 0;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.section-card ul {
    list-style: none;
    margin-left: 0;
}

.section-card li {
    margin-bottom: 0.5rem;
}

.section-card a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    transition: var(--transition);
}

.section-card a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

/* === БЛОКИ ВЫДЕЛЕНИЯ === */

/* Блок highlight (оранжевый) - для заключений */
.highlight {
    background-color: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.highlight p {
    margin: 0;
    line-height: 1.7;
}

.highlight p + p {
    margin-top: 1rem;
}

/* Блок note (голубой) - для примечаний */
.note {
    background-color: #f0f9ff;
    padding: 1.3rem 1.8rem;
    border-radius: 16px;
    border: 1px solid #bae6fd;
    margin: 1.8rem 0;
}

.note p {
    margin: 0;
    line-height: 1.7;
}

.note p + p {
    margin-top: 0.8rem;
}

.note em {
    font-style: normal;
    color: #475569;
}

/* Обёртка для таблицы */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: white;
}

/* Горизонтальная линия */
hr {
    border: none;
    border-top: 2px dashed var(--border-color);
    margin: 2rem 0;
}

/* Важный блок (оранжевый) - для "Важно", "Внимание", "Важный нюанс" */
.warning-block {
    background-color: #fff7f0;
    border-left: 6px solid #d45a2e;
    padding: 1.3rem 2rem;
    border-radius: 24px;
    margin: 2rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.warning-block p {
    margin: 0;
    line-height: 1.7;
}

.warning-block p + p {
    margin-top: 0.8rem;
}

/* Информационный блок (голубой) - для "Важный нюанс", примечаний */
.info-block {
    background-color: #eaf3fa;
    border-left: 6px solid #2b6f9e;
    padding: 1.3rem 2rem;
    border-radius: 24px;
    margin: 2rem 0;
}

.info-block p {
    margin: 0;
    line-height: 1.7;
}

.info-block p + p {
    margin-top: 0.8rem;
}

/* Исключения (зелёный) */
.exception-block {
    background-color: #f0f5e8;
    border-left: 6px solid #3b7a4b;
    padding: 1.3rem 2rem;
    border-radius: 24px;
    margin: 2rem 0;
}

/* Блок с вопросом (для ситуаций/кейсов) */
.case-block {
    background-color: #f8fbfd;
    border: 1px solid #cbdde9;
    border-radius: 24px;
    padding: 1.5rem 2rem;
    margin: 1.8rem 0;
}

.case-block p {
    margin: 0;
    line-height: 1.7;
}

.case-block p + p {
    margin-top: 0.8rem;
}

/* Стили для strong в блоках */
.warning-block strong,
.info-block strong,
.exception-block strong,
.case-block strong {
    color: #1a2a3a;
}

/* Стили для italic в блоках */
.warning-block em,
.info-block em {
    font-style: normal;
    background-color: rgba(0,0,0,0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* === ARTICLE IMAGES === */
.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Адаптив для блоков */
@media (max-width: 768px) {
    .warning-block,
    .info-block,
    .exception-block,
    .case-block {
        padding: 1rem 1.2rem;
        border-radius: 16px;
    }
    
    .example {
        padding: 1rem 1.2rem;
        border-radius: 16px;
    }
}

/* === CONSULTATION FLOATING BUTTON === */
.consultation-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(11, 45, 75, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
}

.consultation-float-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
    box-shadow: 0 6px 25px rgba(11, 45, 75, 0.5);
}

.consultation-float-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* === CONSULTATION POPUP === */
.consultation-popup {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    background: var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 40px rgba(11, 45, 75, 0.5);
    z-index: 999;
    display: none;
}

.consultation-popup.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.consultation-popup h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.consultation-popup .form-group {
    margin-bottom: 0.75rem;
}

.consultation-popup .form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.consultation-popup .form-group input,
.consultation-popup .form-group textarea,
.consultation-popup .form-group select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
}

.consultation-popup .form-group input:focus,
.consultation-popup .form-group textarea:focus,
.consultation-popup .form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.consultation-popup .form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.consultation-popup .consultation-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
}

.consultation-popup .consultation-submit:hover {
    background: #b84a24;
}

.consultation-popup .consultation-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
}

.consultation-popup .consultation-close:hover {
    color: #fff;
}

.consultation-popup .success-message {
    text-align: center;
    padding: 1rem 0;
}

.consultation-popup .success-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.consultation-popup .success-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.consultation-popup .success-text {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #fff;
    margin-bottom: 0.5rem;
}

.consultation-popup .success-hours {
    font-size: 0.8rem;
    opacity: 0.7;
    color: #fff;
}

.consent-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.consent-text a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.consent-text a:hover {
    color: #fff;
}

/* === ABOUT PAGE === */
.about-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.about-photo {
    flex-shrink: 0;
}

.about-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.about-info h2 {
    margin-bottom: 0.5rem;
}

.about-title {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-info .about-description {
    line-height: 1.6;
}

.about-experience,
.about-education,
.about-services,
.about-contacts,
.about-reviews {
    margin-bottom: 1.5rem;
}

.about-experience ul,
.about-education ul,
.about-services ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.review-item {
    background: rgba(0,0,0,0.03);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.review-author {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: right;
}

/* === SITE FOOTER === */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--primary-color);
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
    color: #fff;
}

.site-footer .copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-top: 0.75rem;
}
