/*
 * LIFEHUB — opravené spoločné štýly
 * Kompletná náhrada pôvodného CSS; bez externých závislostí.
 * Hlavná hlavička: .site-header (podporovaný je aj priamy body > header).
 * Otvorené mobilné menu: .header-navigation.is-open — prepína existujúci JS.
 * Responzívne pravidlá sú za základnými štýlmi, aby sa neprepisovali.
 */

/* ===== ZÁKLAD A ROZMERY ===== */

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

button,
input,
select,
textarea {
    font-family: inherit;
}

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

/* Max-width kontajnerov nižšie zahŕňa aj pôvodné bočné odsadenie. */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
    line-height: 1.6;
}

.site-header,
body > header {
    background: #111827;
    color: white;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

:where(.site-header, body > header) strong {
    font-size: 26px;
    letter-spacing: 1px;
}

:where(.site-header, body > header) nav {
    display: flex;
    gap: 25px;
}

:where(.site-header, body > header) nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

:where(.site-header, body > header) nav a:hover {
    color: #38bdf8;
}

main {
    padding: 50px 40px;
}

h1 {
    color: #1f2937;
}

p {
    color: #555;
}

/* ===== ÚVOD A VYHĽADÁVANIE ===== */

.hero {
    max-width: 990px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 20px 60px;
    overflow-wrap: anywhere;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.15;
    margin: 0 0 18px;
    color: #111827;
    letter-spacing: -1px;
}

.hero p {
    font-size: 19px;
    color: #5b6472;
    margin: 0 auto 35px;
    max-width: 700px;
}

.search-box {
    display: flex;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    min-width: 0;
}

.search-box input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 17px 20px;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: #2563eb;
}

.search-box button {
    padding: 17px 28px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.search-box button:hover {
    background: #1d4ed8;
}

/* ===== OBSAH A KARTY ===== */

.content-section {
    max-width: 1140px;
    margin: 30px auto;
    padding: 20px;
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: #ffffff;
    padding: 26px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
    transform: translateY(-3px);
}

.button {
    display: inline-block;
    background: #111827;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    max-width: 100%;
    min-height: 44px;
    text-align: center;
    overflow-wrap: anywhere;
}

.button:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
}

.button-danger {
    background: #dc2626;
}

.button-danger:hover {
    background: #b91c1c;
}

.my-cars {
    max-width: 700px;
    margin: 30px auto;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.4;
    color: #111827;
}

.card p {
    line-height: 1.6;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 18px;
}

.card span {
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
}

/* ===== AUTÁ ===== */

.cars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.car-card {
    background: #ffffff;
    padding: 26px 22px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    min-width: 0;
    overflow-wrap: anywhere;
}

.car-card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
    transform: translateY(-3px);
}

.car-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.car-card h3 {
    margin: 12px 0 10px;
    font-size: 18px;
    line-height: 1.4;
    color: #111827;
}

.car-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ===== PREHĽAD ČLÁNKOV ===== */

.articles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 0;
    overflow-wrap: anywhere;
}

.article-image {
    height: 160px;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.article-content {
    padding: 22px;
}

.article-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.45;
    color: #111827;
}

.article-content p {
    line-height: 1.6;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
}

.article-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #1d4ed8;
}

/* ===== TLAČIDLÁ A POUŽÍVATEĽSKÉ MENU ===== */

