:root {
    /* Paleta kolorów Lubelskiej Fundacji Rozwoju i Funduszy Europejskich (nadpisywana dynamicznie z theme.json) */
    --primary-color: #003399; 
    --secondary-color: #0284c7; 
    --accent-color: #f59e0b; 
    --text-color: #334155; 
    --bg-color: #f8fafc; 
    --card-bg: #ffffff;
    --highlight-bg: #eff6ff;
    --header-overlay-1: rgba(0, 40, 120, 0.88);
    --header-overlay-2: rgba(2, 132, 199, 0.85);
    --border-color: #e2e8f0;
    --focus-outline: 3px solid var(--accent-color);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Wysokość menu + margines */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px; 
    line-height: 1.55;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: font-size 0.3s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- DOSTĘPNOŚĆ (WCAG 2.1 AA) --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 18px;
    z-index: 2500;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 6px 0;
    transition: top 0.3s ease;
    font-size: 0.95rem;
}
.skip-link:focus { top: 0; outline: var(--focus-outline); outline-offset: 2px; }
*:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }

body.high-contrast { 
    background-color: #000 !important; 
    color: #ff0 !important; 
    --primary-color: #ff0 !important; 
    --secondary-color: #ff0 !important; 
    --accent-color: #ff0 !important; 
    --text-color: #ff0 !important; 
    --bg-color: #000 !important; 
    --card-bg: #000 !important;
    --highlight-bg: #000 !important;
    --border-color: #ff0 !important;
}
body.high-contrast * { 
    background-color: #000 !important; 
    color: #ff0 !important; 
    border-color: #ff0 !important; 
    box-shadow: none !important;
}
body.high-contrast img:not(.eu-logotypy) { filter: grayscale(100%) contrast(120%); }
body.highlight-links a, body.highlight-links button { 
    background-color: #ff0 !important; 
    color: #000 !important; 
    text-decoration: underline !important; 
    text-decoration-thickness: 3px !important; 
}
body.hide-images img { display: none !important; }
body.hide-images header { background: #1e293b !important; }
body.hide-images .leaflet-container { filter: grayscale(100%); }

/* Panel WCAG */
.a11y-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
}
.a11y-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.a11y-toggle:hover {
    transform: scale(1.08);
    background: #002266;
}
.a11y-toggle svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}
.a11y-panel {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    flex-direction: column;
    gap: 10px;
}
.a11y-panel.open {
    display: flex;
}
.a11y-panel h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: var(--primary-color);
    text-align: center;
}
.a11y-font-controls {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}
.a11y-btn {
    flex: 1;
    padding: 8px 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}
.a11y-btn:hover {
    background: #e2e8f0;
}

/* --- LOGOTYPY UNIJNE --- */
.eu-logos { 
    background-color: #fff; 
    padding: 16px 5%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-bottom: 1px solid var(--border-color); 
}
.eu-logos a { display: inline-block; transition: var(--transition-smooth); }
.eu-logos a:hover { transform: scale(1.015); }
.eu-logos img.eu-logotypy { 
    height: 90px; 
    width: auto; 
    max-width: 100%; 
    object-fit: contain; 
    display: block; 
    flex-shrink: 0; 
    min-width: 260px; 
}

/* --- NAWIGACJA GŁÓWNA --- */
nav {
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 10px 5%; 
    transition: var(--transition-smooth); 
}
.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 6px; 
    margin: 0; 
    padding: 0; 
    flex-wrap: wrap; 
    justify-content: center; 
}
.nav-links a.tab-link {
    text-decoration: none; 
    display: inline-block; 
    font-family: inherit; 
    font-size: 0.92rem; 
    color: var(--primary-color); 
    font-weight: 600; 
    padding: 8px 12px; 
    border-radius: 6px; 
    transition: var(--transition-smooth); 
}
.nav-links a.tab-link:hover { 
    background-color: rgba(0, 51, 153, 0.08); 
    transform: translateY(-1px); 
}
.nav-links a.tab-link.active { 
    background-color: var(--primary-color); 
    color: #fff; 
    box-shadow: 0 3px 10px rgba(0, 51, 153, 0.2); 
}

/* Hamburger dla urządzeń mobilnych */
.nav-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary-color);
}
.nav-toggle-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* --- HEADER / HERO --- */
header { 
    background: linear-gradient(135deg, var(--header-overlay-1, rgba(0, 40, 120, 0.88)), var(--header-overlay-2, rgba(2, 132, 199, 0.85))), url('img/back.jpeg') center/cover; 
    color: #fff; 
    padding: 4rem 1.5rem; 
    text-align: center; 
    position: relative;
}
header .header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
header h1 { 
    margin: 0; 
    font-size: 2.5rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: #ffffff; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.35); 
    line-height: 1.2;
}
header p { 
    font-size: 1.2rem; 
    margin: 15px auto 0 auto; 
    max-width: 800px;
    font-weight: 300; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3); 
}
.hashtags { 
    margin-top: 15px; 
    font-weight: bold; 
    color: var(--accent-color); 
    font-size: 0.95rem; 
    letter-spacing: 1px; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4); 
}
.countdown-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 60px;
    text-align: center;
}
.countdown-value {
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}
.countdown-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-top: 4px;
}

