/**
 * 2026-004 Linka - paticka: D Minimalni (vychozi, komponenty/paticka-d.latte Linky) + skin A, B, C
 * (Latte jadra beze zmeny). Navrh 08-Paticky: #111 pres celou sirku, linka #333 nahore, bez akcentu,
 * nadpisy sloupcu 12/600/.12em, newsletter s pilulkou a bilym tlacitkem, C pas na --tpl-secondary.
 */

div#bottom {
    clear: both;
    margin-top: calc(var(--tpl-section-gap) + 24px);
    padding: 0;
    background: var(--tpl-footer-bg);
    color: var(--tpl-footer-text);
    border-top: 1px solid var(--tpl-footer-line);
}
div#in_bottom {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
}
div#bottom footer { max-width: none; margin: 0; padding: 0; background: none; }
#banner_copyright { display: none; }
#bottom a { color: var(--tpl-footer-link); }
#bottom a:hover { color: var(--tpl-footer-link-hover); text-decoration: underline; text-underline-offset: 4px; }

/* ================================================================
   D – Minimalni (Linka)
   ================================================================ */
.tpl-foot--d.lk-foot-d { display: block; padding: 40px 0 32px; }
.lk-foot-d-in { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.lk-foot-d-logo .lk-logo { color: var(--tpl-footer-text); }
#paticka_moduly.lk-foot-d-odkazy {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 28px;
    margin: 0;
    font-size: 13px;
}
#paticka_moduly.lk-foot-d-odkazy a { display: inline-flex; align-items: center; min-height: 32px; color: var(--tpl-footer-link); }
.lk-foot-d-odkazy .paticka_modul,
.lk-foot-d-odkazy .ramec_body,
.lk-foot-d-odkazy .ramec_body p,
.lk-foot-d-odkazy .ramec_body ul,
.lk-foot-d-odkazy .paticka_modul ul { display: contents; }
.lk-foot-d-odkazy .ramec_top,
.lk-foot-d-odkazy .paticka_nadpis,
.lk-foot-d-odkazy .tpl-foot-h { display: none; }
.lk-foot-d-odkazy li { list-style: none; display: inline; }
.lk-foot-d-radek {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--tpl-footer-line);
    font-size: 13px;
    color: var(--tpl-footer-muted);
}
.lk-foot-d-kontakt { justify-self: start; }
#bottom .lk-foot-d-kontakt a { color: var(--tpl-footer-muted); }
.lk-foot-d-site { justify-self: center; }
.lk-foot-d-lm { justify-self: end; }
.lk-foot-d-copy,
.tpl-foot--d .lk-foot-d-copy { padding: 0; border: 0; font-size: 12px; color: var(--tpl-footer-muted); }
#bottom .lk-foot-d-copy a { color: var(--tpl-footer-muted); text-decoration: underline; text-underline-offset: 3px; }

/* jazyk a mena v paticce: panel otevreny nahoru */
.lk-lm--paticka .lk-lm-tl { color: var(--tpl-footer-text); opacity: .9; min-height: 44px; font-size: 13px; }
.lk-lm--paticka .lk-lm-panel { top: auto; bottom: 100%; margin-bottom: 4px; }
#bottom .lk-lm-panel a { color: var(--tpl-text); }

@media (max-width: 768px) {
    .tpl-foot--d.lk-foot-d { padding: 32px 0 28px; }
    .lk-foot-d-in { gap: 20px; }
    #paticka_moduly.lk-foot-d-odkazy { gap: 2px 20px; font-size: 14px; }
    #paticka_moduly.lk-foot-d-odkazy a { min-height: 44px; }
    .lk-foot-d-radek { grid-template-columns: 1fr; justify-items: center; gap: 12px; font-size: 14px; }
    .lk-foot-d-kontakt,
    .lk-foot-d-site,
    .lk-foot-d-lm { justify-self: center; }
    .lk-lm--paticka .lk-lm-tl { padding: 0 18px; border: 1px solid var(--tpl-footer-line); border-radius: var(--tpl-pill); }
    .lk-lm--paticka .lk-lm-panel { right: 50%; transform: translateX(50%); }
}

/* ================================================================
   A, B, C – skin Linky (markup jadra, komponenty/paticka-{a,b,c}.latte)
   ================================================================ */
