/* ------------------------------------------------------ FAQ sekcia -- */
/* Otázky ako samostatné biele kartičky na sivom pozadí stránky (landing,
   /cennik, /otazky). Markup: templates/_faq_list.html, JS: site.js. */
.faq-section { padding: 72px 0 80px; }

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: hsl(var(--white));
    border-radius: 20px;
    box-shadow: 0 1px 2px hsl(var(--ink) / .04);
    transition: box-shadow .2s ease;
    scroll-margin-top: calc(4.5rem + 24px);
}

.faq-item:hover { box-shadow: 0 6px 20px -10px hsl(var(--ink) / .18); }

.faq-q { margin: 0; font: inherit; }

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: none;
    border: none;
    border-radius: inherit;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: hsl(var(--ink));
    text-align: left;
    line-height: 1.4;
}

.faq-trigger:focus-visible {
    outline: 2px solid hsl(var(--ink));
    outline-offset: 2px;
}

.faq-chevron {
    flex: none;
    color: hsl(var(--ink-soft));
    transition: transform .28s var(--ease-out), color .2s ease;
}

.faq-trigger:hover .faq-chevron { color: hsl(var(--ink)); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: hsl(var(--ink)); }

/* 0fr → 1fr: plynulé otvorenie na skutočnú výšku odpovede, bez stropu
   ako pri max-height (dlhé odpovede na /otazky by sa orezali). */
.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s var(--ease-out);
}

.faq-item.open .faq-body { grid-template-rows: 1fr; }

.faq-body-inner {
    overflow: hidden;
    min-height: 0;
}

.faq-body p {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.65;
    color: hsl(var(--ink-soft));
}

.faq-body a {
    color: hsl(var(--ink));
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-body a:hover { color: hsl(var(--ink-soft)); }

@media (prefers-reduced-motion: reduce) {
    .faq-body, .faq-chevron { transition: none; }
}

/* „Máte ďalšie otázky?“ pod zoznamom */
.faq-more {
    max-width: 760px;
    margin: 28px auto 0;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
}

.faq-more-label { font-weight: 700; font-size: 16px; }

.faq-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 999px;
    background: hsl(var(--white));
    color: hsl(var(--ink));
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 1px 2px hsl(var(--ink) / .06);
    transition: background .18s ease, color .18s ease, transform .2s var(--ease-out);
}

.faq-more-btn:hover { background: hsl(var(--ink)); color: hsl(var(--white)); }
.faq-more-btn:active { transform: scale(.97); }

/* ------------------------------------------------- /otazky stránka -- */
.faq-hero .section-head p a {
    color: hsl(var(--ink));
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-page-section { padding-top: 48px; }

.faq-page {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.faq-nav {
    position: sticky;
    top: calc(4.5rem + 24px);
}

.faq-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    color: hsl(var(--ink-soft));
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.faq-nav a:hover { color: hsl(var(--ink)); background: hsl(var(--white) / .6); }

.faq-nav a[aria-current="true"] {
    color: hsl(var(--ink));
    background: hsl(var(--white));
    box-shadow: 0 1px 2px hsl(var(--ink) / .06);
}

.faq-nav-count {
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--ink-soft) / .8);
}

.faq-cats { min-width: 0; }

.faq-cat { scroll-margin-top: calc(4.5rem + 24px); }
.faq-cat + .faq-cat { margin-top: 48px; }

.faq-cat h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0 0 18px 4px;
}

.faq-cats .faq-list,
.faq-cats .faq-more { max-width: none; margin-left: 0; margin-right: 0; }
.faq-cats .faq-more { margin-top: 48px; }

/* Mobil: kategórie ako vodorovný pás „čipov“ prilepený pod hlavičkou.
   Pás siaha cez okraje .wrap (padding 24px), aby sa dal posúvať do kraja. */