/* --- KONTENER I SEKCJE GŁÓWNE --- */
main.container { 
    width: 90%; 
    max-width: 1100px; 
    margin: auto; 
    padding: 2.5rem 0; 
}

.reveal { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); 
    will-change: opacity, transform; 
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.section { 
    background: var(--card-bg); 
    padding: 2rem 2.2rem; 
    margin-bottom: 2.2rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease; 
}
.section:hover { 
    box-shadow: 0 6px 25px rgba(0,0,0,0.06); 
}
.section h2 { 
    color: var(--primary-color); 
    border-bottom: 2px solid var(--secondary-color); 
    padding-bottom: 8px; 
    margin-top: 0; 
    display: inline-block; 
    font-size: 1.5rem; 
}
.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    align-items: stretch; 
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

/* Karty Modułów Szkoleniowych */
.module-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.module-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transition: height 0.3s ease;
}
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 51, 153, 0.08);
    border-color: #cbd5e1;
}
.module-card:hover::before {
    height: 6px;
    background: var(--primary-color);
}
.module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.module-letter {
    background: var(--primary-color);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.module-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}
.module-type-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.module-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    flex-grow: 1;
}
.module-list li {
    padding: 5px 0 5px 18px;
    position: relative;
    color: #475569;
}
.module-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Highlight boxes & Finanse */
.highlight-box { 
    background: var(--highlight-bg); 
    padding: 18px 20px; 
    border-left: 4px solid var(--primary-color); 
    border-radius: 8px; 
    transition: var(--transition-smooth); 
}
.highlight-box:hover { 
    transform: translateX(3px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); 
}

.finance-card { 
    background: var(--highlight-bg); 
    border: 1px solid var(--primary-color); 
    padding: 22px; 
    text-align: center; 
    border-radius: 10px; 
    transition: var(--transition-smooth); 
    cursor: default; 
}
.finance-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 20px rgba(0, 51, 153, 0.1); 
}
.finance-card h3 { 
    margin-top: 0; 
    color: #64748b; 
    font-size: 0.95rem; 
    font-weight: 600;
}
.finance-card .amount { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    margin: 8px 0; 
}
.finance-card.eu-fund {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

/* Listy dokumentów, newsów, kroków */
.doc-list, .news-list, .steps-list, .contact-list { 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.doc-list li, .news-list li, .steps-list li, .contact-list li { 
    background: #ffffff; 
    border: 1px solid var(--border-color); 
    margin-bottom: 12px; 
    padding: 14px 18px; 
    border-radius: 8px; 
    display: flex; 
    align-items: flex-start; 
    transition: var(--transition-smooth); 
}

.doc-list li:hover, .news-list li:hover, .steps-list li:hover { 
    transform: translateX(4px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    border-color: #cbd5e1; 
}

.contact-list li { 
    border: none; 
    background: transparent; 
    padding: 8px 0; 
    margin-bottom: 5px; 
}
.contact-list li:hover { transform: translateX(4px); }

.doc-icon {
    font-size: 1.6rem; 
    margin-right: 15px; 
    margin-top: 2px; 
    color: var(--primary-color); 
    transition: transform 0.3s ease; 
}
.doc-list li:hover .doc-icon, .news-list li:hover .doc-icon, .contact-list li:hover .doc-icon { 
    transform: scale(1.1) rotate(5deg); 
}

.step-number { 
    background: var(--secondary-color); 
    color: #fff; 
    font-weight: bold; 
    font-size: 1.1rem; 
    width: 34px; 
    height: 34px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 50%; 
    margin-right: 15px; 
    flex-shrink: 0; 
    transition: var(--transition-smooth); 
    box-shadow: 0 3px 6px rgba(2, 132, 199, 0.25); 
}
.steps-list li:hover .step-number { 
    transform: scale(1.1); 
    background-color: var(--primary-color); 
}

/* Przyciski i dymki */
.btn-system { 
    display: inline-block; 
    background-color: var(--primary-color); 
    color: #fff !important; 
    padding: 13px 28px; 
    text-decoration: none; 
    font-size: 1.05rem; 
    font-weight: bold; 
    border-radius: 6px; 
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.2); 
    transition: var(--transition-smooth); 
    text-align: center; 
    border: none; 
    font-family: inherit; 
    cursor: pointer; 
}
.btn-system:hover { 
    filter: brightness(0.92); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(0, 51, 153, 0.3); 
}
.btn-system:active { transform: translateY(1px) scale(0.98); }
.btn-system:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
    filter: grayscale(40%); 
    box-shadow: none; 
}
.btn-system:disabled:hover, .btn-system:disabled:active { 
    transform: none; 
    filter: grayscale(40%); 
    box-shadow: none; 
}

.info-bubble {
    display: block;
    width: fit-content;
    max-width: 90%;
    position: relative;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #f59e0b;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 auto 18px auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.info-bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #f59e0b transparent transparent transparent;
}
.info-bubble::before {
    content: "";
    position: absolute;
    bottom: -6.5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 7px 0 7px;
    border-style: solid;
    border-color: #fffbeb transparent transparent transparent;
    z-index: 1;
}

.btn-expand {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    margin-top: 15px;
}
.btn-expand:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

.expandable-content.collapsed {
    max-height: 480px;
    overflow: hidden;
    position: relative;
}
.expandable-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(transparent, var(--card-bg));
    pointer-events: none;
}