.tpl-foot--b,
.tpl-foot--c,
#in_bottom > .tpl-foot:not(.tpl-foot--d) {
    max-width: calc(var(--tpl-max-width) + 2 * var(--tpl-gutter));
    margin: 0 auto;
    padding: 48px var(--tpl-gutter) 28px;
    font-size: 14px;
}
.tpl-foot-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-bottom: 24px; }
.tpl-foot-brand {
    color: var(--tpl-footer-heading);
    font-family: var(--tpl-font);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
}
.tpl-foot-tag,
.tpl-foot-claim { color: var(--tpl-footer-muted); font-size: 13px; }
.tpl-foot-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1.2fr) minmax(0, 2.4fr) minmax(240px, 1.4fr);
    gap: 32px 40px;
    align-items: start;
    padding-bottom: 32px;
}
.tpl-foot-grid > * { min-width: 0; }
.tpl-foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 32px; }
.tpl-foot-col { display: flex; flex-direction: column; gap: 8px; }
.tpl-foot-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tpl-foot-h,
#bottom .ramec_top,
#bottom .paticka_nadpis,
.tpl-foot-news-h,
.tpl-foot-c-news-h {
    margin: 0 0 6px;
    padding: 0;
    background: none;
    color: var(--tpl-footer-heading);
    font-family: var(--tpl-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.tpl-foot-contact { display: flex; flex-direction: column; gap: 8px; }
.tpl-foot-contact a { color: var(--tpl-footer-link); }
.tpl-foot-news-form,
.tpl-foot-news form { display: flex; gap: 8px; flex-wrap: wrap; }
#bottom input[type="email"],
#bottom input[type="text"] {
    flex: 1 1 180px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--tpl-footer-line);
    border-radius: var(--tpl-pill);
    background: transparent;
    color: var(--tpl-footer-text);
    font: 400 14px/1.3 var(--tpl-font);
}
#bottom input[type="email"]::placeholder,
#bottom input[type="text"]::placeholder { color: var(--tpl-footer-muted); opacity: 1; }
#bottom input[type="submit"],
#bottom button[type="submit"],
#bottom .tpl-foot-news-btn {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--tpl-footer-text);
    border-radius: var(--tpl-pill);
    background: var(--tpl-footer-text);
    color: var(--tpl-footer-bg);
    font: 500 13px/1 var(--tpl-font);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.tpl-foot-news-note { color: var(--tpl-footer-muted); font-size: 12px; }
.tpl-foot-strip,
.tpl-foot-b-trust,
.tpl-foot-c-loga {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding: 18px 0;
    border-top: 1px solid var(--tpl-footer-line);
    color: var(--tpl-footer-muted);
    font-size: 13px;
}
.tpl-foot-bottom,
.tpl-foot--c .tpl-foot-c-spodek {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 18px;
    border-top: 1px solid var(--tpl-footer-line);
    font-size: 12px;
    color: var(--tpl-footer-muted);
}
.tpl-foot-bottom a { color: var(--tpl-footer-muted); }
.tpl-foot--c .tpl-foot-c-news {
    border-radius: var(--tpl-area-radius);
    background: var(--tpl-secondary);
    color: var(--tpl-text);
}
.tpl-foot--c .tpl-foot-c-news .tpl-foot-c-news-h {
    font-family: var(--tpl-font-head);
    font-weight: var(--tpl-head-weight);
    letter-spacing: var(--tpl-head-ls);
    font-size: calc(26px - var(--tpl-head-shrink));
    text-transform: none;
    color: var(--tpl-primary);
}
#bottom .tpl-foot--c .tpl-foot-c-news input[type="email"],
#bottom .tpl-foot--c .tpl-foot-c-news input[type="text"] { border-color: var(--tpl-border); background: var(--tpl-surface); color: var(--tpl-text); }
#bottom .tpl-foot--c .tpl-foot-c-news input[type="submit"],
#bottom .tpl-foot--c .tpl-foot-c-news button[type="submit"],
#bottom .tpl-foot--c .tpl-foot-c-news .tpl-foot-news-btn { background: var(--tpl-cta); border-color: var(--tpl-cta); color: var(--tpl-cta-text); }
#bottom .tpl-foot--c .tpl-foot-c-news a { color: var(--tpl-text); }
.tpl-foot-social a,
.tpl-foot-pay,
.tpl-foot-del { color: var(--tpl-footer-muted); }

@media (max-width: 900px) {
    .tpl-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .tpl-foot--b,
    .tpl-foot--c,
    #in_bottom > .tpl-foot:not(.tpl-foot--d) { padding: 32px var(--tpl-gutter) 24px; }
    .tpl-foot-grid { grid-template-columns: 1fr; }
    .tpl-foot-bottom { justify-content: center; text-align: center; }
}

/* odznaky plateb a doprav (pat_js jadra) - carkovane plochy, mezery (A-C) */
.tpl-foot-pay,
.tpl-foot-del { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tpl-foot-items { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tpl-foot-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px dashed var(--tpl-footer-line);
    border-radius: var(--tpl-label-radius);
    color: var(--tpl-footer-muted);
    font-size: 12px;
}
.tpl-foot-items svg { width: 28px; height: 20px; color: var(--tpl-footer-muted); }
.tpl-foot-call svg,
.tpl-foot-mail svg { margin-right: 6px; }
#bottom .tpl-foot--c .tpl-foot-c-news .tpl-foot-news-note,
#bottom .tpl-foot--c .tpl-foot-c-news p { color: var(--tpl-text-light); }