@media (max-width: 860px) {
    .faq-page { grid-template-columns: minmax(0, 1fr); gap: 24px; }

    .faq-nav {
        top: 4.5rem;
        z-index: 5;
        margin: 0 -24px;
        padding: 10px 24px;
        background: hsl(var(--cream) / .94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .faq-nav::-webkit-scrollbar { display: none; }

    .faq-nav ul { flex-direction: row; gap: 8px; }

    .faq-nav a {
        padding: 8px 14px;
        border-radius: 999px;
        background: hsl(var(--white));
        font-size: 14px;
    }

    .faq-nav a[aria-current="true"] {
        background: hsl(var(--ink));
        color: hsl(var(--white));
    }

    .faq-nav a[aria-current="true"] .faq-nav-count { color: hsl(var(--white) / .7); }

    .faq-item, .faq-cat { scroll-margin-top: calc(4.5rem + 72px); }
}

@media (max-width: 640px) {
    .faq-trigger { padding: 18px; font-size: 15px; }
    .faq-body p { padding: 0 18px 18px; font-size: 14px; }
}

/* ------------------------------------------------------- pätička -- */
footer {
    border-top: 1px solid hsl(var(--ink) / .08);
    padding: 40px 0 34px;
    font-size: 13px;
    color: hsl(var(--ink-soft));
}

/* ---------------------------------- interaktívna lišta v pätičke -- */
/* Vľavo odber noviniek, vpravo kôpka vernostných kariet, ktoré sa
   striedajú (modul „kôpka kariet“ v site.js presúva triedy is-*). */
.footer-interactive-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px 48px;
    padding-bottom: 36px;
    margin-bottom: 28px;
    border-bottom: 1px solid hsl(var(--ink) / .08);
}

.footer-bar-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col-newsletter { max-width: 460px; }

.footer-bar-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: hsl(var(--ink));
}
.footer-bar-sub { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: hsl(var(--ink-soft)); }

/* Newsletter: biela pilulka s tlačidlom vnútri */
.footer-newsletter-form { position: relative; width: 100%; }

.newsletter-pill-group {
    display: flex;
    align-items: center;
    padding: 4px 5px 4px 18px;
    border: 1px solid hsl(var(--ink) / .14);
    border-radius: 999px;
    background: hsl(var(--white));
    box-shadow: 0 3px 12px hsl(var(--ink) / .04);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.newsletter-pill-group:focus-within {
    border-color: hsl(var(--gold-deep));
    box-shadow: 0 0 0 3px hsl(var(--gold) / .22);
}
.newsletter-pill-group input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 9px 0;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: hsl(var(--ink));
}
.newsletter-pill-group input[type="email"]::placeholder { color: hsl(var(--ink-soft)); opacity: .8; }

.newsletter-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 999px;
    background: hsl(var(--ink));
    color: hsl(var(--white));
    font: 600 12px/1 var(--font-body);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px hsl(var(--ink) / .15);
    transition: background .2s var(--ease-out), transform .18s var(--ease-out), box-shadow .2s ease;
}
.newsletter-submit-btn .btn-arrow { color: hsl(var(--gold)); font-size: 14px; }
.newsletter-submit-btn:hover { background: hsl(var(--ink-deep)); box-shadow: 0 6px 18px hsl(var(--ink) / .25); }
.newsletter-submit-btn:active { transform: scale(.97); }
.newsletter-submit-btn:focus-visible { outline: 2px solid hsl(var(--gold-deep)); outline-offset: 2px; }
.newsletter-submit-btn:disabled { opacity: .6; cursor: progress; transform: none; }

.newsletter-msg { min-height: 16px; margin: 6px 0 0 18px; font-size: 12.5px; }
.newsletter-msg.ok { color: hsl(var(--gold-deep)); font-weight: 600; }
.newsletter-msg.err { color: hsl(0 70% 45%); font-weight: 500; }