.btn-load-more { 
    display: none; 
    margin: 15px auto 0; 
    background-color: transparent; 
    color: var(--primary-color); 
    border: 2px solid var(--primary-color); 
    padding: 10px 24px; 
    font-size: 0.95rem; 
    font-weight: bold; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: var(--transition-smooth); 
    text-align: center; 
}
.btn-load-more:hover { 
    background-color: var(--primary-color); 
    color: #fff; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.15); 
}

.btn-facebook { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background-color: #1877F2; 
    color: #fff !important; 
    padding: 10px 20px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.92rem; 
    border-radius: 6px; 
    margin-top: 10px; 
    box-shadow: 0 3px 10px rgba(24, 119, 242, 0.2); 
    transition: var(--transition-smooth); 
}
.btn-facebook:hover { 
    background-color: #145dbf; 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3); 
}
.btn-facebook svg { width: 18px; height: 18px; margin-right: 8px; fill: currentColor; }

/* --- FAQ STYLES --- */
.faq-controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.faq-search { 
    width: 100%; 
    padding: 12px 16px; 
    font-size: 1rem; 
    border: 2px solid var(--border-color); 
    border-radius: 8px; 
    font-family: inherit; 
    transition: var(--transition-smooth); 
    box-sizing: border-box; 
}
.faq-search:focus { 
    border-color: var(--primary-color); 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1); 
}
.faq-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-tag { 
    background: #f1f5f9; 
    border: 1px solid #cbd5e1; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 0.88rem; 
    cursor: pointer; 
    font-weight: 600; 
    color: #475569; 
    transition: var(--transition-smooth); 
}
.faq-tag:hover { background: #e2e8f0; }
.faq-tag.active { 
    background: var(--primary-color); 
    color: #fff; 
    border-color: var(--primary-color); 
}

.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item { 
    margin-bottom: 12px; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    background: #fff; 
    overflow: hidden; 
    transition: var(--transition-smooth); 
}
.faq-item:hover { 
    border-color: #cbd5e1; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.03); 
}
.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-family: inherit;
}
.faq-question::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}
.faq-item.open .faq-question::after {
    content: "−";
    color: var(--primary-color);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
    color: #475569;
    line-height: 1.6;
}
.faq-item.open .faq-answer {
    max-height: 1000px;
    padding: 0 20px 20px 20px;
}

/* --- STOPKA --- */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 3.5rem 5% 2rem 5%;
    margin-top: 4rem;
    font-size: 0.92rem;
}
.footer-container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.footer-logos .logo-box {
    background: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-logos img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.footer-info p {
    margin: 8px 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.footer-info strong {
    color: #f8fafc;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #f8fafc;
}
.copyright-notice {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 0.85rem;
    color: #64748b;
}

/* Animacje */
@keyframes elegantFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- BANNER ŚWIĄTECZNY / SEZONOWY --- */
.holiday-banner {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-color);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1900;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 360px;
    animation: elegantFadeInUp 0.6s ease-out;
}
.holiday-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.holiday-banner-icon {
    font-size: 2rem;
}
.holiday-banner strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
}
.holiday-banner span {
    font-size: 0.85rem;
    color: #64748b;
}
.holiday-banner-close {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}
.holiday-banner-close:hover {
    color: #0f172a;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header h1 { font-size: 1.8rem; }
    header p { font-size: 1.05rem; }
    .section { padding: 1.5rem 1.2rem; }
    
    .nav-toggle-btn { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        padding: 15px 5%;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.open { display: flex; }
    .nav-links a.tab-link { width: 100%; box-sizing: border-box; text-align: left; }
    .grid-4 { grid-template-columns: 1fr; }
}