button {
    background: #111827;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

button:hover {
    background: #2563eb;
}

button:active {
    transform: translateY(0);
}

.page-actions {
    max-width: 700px;
    margin: 0 auto 25px auto;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.username {
    color: #d1d5db;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.header-button {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1px solid #374151;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    min-height: 44px;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.header-button:hover {
    background: #263449;
    border-color: #38bdf8;
    color: white;
}

.header-button.logout-button:hover,
.logout-button:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

/* ===== PÄTA STRÁNKY ===== */

.site-footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 60px;
    padding: 45px 40px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 50px;
    padding-bottom: 35px;
}

.footer-logo {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
}

.footer-logo span {
    color: #38bdf8;
}

.footer-brand p {
    margin: 14px 0 0;
    line-height: 1.6;
    color: #9ca3af;
}

.footer-description {
    max-width: 360px;
    color: #9ca3af;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h3 {
    color: #ffffff;
    font-size: 15px;
    margin: 5px 0 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #374151;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px;
    color: #9ca3af;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}

.footer-bottom p {
    margin: 0;
    color: inherit;
}

/* ===== HLAVNÁ NAVIGÁCIA ===== */

.site-header {
    position: relative;
    z-index: 1000;
    box-sizing: border-box;
}

.brand-link {
    color: #ffffff;
    text-decoration: none;
}

.brand-link strong {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-link strong span {
    color: #38bdf8;
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    min-width: 0;
    max-width: 100%;
}

.main-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #38bdf8;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #374151;
    border-radius: 12px;
    background: #1f2937;
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
}

.menu-toggle:hover {
    background: #263449;
    border-color: #38bdf8;
}

/* ===== DETAIL ČLÁNKU ===== */

.article-detail-page {
    max-width: 948px;
    margin: 0 auto;
    padding: 45px 24px 70px;
}

.article-back-link,
.article-detail-footer a,
.article-not-found a {
    color: #0369a1;
    text-decoration: none;
    font-weight: 700;
}

.article-back-link:hover,
.article-detail-footer a:hover,
.article-not-found a:hover {
    color: #075985;
}

.article-detail-header {
    margin: 28px 0 38px;
    border-bottom: 1px solid #e5e7eb;
    display: block;
    background: transparent;
    color: inherit;
    padding: 0 0 28px;
}

.article-detail-header h1 {
    margin: 16px 0;
    color: #111827;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.article-category {
    display: inline-block;
    color: #0369a1;
    background: #e0f2fe;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.article-detail-excerpt {
    color: #5b6472;
    font-size: 19px;
    line-height: 1.7;
}

.article-date {
    color: #5b6472;
    font-size: 13px;
}

.article-detail-content {
    color: #374151;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: left;
    max-width: 740px;
    margin: 0 auto;
    min-width: 0;
    overflow-x: auto;
}

.article-detail-content p {
    margin: 0 0 18px;
    color: inherit;
}

.article-detail-content h2 {
    margin: 34px 0 10px;
    color: #111827;
    font-size: 25px;
    line-height: 1.35;
    letter-spacing: -0.4px;
}

.article-detail-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.article-not-found {
    text-align: center;
    padding: 80px 20px;
}

/* ===== PRIHLÁSENIE ===== */

.login-page {
    min-height: 100vh;
    margin: 0;
    background: #f3f6fa;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

.login-container {
    width: min(100% - 32px, 440px);
    margin: 0 auto;
    padding: 48px 0 28px;
}

.login-brand {
    display: block;
    width: fit-content;
    margin: 0 auto 34px;
    color: #111827;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.2px;
    text-decoration: none;
}

.login-brand span {
    color: #38bdf8;
}

.login-card {
    padding: 34px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.login-heading {
    margin-bottom: 28px;
}

.login-eyebrow {
    margin: 0 0 10px;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-heading h1 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 30px;
    letter-spacing: -0.8px;
}

.login-heading > p:last-child {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.login-field input {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 15px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-field input::placeholder {
    color: #64748b;
}

.login-field input:focus {
    background: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding: 14px 18px;
    border: none;
    border-radius: 9px;
    background: #38bdf8;
    color: #082f49;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.login-submit:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
}

.login-error {
    margin-bottom: 22px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.6;
}

.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.login-footer a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #0369a1;
}

.login-bottom-text {
    margin-top: 25px;
    color: #5b6472;
    font-size: 12px;
    text-align: center;
}

/* ===== VKLADANÝ OBSAH A OVLÁDANIE KLÁVESNICOU ===== */

.footer-content > *,
.footer-bottom > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.article-detail,
.article-not-found,
.login-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-image img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 28px;
}

.article-detail-content iframe,
.article-detail-content embed,
.article-detail-content object,
.article-detail-content table {
    max-width: 100%;
}

.article-detail-content pre {
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: normal;
    word-break: normal;
}

.article-detail-content a {
    color: #0369a1;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.article-detail-content a:hover {
    color: #075985;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    /*outline: 3px solid #2563eb;*/
    outline-offset: 3px;
}

.site-header :focus-visible,
body > header :focus-visible,
.site-footer :focus-visible {
    outline-color: #38bdf8;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* ===== RESPONZÍVNE ZOBRAZENIE ===== */

@media (min-width: 901px) {
    header.site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 18px 32px;
    }

    .header-brand {
        flex-shrink: 0;
    }

    .header-navigation {
        flex: 1;
        justify-content: center;
        gap: 24px;
        min-width: 0;
    }

    .main-nav {
        justify-content: center;
        gap: 20px;
    }

    .user-menu {
        flex-shrink: 1;
        padding-left: 24px;
        border-left: 1px solid #374151;
    }
}

@media (max-width: 1024px) {
    .cards,
    .articles,
    .cars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 16px 20px;
    }

    .header-brand {
        min-width: 0;
    }

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .header-navigation {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
        padding-top: 22px;
        flex-basis: 100%;
    }

    .header-navigation.is-open {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .main-nav a {
        display: block;
        box-sizing: border-box;
        padding: 13px 14px;
        border: 1px solid #263449;
        border-radius: 10px;
        background: #1f2937;
        font-size: 14px;
    }

    .main-nav a:hover {
        background: #263449;
        border-color: #38bdf8;
    }

    .user-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .username {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .header-button {
        flex: 1 1 120px;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    main {
        padding: 28px 16px;
    }

    .hero {
        padding: 40px 4px;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: 16px;
    }

    .content-section {
        padding: 12px 0;
        margin: 24px auto;
    }

    .cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .cars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .car-card {
        padding: 20px 12px;
    }

    .articles {
        grid-template-columns: minmax(0, 1fr);
    }

    body > header:not(.site-header) {
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px 16px;
    }

    body > header:not(.site-header) > div:first-child {
        text-align: center;
    }

    body > header:not(.site-header) strong {
        font-size: 24px;
    }

    :where(.site-header, body > header) nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        width: 100%;
    }

    :where(.site-header, body > header) nav a {
        font-size: 14px;
    }

    .user-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .username {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .site-footer {
        padding: 35px 20px 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        line-height: 1.6;
    }

    .login-field input {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .article-detail-page {
        padding: 30px 18px 50px;
    }

    .article-detail-header h1 {
        font-size: 31px;
    }

    .article-detail-excerpt {
        font-size: 17px;
    }

    .article-detail-content {
        font-size: 16px;
    }

    .article-detail-content h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding-top: 28px;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .login-heading h1 {
        font-size: 26px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
        border-right: 1px solid #d1d5db;
        border-bottom: 0;
        border-radius: 10px 10px 0 0;
        padding: 14px 16px;
    }

    .search-box input:focus {
        border-color: #2563eb;
    }

    .search-box button {
        width: 100%;
        border-radius: 0 0 10px 10px;
        padding: 14px 18px;
    }
}

@media (max-width: 400px) {
    .footer-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-brand {
        grid-column: auto;
    }

    .cars {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (hover: none) {
    .card:hover,
    .car-card:hover,
    .button:hover,
    .login-submit:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .car-card,
    .button,
    button,
    .login-submit,
    .article-content a,
    .header-button,
    .main-nav a,
    .footer-links a,
    .login-field input,
    .login-footer a {
        transition: none;
    }

    .card:hover,
    .car-card:hover,
    .button:hover,
    button:hover,
    button:active,
    .login-submit:hover {
        transform: none;
    }
}

/* ===== DOMOVSKÁ STRÁNKA — VŠETKY PRAVIDLÁ SÚ IZOLOVANÉ POD .home-page ===== */

.home-page {
    padding: 32px 24px 64px;
    overflow-wrap: anywhere;
}
.home-page .home-hero {
    max-width: 1140px;
    padding: 52px 36px 42px;
    border: 1px solid #e1e8f2;
    border-radius: 24px;
    background: radial-gradient(ellipse at 8% 0%, #eaf2ff 0%, transparent 55%), #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
}
.home-page .home-eyebrow {
    max-width: none;
    margin: 0;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.home-page .home-hero h1 {
    max-width: 780px;
    margin: 14px auto 16px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -1px;
}
.home-page .home-intro {
    max-width: 660px;
    margin: 0 auto 28px;
    color: #596579;
    font-size: 17px;
}
.home-page .home-search {
    max-width: 740px;
    margin: 0 auto;
    text-align: left;
}
.home-page .home-search-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}
.home-page .home-search .search-box {
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.home-page .home-search input {
    padding: 15px 18px;
    border-radius: 12px 0 0 12px;
}
.home-page .home-search button {
    min-height: 52px;
    padding: 15px 24px;
    border-radius: 0 12px 12px 0;
}
.home-page .home-search-hint {
    margin: 9px 0 0;
    color: #64748b;
    font-size: 13px;
}
.home-page .home-hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.home-page .home-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.home-page .home-hero-link:hover {
    border-color: #b8cff7;
    background: #eff6ff;
    color: #1d4ed8;
}

/* Sekcie a spoločné odkazy */
.home-page .home-section {
    max-width: 1140px;
    margin: 44px auto 0;
    padding: 0;
    scroll-margin-top: 24px;
}
.home-page .home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}
.home-page .home-section-heading > div { min-width: 0; }
.home-page .home-section-heading h2 {
    margin: 6px 0 8px;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.home-page .home-section-description {
    margin: 0;
    color: #5b6472;
    font-size: 15px;
}
.home-page .home-section-link,
.home-page .home-read-link,
.home-page .home-topic-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    min-height: 44px;
    padding: 8px 0;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.home-page .home-section-link { flex-shrink: 0; align-self: flex-end; }
.home-page .home-section-link:hover,
.home-page .home-read-link:hover,
.home-page .home-topic-link:hover {
    color: #1e40af;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.home-page .articles,
.home-page .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}
.home-page .cars { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Články: celý text zostáva viditeľný, odkazy sa zarovnajú ku spodku kariet. */
.home-page .article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}
.home-page .home-article-image {
    height: 190px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #eaf1ff, #eef6f8);
}
.home-page .home-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-page .home-image-placeholder {
    color: #2563eb;
    font-size: 38px;
}
.home-page .article-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
}
.home-page .home-article-meta { margin-bottom: 12px; }
.home-page .article-content h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.4;
}
.home-page .home-article-title {
    color: #172033;
    font: inherit;
    text-decoration: none;
}
.home-page .home-article-title:hover { color: #1d4ed8; }
.home-page .article-content p {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
}
.home-page .home-read-link,
.home-page .home-topic-link { margin-top: auto; }
.home-page .home-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.home-page .home-page-link,
.home-page .home-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    text-decoration: none;
}
.home-page .home-page-number,
.home-page .home-page-link:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

/* Prázdne stavy, témy a garáž */
.home-page .home-state {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
}
.home-page .home-state h3 { margin: 0 0 8px; font-size: 18px; }
.home-page .home-state p { margin: 0; color: #64748b; }
.home-page .home-state a { color: #1d4ed8; text-underline-offset: 3px; }
.home-page .home-state--error {
    border-style: solid;
    border-color: #fecaca;
    background: #fff7f7;
}
.home-page .home-topic-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 16px;
}
.home-page .home-topic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #eff6ff;
    font-size: 24px;
}
.home-page .home-topic-card p { margin: 0 0 16px; color: #64748b; }
.home-page .car-card { padding: 24px 18px; border-radius: 16px; }
.home-page .car-icon { margin: 0 auto 12px; font-size: 34px; }
.home-page .car-card h3 { margin: 0 0 8px; font-size: 17px; }
.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page input:focus-visible {
    /*outline: 3px solid #1d4ed8;*/
    outline-offset: 3px;
}

/* Responzívne úpravy sa týkajú výhradne domovskej stránky. */
@media (max-width: 960px) {
    .home-page .articles,
    .home-page .cards,
    .home-page .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .home-page { padding: 20px 16px 44px; }
    .home-page .home-hero { padding: 36px 22px 30px; border-radius: 18px; }
    .home-page .home-hero h1 { font-size: 32px; letter-spacing: -0.7px; }
    .home-page .home-intro { font-size: 16px; margin-bottom: 24px; }
    .home-page .home-section { margin-top: 34px; }
    .home-page .home-section-heading { flex-direction: column; align-items: stretch; gap: 8px; }
    .home-page .home-section-heading h2 { font-size: 25px; }
    .home-page .home-section-heading .home-section-link { align-self: flex-start; }
    .home-page .articles,
    .home-page .cards { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .home-page .home-article-image { height: 190px; }
    .home-page .home-state { padding: 22px; }
}
@media (max-width: 480px) {
    .home-page .home-hero { padding: 30px 18px 26px; }
    .home-page .home-hero h1 { font-size: 30px; }
    .home-page .home-search .search-box { flex-direction: column; }
    .home-page .home-search input {
        width: 100%;
        padding: 14px 16px;
        border-right: 1px solid #d1d5db;
        border-bottom: 0;
        border-radius: 12px 12px 0 0;
    }
    .home-page .home-search input:focus { border-color: #2563eb; }
    .home-page .home-search button { width: 100%; padding: 14px 18px; border-radius: 0 0 12px 12px; }
    .home-page .home-hero-links { gap: 8px; }
    .home-page .cars { grid-template-columns: minmax(0, 1fr); }
    .home-page .article-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .card,
    .home-page .car-card,
    .home-page a,
    .home-page button { transition: none; }
    .home-page .card:hover,
    .home-page .car-card:hover { transform: none; }
}

/* ===== ZOZNAM ČLÁNKOV — IZOLOVANÉ ŠTÝLY POD .articles-index ===== */

.articles-index {
    padding: 32px 24px 64px;
    overflow-wrap: anywhere;
}
.articles-index .articles-index-hero {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 36px 32px;
    border: 1px solid #e1e8f2;
    border-radius: 24px;
    background: radial-gradient(ellipse at 8% 0%, #eaf2ff 0%, transparent 55%), #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
}
.articles-index .articles-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #5b6472;
    font-size: 13px;
}
.articles-index .articles-breadcrumbs a {
    color: #475569;
    text-decoration: none;
}
.articles-index .articles-breadcrumbs a:hover {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.articles-index .articles-eyebrow {
    margin: 0 0 10px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.articles-index .articles-index-hero h1 {
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -1px;
}
.articles-index .articles-intro {
    max-width: 700px;
    margin: 0;
    color: #596579;
    font-size: 17px;
}

/* Vyhľadávanie a kategórie */
.articles-index .articles-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: 26px;
}
.articles-index .articles-filter-field { min-width: 0; }
.articles-index .articles-filter-field label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}
.articles-index .articles-filter-field input,
.articles-index .articles-filter-field select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    line-height: 1.4;
}
.articles-index .articles-filter-field select { padding-right: 32px; }
.articles-index .articles-filter-field input::placeholder {
    color: #64748b;
    opacity: 1;
}
.articles-index .articles-filter-field input:focus,
.articles-index .articles-filter-field select:focus { border-color: #2563eb; }
.articles-index .articles-filter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid #2563eb;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
.articles-index .articles-filter-submit:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}
.articles-index .articles-filter-hint {
    margin: 12px 0 0;
    color: #5b6472;
    font-size: 13px;
}
.articles-index .articles-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 0;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.articles-index .articles-reset:hover { color: #1e40af; }

/* Výsledky a karty */
.articles-index .articles-results {
    max-width: 1140px;
    margin: 36px auto 0;
    padding: 0;
    scroll-margin-top: 20px;
}
.articles-index .articles-results-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 20px;
}
.articles-index .articles-results-heading > div { min-width: 0; }
.articles-index .articles-results-heading h2 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.articles-index .articles-results-description {
    margin: 0;
    color: #5b6472;
    font-size: 14px;
}
.articles-index .articles-result-count {
    max-width: 100%;
    margin: 0;
    padding: 8px 0;
    color: #5b6472;
    font-size: 13px;
}
.articles-index .article-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}
.articles-index .article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}
.articles-index .articles-cover {
    height: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #eaf1ff, #eef6f8);
}
.articles-index .articles-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.articles-index .articles-cover-placeholder { color: #2563eb; font-size: 38px; }
.articles-index .article-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
}
.articles-index .articles-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 12px;
}
.articles-index .articles-date { color: #64748b; font-size: 13px; }
.articles-index .article-content h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.4;
}
.articles-index .articles-title-link {
    color: #172033;
    font: inherit;
    text-decoration: none;
}
.articles-index .articles-title-link:hover { color: #1d4ed8; }
.articles-index .articles-excerpt {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}
.articles-index .articles-read-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    min-height: 44px;
    margin-top: auto;
    padding: 8px 0;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.articles-index .articles-read-link:hover {
    color: #1e40af;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Prázdne stavy a stránkovanie */
.articles-index .articles-state {
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
}
.articles-index .articles-state h3 { margin: 0 0 10px; font-size: 20px; }
.articles-index .articles-state p { margin: 0; color: #64748b; line-height: 1.7; }
.articles-index .articles-state ul { margin: 12px 0 0; padding-left: 22px; }
.articles-index .articles-state--error {
    border-style: solid;
    border-color: #fecaca;
    background: #fff7f7;
    color: #7f1d1d;
}
.articles-index .articles-state--error p { color: #7f1d1d; }
.articles-index .articles-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.articles-index .articles-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}
.articles-index .articles-page-link:hover { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.articles-index .articles-page-link.is-current { border-color: #2563eb; background: #2563eb; color: #ffffff; }
.articles-index .articles-page-ellipsis { min-width: 28px; color: #64748b; text-align: center; }
.articles-index a:focus-visible,
.articles-index button:focus-visible,
.articles-index input:focus-visible,
.articles-index select:focus-visible { /*outline: 3px solid #1d4ed8; outline-offset: 3px;*/ }

@media (max-width: 960px) {
    .articles-index .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .articles-index .articles-index-hero { padding: 26px 24px; }
    .articles-index .articles-filters { grid-template-columns: minmax(0, 1fr); }
    .articles-index .articles-filter-submit { width: 100%; }
}
@media (max-width: 640px) {
    .articles-index { padding: 20px 16px 44px; }
    .articles-index .articles-index-hero { border-radius: 18px; }
    .articles-index .articles-intro { font-size: 16px; }
    .articles-index .articles-results { margin-top: 30px; }
    .articles-index .articles-results-heading { flex-direction: column; align-items: stretch; gap: 8px; }
    .articles-index .articles-result-count { align-self: flex-start; padding: 0; }
    .articles-index .article-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .articles-index .article-content { padding: 20px; }
    .articles-index .articles-state { padding: 22px; }
}
@media (max-width: 480px) {
    .articles-index .articles-index-hero { padding: 24px 18px; }
    .articles-index .articles-index-hero h1 { font-size: 30px; }
    .articles-index .articles-breadcrumbs { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .articles-index a,
    .articles-index button { transition: none; }
}


/* LIFEHUB – cookie consent banner */
#lifehub-cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    background: #111827;
    color: #f9fafb;
    border: 1px solid #374151;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    font-family: inherit;
}

.lifehub-cookie-text {
    max-width: 720px;
}

.lifehub-cookie-text strong {
    display: block;
    margin-bottom: 7px;
    font-size: 17px;
}

.lifehub-cookie-text p {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
}

.lifehub-cookie-text a {
    color: #38bdf8;
    text-decoration: underline;
}

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

.lifehub-cookie-actions button {
    padding: 11px 16px;
    border: 1px solid #6b7280;
    border-radius: 8px;
    background: transparent;
    color: #f9fafb;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.lifehub-cookie-actions #lifehub-cookie-accept {
    border-color: #38bdf8;
    background: #38bdf8;
    color: #111827;
    font-weight: 700;
}

.lifehub-cookie-actions button:hover {
    opacity: 0.85;
}

@media (max-width: 700px) {
    #lifehub-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px;
    }

    .lifehub-cookie-actions {
        flex-direction: column-reverse;
    }

    .lifehub-cookie-actions button {
        width: 100%;
    }
}