/* Kôpka kariet: tri polohy, medzi ktorými karty prechádzajú. */
.footer-col-cards { align-items: center; }
.fcards { position: relative; width: 380px; max-width: 100%; height: 250px; }
.fcard {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 156px;
    height: 226px;
    margin-left: -78px;
    padding: 11px 11px 10px;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: 'Manrope', var(--font-body);
    box-shadow: 0 1px 2px hsl(var(--ink) / .08), 0 18px 32px -18px hsl(var(--ink) / .45);
    transition: transform .75s var(--ease-out), opacity .75s ease, filter .75s ease, box-shadow .75s ease;
    will-change: transform;
}
.fcard.is-front { z-index: 3; transform: translateY(-4px) scale(1.06); box-shadow: 0 1px 2px hsl(var(--ink) / .08), 0 26px 44px -20px hsl(var(--ink) / .55); }
.fcard.is-left  { z-index: 1; transform: translateX(-62%) rotate(-8deg) scale(.88); filter: brightness(.93) saturate(.9); }
.fcard.is-right { z-index: 2; transform: translateX(62%) rotate(8deg) scale(.88); filter: brightness(.93) saturate(.9); }
/* pri výmene predná karta krátko nadskočí */
.fcard.is-front.is-pop { animation: fcard-pop .75s var(--ease-out); }
@keyframes fcard-pop { 40% { transform: translateY(-14px) scale(1.08); } }

.fcard-top { display: flex; align-items: center; gap: 6px; }
.fcard-logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-on);
}
.fcard-logo svg { width: 62%; height: 62%; }
.fcard-brand { flex: 1; min-width: 0; font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard-field { display: grid; text-align: right; font-size: 11px; font-weight: 700; line-height: 1.15; }
.fcard small { display: block; font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }

.fcard-hero {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    height: 62px;
    margin: 10px 0 8px;
    padding: 6px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--c-accent) 12%, transparent);
}
.fcard-dots { display: grid; grid-template-columns: repeat(5, 16px); gap: 5px 6px; }
.fcard-dots i {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border: 1.5px solid color-mix(in srgb, var(--c-accent) 35%, transparent);
    border-radius: 50%;
    color: var(--c-accent);
}
.fcard-dots i svg { width: 70%; height: 70%; }
.fcard-dots i:not(.on):not(.gift) svg { opacity: .4; }
.fcard-dots i.on { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-on); }
.fcard-dots i.gift { border-style: dashed; }
.fcard-big { font-size: 22px; font-weight: 800; line-height: 1; color: var(--c-accent); }
.fcard-big small { display: inline; font-size: 9px; letter-spacing: .04em; }
.fcard-meter { width: 100%; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--c-accent) 18%, transparent); overflow: hidden; }
.fcard-meter span { display: block; height: 100%; border-radius: inherit; background: var(--c-accent); }
.fcard-note { font-size: 8.5px; font-weight: 700; color: var(--c-muted); }

/* Banner zo šablóny podniku (static/img/banners) — ako „strip“ vo Wallet karte. */
.fcard-strip { display: block; width: 100%; height: 72px; border-radius: 9px; object-fit: cover; }
.fcard-foot { display: flex; justify-content: space-between; margin-top: auto; font-size: 10px; font-weight: 700; }
.fcard-foot span:last-child { text-align: right; }

/* Responzivita pre lištu */
@media (max-width: 768px) {
    .footer-interactive-bar { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 20px; }
    .footer-col-newsletter { width: 100%; align-items: center; }
    .newsletter-msg { margin-left: 0; }
    .footer-col-cards { width: 100%; order: -1; }   /* karty nad novinkami */
    .fcards { transform: scale(.85); margin: -18px 0; }
    .fcard.is-left  { transform: translateX(-48%) rotate(-7deg) scale(.86); }
    .fcard.is-right { transform: translateX(48%) rotate(7deg) scale(.86); }
}

@media (prefers-reduced-motion: reduce) {
    .fcard { transition: none; }
    .fcard.is-front.is-pop { animation: none; }
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-logo { height: 28px; width: auto; display: block; }
.footer-word {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: hsl(var(--ink));
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-version { opacity: .7; font-variant-numeric: tabular-nums; }

.footer-inner a:hover { color: hsl(var(--ink)); }

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 16px;
    }
    .footer-links {
        justify-content: center;
        gap: 16px;
    }
}

