/* ===================================================================
   styles.css — archdata.sk
   Scoped to: index.html + 4 subpages
   (standardy-sluzieb-architektov, katalog-sluzieb-architekta,
    katalog-sluzieb-generalneho-projektanta, zmluva-vzor-a)
   =================================================================== */

/* ---- Reset ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- Variables ---- */
:root {
    --primary: #001dff;
}

/* ---- Base ---- */
html { scroll-behavior: auto; }

body {
    font-family: Arial, sans-serif;
    background: #dfdedc;
    min-height: 100vh;
    line-height: 1.6;
    color: #0e0e0e;
}

h1, h2, h3 { color: #0e0e0e; }

sup { font-size: 65%; }

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

/* ---- Logo Header ---- */
.logo-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: flex-end;
    z-index: 1000;
    background: #ffffff;
    margin-bottom: 0.3rem;
    padding: 0 15px 15px 5% !important;
    min-height: 108px !important;
    box-sizing: border-box !important;
}
.logo-header .logo-link { margin: 0 0 0 0 !important; padding: 0; }
.logo-header .logo-img { max-height: 37px; height: 37px; width: auto; }
.logo-header .header-menu { margin-left: auto; right: 15px; }

@media (max-width: 900px) {
    .logo-header {
        min-height: 56px !important;
        height: 56px !important;
        max-height: 56px !important;
        padding: 0 12px !important;
        align-items: center !important;
        background: #fff !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .logo-header .logo-link { margin: 0 !important; padding: 0 !important; }
    .logo-header .logo-img, .logo-img {
        max-height: 22px !important;
        height: 22px !important;
        width: auto !important;
    }
}

.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 37px; width: auto; vertical-align: middle; display: inline-block; }

/* ---- Final Result ---- */
.final-result {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    width: 100%;
}

.final-result-90 {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-zmluva .final-result {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.25rem;
    padding-bottom: 2rem;
    margin-top: 0.5rem;
}

.final-result-margin { margin-top: 2.5rem; }
.final-result-spacing { margin-bottom: 2.5rem; }
.padding-vertical-2rem { padding-top: 2rem; padding-bottom: 2rem; }

/* ---- Back Link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.8rem;
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    vertical-align: middle;
    box-sizing: border-box;
    line-height: 1;
}

.back-link:hover {
    background: #000000;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .back-link {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

/* ---- Catalog and document styles ---- */
.catalog-header { width: 90%; margin-left: auto; margin-right: auto; text-align: left; margin-bottom: 1.5em; color: #000; position: relative; }
.catalog-header-bar { display: none; background: var(--primary) !important; }
.catalog-header-content { margin-left: 0px; }
.catalog-title { margin: 0; color: #000; margin-top: 2em; margin-left: 20px; font-weight: 300; }
.catalog-nav { margin-top: 1em; margin-bottom: 2em; }
.catalog-nav ul { list-style: none; padding: 0; margin: 0 0 0 20px; }
.catalog-nav-link { color: #000; text-decoration: none; font-size: 110%; }

/* ---- Tables ---- */
.dataframe { border-collapse: collapse; width: 90%; margin-bottom: 2em; margin-left: auto; margin-right: auto; }
.sheet-table th, .sheet-table td { border: 1px solid #aaa; padding: 0.5em; }
.sheet-table th { background: #f0f0f0; }
.equal-cols th:nth-child(2), .equal-cols th:nth-child(3), .equal-cols th:nth-child(4),
.equal-cols td:nth-child(2), .equal-cols td:nth-child(3), .equal-cols td:nth-child(4) { width: 32%; }
.equal-cols th:first-child, .equal-cols td:first-child { width: 4%; white-space: nowrap; }
.row-small { font-size: 75%; }
.num-align { text-align: right; padding-right: 0.7em; font-size: 1.1rem !important; font-weight: normal; min-width: 2.2em; vertical-align: middle; line-height: 1.5; }
.header-green { background: var(--primary) !important; color: #fff !important; border: 1px solid var(--primary) !important; font-weight: 300; }
.header-green td, .header-green th { border: 1px solid var(--primary) !important; }
.phase-title { background: var(--primary) !important; color: #fff !important; font-weight: 300; border: 1px solid var(--primary) !important; font-size: 1.5em; text-align: left; scroll-margin-top: 120px; }
.phase-title-cell, .phase-title-td { text-align: left; padding-left: 0.5em; }
.phase-title td, .phase-title th { border: 1px solid var(--primary) !important; }
.white-gap { background: #fff !important; height: 0.8em; border: none !important; }
.table-striped tr:nth-child(even):not(.header-green):not(.phase-title):not(.white-gap) { background: #e7e7e7; }
.table-striped tr:nth-child(odd):not(.header-green):not(.phase-title):not(.white-gap) { background: #fff; }

@media (max-width: 900px) {
    .phase-title { scroll-margin-top: 60px; }
}

/* ---- Back to top ---- */
.back-to-top { width: 90%; margin: -1em auto 2em auto; text-align: right; }
.back-to-top-link { color: #000; text-decoration: underline; font-weight: 300; }
.footer-note { font-size: 1.0em; color: #555; margin-top: 1em; width: 90%; margin-left: auto; margin-right: auto; text-align: left; font-weight: 300; }

/* ---- Zmluva styles ---- */
.zmluva-toolbar { background: #fff; border-bottom: 1px solid #eee; }
.zmluva-button-row { width: 100%; display: flex; justify-content: flex-end; align-items: center; padding: 0.5rem 2rem; margin-top: 0.5rem; }
.zmluva-button-row.left-align { justify-content: flex-start !important; }
.page-zmluva .download-docx-btn {
    position: static; top: auto; right: auto; z-index: auto;
    display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
    font-size: 1em; background: #999999; color: #fff; border: none; border-radius: 0;
    padding: 0.6em 1.2em; cursor: pointer; text-decoration: none;
    font-family: Arial, sans-serif; font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); transition: background 0.2s; margin-right: 0;
}
.page-zmluva .download-docx-btn:hover { background: #000000; color: #fff; text-decoration: none; }
.zmluva-main { padding: 1rem 2rem; }

@media (max-width: 850px) {
    .zmluva-toolbar { padding: 0.55rem 0.75rem; }
    .zmluva-button-row { justify-content: stretch; padding: 0; }
    .page-zmluva .zmluva-button-row .download-docx-btn {
        width: 100%;
        min-height: 44px;
        font-size: 0.95em;
        padding: 0.65em 1em;
    }
    .zmluva-main { padding: 0.65rem 0.75rem; }
}
@media (max-width: 550px) {
    .zmluva-toolbar { padding: 0.5rem 0.55rem; }
    .zmluva-main { padding: 0.55rem; }
}

/* ---- Zmluva page overrides ---- */
body.page-zmluva { background: #fff; margin: 0; }
body.page-zmluva .logo-header { margin-bottom: 0 !important; }
body.page-zmluva .zmluva-main { padding-top: 0 !important; }
body.page-zmluva .zmluva-button-row { margin-top: 0 !important; }

/* ---- Standardy / content styles ---- */
.main-title-box { font-size: 2.2rem; font-weight: 300; margin-bottom: 1.5rem; color: #0e0e0e; background: #fff; line-height: 1.2; }
.obsah-box { background: var(--primary); border-radius: 0; border: 1px solid var(--primary); padding: 20px 1.5rem; margin-bottom: 2rem; color: #fff; font-weight: normal; position: relative; border-left: 7px solid var(--primary); }
.obsah-box a, .obsah-box strong, .obsah-box div, .obsah-box span { color: #fff !important; font-weight: 300 !important; font-size: 1.1rem; }
.obsah-box > a, .obsah-box > strong { font-weight: 300 !important; font-size: 1.5rem !important; color: #fff !important; }
.obsah-box a { display: block; margin: 0.2rem 0; }
.obsah-indent { padding-left: 1.5em; }

.content { max-width: 900px; margin: 2rem auto 4rem auto; padding: 2rem; background: #fff; color: #0e0e0e; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.content h3 { margin-top: 1.5rem; }
.content nav:not(.obsah-box) { background: #fff; padding: 1rem; margin-bottom: 2rem; }
.content nav:not(.obsah-box) a { display: block; color: #0e0e0e; text-decoration: none; margin: 0.2rem 0; }
.content nav:not(.obsah-box) strong { text-decoration: none; color: #0e0e0e; font-size: 0.9rem; }
.content details { margin-bottom: 2rem; border: 1px solid #ccc; border-left: 5px solid var(--primary); background: #fff; padding: 1rem; }
.content details, .content details * { color: #0e0e0e; }
.content summary { font-size: 1.8rem; font-weight: 300; cursor: pointer; color: #0e0e0e; line-height: 1.2; }
.content details > *:not(summary) { display: block; }

/* ---- Legal pages (privacy policy + VOP) ---- */
.privacy-policy-container {
    max-width: 900px;
    margin: 2rem auto 4rem auto;
    padding: 2rem;
    background: #fff;
    color: #0e0e0e;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.privacy-policy-container h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1.2rem 0;
    font-weight: 300;
}

.privacy-section {
    margin-bottom: 1.35rem;
}

.privacy-section h2 {
    font-size: 1.25rem;
    margin: 0 0 0.45rem 0;
    font-weight: 300;
}

.privacy-policy-container p,
.privacy-policy-container li {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.privacy-policy-container ul {
    margin: 0.45rem 0 0.5rem 1.25rem;
}

.privacy-policy-container a {
    color: #0e0e0e;
}

.privacy-policy-container .back-link,
.privacy-policy-container .back-link:visited,
.privacy-policy-container .back-link:hover,
.privacy-policy-container .back-link:active,
.privacy-policy-container .back-link:focus {
    color: #fff !important;
}

.privacy-policy-container .last-updated {
    margin-top: 1.75rem;
    color: #555;
}

.privacy-policy-container .back-link {
    margin-top: 1rem;
}

.top-link { text-align: right; margin-top: 2rem; }
.top-link a { text-decoration: none; color: #0e0e0e; font-size: 0.9rem; }
.quote { font-style: italic; margin: 1rem 0; padding-left: 1rem; color: #444; font-weight: 300; font-size: 1.12rem; line-height: 1.2; }
.content-indent { padding-left: 1.5em; }
.no-left-padding { padding-left: 0 !important; }
.left-margin { margin-left: 1rem; }
.print-btn { display: none; margin: 4rem auto 2rem; background: var(--primary); color: #fff; border: none; padding: 0.7rem 1.5rem; font-size: 1rem; border-radius: 0; cursor: pointer; }
[contenteditable] { outline: none; white-space: pre-wrap; }

/* ---- Subchapter numbering ---- */
.subchapters strong { font-size: 1.4rem; font-weight: 300; line-height: 1.2; }
ol.subchapters { padding-left: 2.5em; list-style: none; counter-reset: subchapter; }
ol.subchapters > li { padding-left: 1.5em; }
ol.subchapters.no-left-padding { padding-left: 0; }
ol.subchapters[data-chapter="1"] { counter-reset: subchapter1; }
ol.subchapters[data-chapter="1"] > li { counter-increment: subchapter1; position: relative; margin-bottom: 1rem; padding-left: 1.5em; }
ol.subchapters[data-chapter="1"] > li::before { content: "1." counter(subchapter1) " "; font-weight: 300; font-size: 1.4rem; color: #0e0e0e; display: inline; margin-right: 0.5em; }
ol.subchapters[data-chapter="2"] { counter-reset: subchapter2; }
ol.subchapters[data-chapter="2"] > li { counter-increment: subchapter2; position: relative; margin-bottom: 1rem; padding-left: 1.5em; }
ol.subchapters[data-chapter="2"] > li::before { content: "2." counter(subchapter2) " "; font-weight: 300; font-size: 1.4rem; color: #0e0e0e; display: inline; margin-right: 0.5em; }
ol.subchapters[data-chapter="3"] { counter-reset: subchapter3; }
ol.subchapters[data-chapter="3"] > li { counter-increment: subchapter3; position: relative; margin-bottom: 1rem; padding-left: 1.5em; }
ol.subchapters[data-chapter="3"] > li::before { content: "3." counter(subchapter3) " "; font-weight: 300; font-size: 1.4rem; color: #0e0e0e; display: inline; margin-right: 0.5em; }
ol.subchapters[data-chapter="4"] { counter-reset: subchapter4; }
ol.subchapters[data-chapter="4"] > li { counter-increment: subchapter4; position: relative; margin-bottom: 1rem; padding-left: 1.5em; }
ol.subchapters[data-chapter="4"] > li::before { content: "4." counter(subchapter4) " "; font-weight: 300; font-size: 1.4rem; color: #0e0e0e; display: inline; margin-right: 0.5em; }

/* ---- Pravne predpisy ---- */
.pravne-predpisy-section { margin: 5em 0 1em 0; }
.pravne-predpisy-list { font-size: 0.7em; line-height: 1.3; color: #000000; }

/* ---- Download and PDF ---- */
.download-docx-btn { position: absolute; top: 1.2em; right: 2em; z-index: 10; font-size: 1em; background: #999999; color: #fff; border: none; border-radius: 0; padding: 0.6em 1.2em; cursor: pointer; text-decoration: none; font-family: Arial, sans-serif; font-weight: bold; box-shadow: 0 2px 8px rgba(0,0,0,0.07); transition: background 0.2s; }
.download-docx-btn.left-margin { margin-right: 13rem !important; }
.download-docx-btn:hover { background: #000000; color: #fff; text-decoration: none; }
.pdf-frame { border: 1px solid #ccc; }
.pdf-mobile-fallback { display: none; text-align: center; padding: 2rem 1rem; }
.pdf-mobile-fallback p { margin-bottom: 1.2rem; color: #555; }

@media (max-width: 900px) {
    .pdf-frame-desktop { display: none; }
    .page-zmluva .pdf-mobile-fallback {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: clamp(280px, 50vh, 460px);
        padding: 1.3rem;
        border: 1px solid #d2d2d2;
        background: #f4f4f4;
        gap: 1rem;
    }
    .page-zmluva .pdf-mobile-fallback p {
        margin: 0;
        max-width: 30ch;
        line-height: 1.35;
        color: #4b4b4b;
    }
    .page-zmluva .pdf-mobile-fallback .download-docx-btn {
        width: min(220px, 100%);
        margin: 0 !important;
        min-height: 44px;
        font-size: 0.95em;
        padding: 0.65em 1em;
    }
}

/* ---- Print styles ---- */
@media print {
    .print-btn, .top-link, footer { display: none; }
    body { background: #fff; }
    .content { box-shadow: none; }
    .content details { page-break-before: always; page-break-after: always; }
    .content nav { display: block; border: none; padding: 0; page-break-after: always; }
    .content nav strong { display: block; font-size: 1.2rem; margin-bottom: 1rem; }
    .content nav a { color: #000; text-decoration: none; }
}

/* ---- Responsive: content ---- */
@media (max-width: 900px) {
    .content { padding: 1rem; }
    .privacy-policy-container {
        margin: 1rem auto 2rem auto;
        padding: 1rem;
        width: calc(100% - 1rem);
    }
    .privacy-policy-container h1 {
        font-size: 1.55rem;
    }
    .privacy-section h2 {
        font-size: 1.1rem;
    }
}

/* ---- Responsive: standardy ---- */
@media (max-width: 900px) {
    body.page-standardy { margin: 0; }
    .page-standardy .content { margin: 1rem 0.5rem 2rem 0.5rem; }
    .page-standardy .content { font-size: 13px !important; line-height: 1.5 !important; }
    .page-standardy .content p,
    .page-standardy .content li { font-size: 13px !important; line-height: 1.5 !important; }
    .page-standardy .content summary { font-size: 1.4rem !important; }
    .page-standardy .obsah-box > a,
    .page-standardy .obsah-box > strong,
    .page-standardy .obsah-box .obsah-indent a,
    .page-standardy .obsah-box .obsah-indent strong { font-size: 1rem !important; }
    .page-standardy .obsah-box > strong { font-size: 1.2rem !important; }
    .page-standardy .main-title-box { font-size: 1.6rem !important; line-height: 1.2 !important; }
}
@media (max-width: 700px) {
    body.page-standardy { margin: 0; }
    .page-standardy .content { margin: 0.75rem 0.2rem 1.5rem 0.2rem; }
}
@media (max-width: 550px) {
    body.page-standardy { margin: 0; }
    .page-standardy .content { margin: 0.6rem 0.1rem 1.2rem 0.1rem; }
}

/* ---- Responsive: catalog ---- */
@media (max-width: 900px) {
    .catalog-header { width: 100% !important; margin: 0 0.5rem 1.5rem 0.5rem !important; }
    .catalog-title { margin-left: 0.5rem !important; font-size: 2.2em !important; }
    .catalog-nav ul { margin: 0 0 0 0.5rem !important; }
}
@media (max-width: 700px) {
    .catalog-header { margin: 0 0.2rem 1rem 0.2rem !important; }
    .catalog-title { font-size: 1.8em !important; }
}
@media (max-width: 550px) {
    .catalog-header { margin: 0 0.1rem 0.8rem 0.1rem !important; }
    .catalog-title { font-size: 1.6em !important; margin-left: 0.2rem !important; }
}

/* ---- Responsive: tables ---- */
@media (max-width: 850px) {
    .dataframe, .sheet-table { width: calc(100% - 1.6rem) !important; font-size: 0.8em !important; margin: 0 0.8rem 2rem 0.8rem !important; table-layout: auto !important; border-collapse: collapse !important; display: table !important; overflow-x: auto; }
    .dataframe tbody, .sheet-table tbody { display: table-row-group !important; }
    .dataframe tr, .sheet-table tr { display: table-row !important; }
    .dataframe th, .dataframe td, .sheet-table th, .sheet-table td { display: table-cell !important; padding: 0.25em !important; font-size: 0.8em !important; word-wrap: break-word !important; overflow-wrap: break-word !important; -webkit-hyphens: auto !important; hyphens: auto !important; vertical-align: top !important; border-width: 0.5px !important; border-color: #888888 !important; }
    .equal-cols th:first-child, .equal-cols td:first-child { width: 35px !important; max-width: 35px !important; min-width: 35px !important; white-space: nowrap !important; vertical-align: middle !important; padding-left: 1.0em !important; padding-right: 0.2em !important; }
    .equal-cols th:nth-child(2), .equal-cols th:nth-child(3), .equal-cols th:nth-child(4),
    .equal-cols td:nth-child(2), .equal-cols td:nth-child(3), .equal-cols td:nth-child(4) { width: 30.67% !important; }
}
@media (max-width: 700px) {
    .dataframe, .sheet-table { width: calc(100% - 1.2rem) !important; font-size: 0.75em !important; margin: 0 0.6rem 1.5rem 0.6rem !important; table-layout: auto !important; display: table !important; }
    .dataframe th, .dataframe td, .sheet-table th, .sheet-table td { padding: 0.15em !important; font-size: 0.75em !important; }
    .equal-cols th:first-child, .equal-cols td:first-child { width: 30px !important; max-width: 30px !important; min-width: 30px !important; vertical-align: middle !important; padding-left: 0.8em !important; padding-right: 0.15em !important; }
    .equal-cols td:first-child.num-align { padding-left: 1.2em !important; padding-right: 1.2em !important; }
    .equal-cols th:nth-child(2), .equal-cols th:nth-child(3), .equal-cols th:nth-child(4),
    .equal-cols td:nth-child(2), .equal-cols td:nth-child(3), .equal-cols td:nth-child(4) { width: 30% !important; }
}
@media (max-width: 550px) {
    .dataframe, .sheet-table { width: calc(100% - 1.2rem) !important; font-size: 0.65em !important; margin: 0 0.6rem 1rem 0.6rem !important; }
    .dataframe th, .dataframe td, .sheet-table th, .sheet-table td { padding: 0.1em !important; font-size: 0.65em !important; line-height: 1.2 !important; }
    .equal-cols th:first-child, .equal-cols td:first-child { width: 25px !important; max-width: 25px !important; min-width: 25px !important; vertical-align: middle !important; padding-left: 0.6em !important; padding-right: 0.1em !important; }
    .equal-cols td:first-child.num-align { padding-left: 1.0em !important; padding-right: 1.0em !important; }
    .equal-cols th:nth-child(2), .equal-cols th:nth-child(3), .equal-cols th:nth-child(4),
    .equal-cols td:nth-child(2), .equal-cols td:nth-child(3), .equal-cols td:nth-child(4) { width: 29.33% !important; }
}

/* ===================================================
   Subpage footer (shared by all subpages)
   =================================================== */
.subpage-footer {
    background: #dfdedc;
    color: #000;
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 0.82rem;
    font-family: Arial, sans-serif;
    line-height: 1.7;
}
.subpage-footer a { color: #000000; text-decoration: none; }
.subpage-footer a:hover { text-decoration: underline; }

/* ===================================================
   Index page styles
   =================================================== */
@font-face {
    font-family: 'Komora';
    src: url('Komora-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* index body: column flex so footer sticks to bottom */
body.page-index {
    display: flex;
    flex-direction: column;
}

/* ---- Main content ---- */
.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 6rem 1rem 2rem;
}

@media (max-width: 900px) {
    .site-main {
        padding-top: 2rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.site-intro {
    max-width: 600px;
    text-align: center;
    margin-bottom: 2.5rem;
}

.site-intro h1 {
    font-size: 1.9rem;
    font-weight: 300;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    color: #0e0e0e;
}

.site-intro p {
    font-size: 1rem;
    color: #444;
    margin: 0;
    line-height: 1.6;
}

/* ---- 2×2 card grid ---- */
.card-grid {
    display: grid;
    width: min(1132px, 100%);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 546px), 1fr));
    gap: clamp(16px, 3vw, 40px);
}

.card-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    min-height: clamp(180px, 25vw, 308px);
    padding: clamp(1rem, 2.5vw, 28px);
    background: #ffffff;
    border: 2px solid #ffffff;
    color: #0e0e0e;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .card-link:hover {
        background: #001dff;
        border-color: #001dff;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
}

.card-link:active {
    background: #001dff;
    color: #fff;
}

.card-title {
    font-family: 'Komora', Arial, sans-serif;
    font-size: clamp(1.35rem, 5.2vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin: auto 0;
    max-width: 22ch;
    overflow-wrap: anywhere;
}

/* ---- GDPR cookie banner ---- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0e0e0e;
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 9000;
    font-size: 0.88rem;
    line-height: 1.5;
}

#cookie-banner.hidden { display: none; }

#cookie-banner p {
    margin: 0;
    flex: 1 1 300px;
}

#cookie-banner a {
    color: #aac0ff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn {
    border: none;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s;
}

.cookie-btn-accept {
    background: #001dff;
    color: #fff;
}

.cookie-btn-accept:hover { background: #0017cc; }

.cookie-btn-reject {
    background: #444;
    color: #fff;
}

.cookie-btn-reject:hover { background: #666; }

/* ---- Site footer (index) ---- */
.site-footer {
    background: #dfdedc;
    color: #000;
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 0.82rem;
    line-height: 1.7;
    flex-shrink: 0;
}

.site-footer a {
    color: #000000;
    text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer .footer-sep {
    margin: 0 0.4rem;
    opacity: 0.4;
}

/* =====================================================
   MOBILE: prevent horizontal overflow globally
   ===================================================== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---- Responsive: catalog tables (block so overflow-x:auto works) ---- */
@media (max-width: 850px) {
    .back-to-top {
        width: 100%;
        padding: 0 0.8rem;
        box-sizing: border-box;
    }
    .footer-note {
        width: 100%;
        padding: 0 0.8rem;
        box-sizing: border-box;
    }
}
