/* ===================================================================
   PUJMO.COM — site stylesheet
   Inspired by the StartBootstrap "Freelancer" aesthetic, ported to
   pure CSS (no Bootstrap dependency), recoloured to Pujmo greens.

   Sections:
     1. Design tokens
     2. Reset / base
     3. Layout helpers
     4. Navbar (white sticky)
     5. Masthead (green, centered with avatar logo + divider)
     6. Custom divider component (line — 💰 — line)
     7. Page sections (alternating bg, centered headings)
     8. Buttons
     9. Trust bar
    10. Cards grid
    11. Comparison table
    12. Pros / Cons
    13. FAQ
    14. Provider page
    15. Blog
    16. Footer (dark, social icons)
    17. Copyright bar
    18. Utilities
    19. Responsive
   =================================================================== */


/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    /* Brand greens */
    --green-50:  #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    /* Neutral ink scale */
    --ink-900: #0a0a14;
    --ink-800: #1a1a2e;
    --ink-700: #2d2d44;
    --ink-600: #4b5563;
    --ink-500: #6b7280;
    --ink-400: #9ca3af;
    --ink-300: #d1d5db;
    --ink-200: #e5e7eb;
    --ink-100: #f3f4f6;
    --ink-50:  #f9fafb;

    /* Accents */
    --gold:    #f59e0b;
    --red-500: #ef4444;
    --red-50:  #fef2f2;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(10,10,20,0.04);
    --shadow:    0 4px 16px rgba(10,10,20,0.06);
    --shadow-lg: 0 12px 40px rgba(10,10,20,0.10);

    /* Type families */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Navbar height (used to offset content under the fixed-top nav) */
    --nav-h-mobile:  116px;
    --nav-h-desktop: 140px;
}


/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h-desktop); }

body {
    font-family: var(--font-body);
    color: var(--ink-800);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Reserve space for the fixed-top navbar so content doesn't slide under it */
    padding-top: var(--nav-h-mobile);
}

a    { color: var(--green-700); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--green-800); }
img  { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink-900);
}


/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ---------- 4. NAVBAR (white, fixed top) ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ink-200);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h-mobile);
    gap: 1.5rem;
}
.nav-logo {
    display: flex; align-items: center;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.nav-logo:hover { transform: translateY(-1px); }
.nav-logo img { height: 88px; width: auto; display: block; }

.nav-links {
    display: flex; gap: 0.1rem; align-items: center; list-style: none;
    flex-wrap: nowrap;
}
.nav-links > li { display: flex; }
.nav-links a.nav-link {
    color: var(--ink-800);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.nav-links a.nav-link:hover { color: var(--green-700); background: var(--green-50); }
.nav-links a.nav-link.active { color: #fff; background: var(--green-600); }
.nav-links a.nav-link.active:hover { background: var(--green-700); color: #fff; }

.nav-cta {
    display: inline-block;
    background: var(--green-600); color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    font-size: 0.72rem;
    padding: 0.6rem 0.95rem; border-radius: 8px;
    margin-left: 0.35rem;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); }

.lang-switcher {
    display: flex; gap: 0.1rem; align-items: center;
    padding-left: 0.6rem; margin-left: 0.35rem;
    border-left: 1px solid var(--ink-200);
}
.lang-switcher a {
    font-family: var(--font-heading);
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
    color: var(--ink-400);
    padding: 0.3rem 0.45rem; border-radius: 6px;
}
.lang-switcher a.active { color: var(--green-700); background: var(--green-50); }
.lang-switcher a:hover { color: var(--green-700); }

.menu-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    padding: 0.5rem; color: var(--ink-800);
    flex-shrink: 0;
}
.menu-toggle span {
    display: block; width: 28px; height: 3px; background: var(--ink-900);
    margin: 6px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}


/* ---------- 5. MASTHEAD (full-bleed green hero) ---------- */
.masthead {
    position: relative;
    background:
        radial-gradient(ellipse at top right, rgba(74,222,128,0.20), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(21,128,61,0.20), transparent 50%),
        linear-gradient(160deg, var(--green-600) 0%, var(--green-800) 60%, var(--green-900) 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 0 5.5rem;
    overflow: hidden;
}
.masthead::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}
.masthead > .container {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
}
.masthead-avatar {
    width: clamp(180px, 26vw, 300px);
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.18));
    background: #fff;
    border-radius: 24px;
    padding: 1.25rem 1.75rem;
}
.masthead-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #fff;
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    line-height: 1.05;
    margin: 0 0 0.25rem;
    max-width: 18ch;
}
.masthead-subheading {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    color: rgba(255,255,255,0.92);
    max-width: 60ch;
    margin: 0 auto 2rem;
}
.masthead-cta {
    display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
}

/* Calculator embedded directly in hero (replaces CTA button) */
.masthead-calc-wrap {
    width: 100%;
    max-width: 980px;
    margin: 2rem auto 0;
    text-align: left;
}
.masthead-calc-wrap .loan-calc {
    margin: 0;
}
/* On green hero, raise card visually */
.masthead-calc-wrap .loan-calc-compact {
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
}

/* Smaller hero variant for sub-pages */
.masthead.masthead-sm {
    padding: 3.5rem 0 3.75rem;
}
.masthead.masthead-sm .masthead-heading {
    font-size: clamp(1.75rem, 4vw, 3rem);
    max-width: 28ch;
}
.masthead.masthead-sm .masthead-subheading {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    margin-bottom: 0;
}

/* Breadcrumb on sub-page hero */
.breadcrumb {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.78);
    margin-bottom: 1.25rem;
    display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.78); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.55; }


/* ---------- 6. CUSTOM DIVIDER (line — 💰 — line) ---------- */
.divider-custom {
    margin: 1.25rem auto 1.75rem;
    width: 100%; max-width: 24rem;
    display: flex; justify-content: center; align-items: center;
}
.divider-custom-line {
    width: 100%; max-width: 7rem;
    height: 0.25rem;
    background-color: var(--ink-900);
    border-radius: 1rem;
    border-color: var(--ink-900);
}
.divider-custom-line:first-child { margin-right: 1rem; }
.divider-custom-line:last-child  { margin-left:  1rem; }
.divider-custom-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink-900);
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.08));
}
.divider-custom.divider-light .divider-custom-line { background-color: #fff; }
.divider-custom.divider-light .divider-custom-icon { color: #fff; }


/* ---------- 7. PAGE SECTIONS (centered, alternating bg) ---------- */
.page-section {
    padding: 5rem 0;
}
.page-section-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: var(--ink-900);
}
.page-section.bg-primary {
    background: linear-gradient(160deg, var(--green-600) 0%, var(--green-800) 100%);
    color: #fff;
}
.page-section.bg-primary .page-section-heading { color: #fff; }
.page-section.bg-light { background: var(--ink-50); }
.page-section.bg-dark  { background: var(--ink-900); color: #cbd5e1; }
.page-section.bg-dark .page-section-heading { color: #fff; }
.page-section-lead {
    font-size: 1.05rem; color: var(--ink-600);
    max-width: 720px; margin: 0 auto;
    text-align: center;
}
.page-section.bg-primary .page-section-lead { color: rgba(255,255,255,0.9); }

/* Backwards-compat helpers (so legacy templates still work) */
.section      { padding: 5rem 0; }
.section-alt  { background: var(--ink-50); }
.section-dark { background: var(--ink-900); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--green-700); margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800;
    line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.section-lead { font-size: 1.05rem; color: var(--ink-500); max-width: 700px; margin: 0 auto; }

.rich-text { max-width: 780px; margin: 0 auto; font-size: 1.02rem; }
.rich-text h2 { font-family: var(--font-heading); font-size: 1.55rem; margin: 2rem 0 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.rich-text h3 { font-family: var(--font-heading); font-size: 1.2rem; margin: 1.5rem 0 0.5rem; font-weight: 700; }
.rich-text p  { margin-bottom: 1rem; }
.rich-text ul, .rich-text ol { margin: 0 0 1rem 1.5rem; }
.rich-text a  { color: var(--green-700); font-weight: 600; border-bottom: 1px solid var(--green-200); }


/* ---------- 8. BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: var(--font-heading);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    font-size: 0.9rem;
    padding: 0.85rem 1.7rem;
    border-radius: 10px;
    background: var(--green-600); color: #fff !important;
    border: 0; cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s, color 0.15s;
    text-decoration: none;
}
.btn:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(21,128,61,0.30);
    color: #fff !important;
}
.btn-xl { font-size: 1rem; padding: 1rem 2rem; }
.btn-light {
    background: #fff; color: var(--green-700) !important;
}
.btn-light:hover { background: var(--ink-50); color: var(--green-800) !important; box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.btn-outline-light {
    background: transparent; color: #fff !important;
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff !important; border-color: #fff; box-shadow: none; transform: translateY(-1px); }
.btn-dark { background: var(--ink-900); color: #fff !important; }
.btn-dark:hover { background: var(--ink-800); color: #fff !important; }

/* Legacy button alias used by older templates */
.btn-green { background: var(--green-600); color: #fff !important; }
.btn-green:hover { background: var(--green-700); color: #fff !important; }
.btn-ghost {
    background: rgba(255,255,255,0.1); color: #fff !important;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff !important; box-shadow: none; }


/* ---------- 9. TRUST BAR ---------- */
.trust-bar {
    background: #fff; border-bottom: 1px solid var(--ink-200);
    padding: 1.5rem 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.5rem; align-items: center;
}
.trust-item {
    display: flex; gap: 0.85rem; align-items: center; justify-content: center;
    text-align: left;
}
.trust-num {
    font-family: var(--font-heading);
    font-size: 1.7rem; font-weight: 800;
    color: var(--green-700); line-height: 1; letter-spacing: -0.02em;
}
.trust-label { font-size: 0.82rem; color: var(--ink-500); line-height: 1.3; }


/* ---------- 10. CARDS GRID ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
/* "How it works" section has 3 cards — keep 3-up there */
.bg-primary .cards {
    grid-template-columns: repeat(3, 1fr);
}
.card {
    background: #fff; border: 1px solid var(--ink-200); border-radius: 14px;
    padding: 1.85rem 1.6rem;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    display: block; color: inherit !important;
    position: relative; overflow: hidden;
    text-decoration: none;
}
.card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--green-700));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s;
}
.card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: var(--green-200); text-decoration: none;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: var(--green-50); color: var(--green-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; font-weight: 800; margin-bottom: 1rem;
}
.card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.01em; margin-bottom: 0.5rem; color: var(--ink-900);
}
.card p { font-size: 0.94rem; color: var(--ink-600); }
.card-arrow {
    color: var(--green-700); font-weight: 700; margin-top: 1rem;
    font-size: 0.86rem; display: inline-flex; align-items: center; gap: 0.3rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    font-family: var(--font-heading);
}

/* On primary (green) section, cards stay white but headings & links adjust */
.bg-primary .card { color: var(--ink-800) !important; }

/* Provider card — for "Detailní recenze poskytovatelů" section on ProductPage */
.provider-card {
    text-align: left;
    align-items: stretch;
}
.provider-card h3 {
    text-align: center;
    margin-top: 0.5rem;
}
.provider-card-logo {
    display: flex; justify-content: center; align-items: center;
    height: 70px;
    margin-bottom: 0.75rem;
}
.provider-card-logo img {
    max-width: 140px; max-height: 60px;
    object-fit: contain;
}
.provider-card-rating {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    margin: 0.25rem 0 0.75rem;
    font-size: 0.85rem;
    color: var(--ink-700);
}
.provider-card-rating .rating-stars {
    font-size: 0.9rem;
}
.provider-card-rate {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0.85rem;
    margin: 0.5rem 0 0.75rem;
    background: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: 8px;
    font-size: 0.85rem;
}
.provider-card-rate-label {
    color: var(--ink-600);
    font-weight: 600;
}
.provider-card-rate-value {
    color: var(--green-700);
    font-weight: 800;
    font-family: var(--font-heading);
}
.provider-card p {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
}
.provider-card .card-arrow {
    margin-top: auto;
    padding-top: 0.75rem;
    align-self: center;
}


/* ---------- 11. COMPARISON TABLE ---------- */
.comp-wrap {
    background: #fff; border: 1px solid var(--ink-200);
    border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.comp-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.comp-table th {
    background: var(--ink-50);
    padding: 1rem 1.1rem; text-align: left;
    font-family: var(--font-heading);
    font-weight: 700; color: var(--ink-700);
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em;
    border-bottom: 1px solid var(--ink-200);
}
.comp-table td {
    padding: 1.15rem 1.1rem;
    border-bottom: 1px solid var(--ink-100);
    vertical-align: middle;
}
.comp-table tr:last-child td { border-bottom: 0; }
.comp-table tr:hover td { background: var(--green-50); }
.comp-table strong { color: var(--ink-900); font-weight: 700; }
.comp-detail-link {
    display: inline-block;
    margin-top: 0.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    color: var(--green-700) !important;
    border-bottom: 1px dashed var(--green-400);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}
.comp-detail-link:hover {
    color: var(--green-800) !important;
    border-bottom-color: var(--green-700);
}
.cta-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--green-600); color: #fff !important;
    padding: 0.6rem 1rem; border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    font-size: 0.78rem;
    transition: background 0.15s, transform 0.15s;
}
.cta-link:hover { background: var(--green-700); transform: translateY(-1px); color: #fff !important; text-decoration: none; }
.rating-stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }

/* ---------- Star rating with decimal precision (Google-style half-stars) ---------- */
.star-rating {
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: 1.1rem;
    letter-spacing: 2px;
    vertical-align: middle;
    white-space: nowrap;
}
.star-rating-bg {
    color: #d1d5db; /* prázdne hviezdičky — sivé */
}
.star-rating-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: var(--gold, #f7b500); /* zlatá výplň */
    white-space: nowrap;
    pointer-events: none;
}
.star-rating-text {
    margin-left: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-700, #374151);
    vertical-align: middle;
}
.provider-card-rating .star-rating { font-size: 1rem; }
.provider-card-rating .star-rating-text { font-size: 0.85rem; }


/* ---------- 12. PROS / CONS ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pros-cons-box { border-radius: 12px; padding: 1.5rem; }
.pros-box { background: var(--green-50);  border: 1px solid var(--green-200); }
.cons-box { background: var(--red-50);    border: 1px solid #fecaca; }
.pros-cons-box h3 {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.pros-box h3 { color: var(--green-800); }
.cons-box h3 { color: #b91c1c; }
.pros-cons-box ul { list-style: none; }
.pros-cons-box li {
    padding: 0.4rem 0; font-size: 0.94rem;
    display: flex; gap: 0.5rem; align-items: flex-start;
}
.pros-box li::before { content: "✓"; color: var(--green-600); font-weight: 800; flex-shrink: 0; }
.cons-box li::before { content: "✗"; color: var(--red-500);   font-weight: 800; flex-shrink: 0; }


/* ---------- 13. FAQ ---------- */
.faq-list { list-style: none; max-width: 820px; margin: 0 auto; }
.faq-item {
    background: #fff; border: 1px solid var(--ink-200); border-radius: 12px;
    margin-bottom: 0.75rem; overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-item:hover { border-color: var(--green-200); }
.faq-question {
    width: 100%; background: none; border: 0; cursor: pointer;
    text-align: left; padding: 1.15rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.98rem; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--ink-900);
}
.faq-question::after {
    content: "+"; font-weight: 800; color: var(--green-700);
    background: var(--green-50); border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; line-height: 1;
    transition: transform 0.2s, background 0.15s;
    flex-shrink: 0;
}
.faq-question:hover::after { background: var(--green-100); }
.faq-question.open::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 1.4rem 1.15rem;
    display: none; font-size: 0.94rem; color: var(--ink-700);
}
.faq-answer.open { display: block; }


/* ---------- 14. PROVIDER PAGE ---------- */
.provider-header {
    display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--ink-50) 0%, #fff 100%);
    border: 1px solid var(--ink-200); border-radius: 16px;
    padding: 1.75rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm);
}
.provider-logo        { flex-shrink: 0; }
.provider-logo img    { max-width: 140px; max-height: 70px; object-fit: contain; }
.provider-meta        { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1; min-width: 240px; }
.provider-meta span   {
    background: #fff; border: 1px solid var(--ink-200);
    border-radius: 8px; padding: 0.4rem 0.85rem;
    font-size: 0.82rem; font-weight: 600; color: var(--ink-700);
}


/* ---------- 15. BLOG ---------- */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}
.blog-card {
    background: #fff; border: 1px solid var(--ink-200); border-radius: 14px;
    overflow: hidden; transition: transform 0.15s, box-shadow 0.15s;
    color: inherit !important; display: block; text-decoration: none;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--ink-100); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; }
.blog-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem; font-weight: 800; text-transform: uppercase;
    margin-bottom: 0.5rem; line-height: 1.3; color: var(--ink-900);
    letter-spacing: 0.005em;
}
.blog-card-body p { font-size: 0.9rem; color: var(--ink-600); }
.blog-meta {
    font-size: 0.78rem; color: var(--ink-400); margin-top: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}


/* ---------- 16. FOOTER (white, centered logo + tagline + 3 cols + social) ---------- */
.footer {
    background: #fff; color: var(--ink-600);
    padding: 4.5rem 0 2.5rem;
    text-align: center;
    border-top: 1px solid var(--ink-200);
}
.footer-brand {
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 1.25rem;
}
.footer-brand img {
    height: 144px; width: auto;
}
.footer-tagline {
    font-size: 0.95rem; color: var(--ink-500);
    max-width: 520px; margin: 0 auto 2.75rem;
    line-height: 1.55;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 0 auto 2.75rem;
    text-align: center;
    max-width: 900px;
}
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.86rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--ink-900); margin-bottom: 1.1rem;
}
.footer-col p { font-size: 0.95rem; color: var(--ink-500); line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--ink-600); font-size: 0.92rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--green-700); text-decoration: none; }

.footer-social { margin-top: 1rem; }
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 0.86rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--ink-900); margin-bottom: 1rem;
}

/* Social icon buttons (round dark-outline circle on white) */
.btn-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: 0 0.3rem;
    border-radius: 50%;
    border: 2px solid var(--ink-300);
    color: var(--ink-700) !important;
    background: #fff;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-social:hover {
    background: var(--green-600);
    border-color: var(--green-600);
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-social svg { width: 18px; height: 18px; fill: currentColor; }


/* ---------- 16b. LOAN CALCULATOR ---------- */
.loan-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: var(--shadow);
}
.loan-calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.loan-calc-field {
    display: flex; flex-direction: column;
}
.loan-calc-label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    color: var(--ink-700);
    margin-bottom: 0.6rem;
}
.loan-calc-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--green-700);
    text-transform: none;
    letter-spacing: -0.005em;
}
.loan-calc-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--green-600) 0%, var(--green-600) 50%, var(--ink-200) 50%, var(--ink-200) 100%);
    outline: none;
    cursor: pointer;
    transition: background 0.15s;
}
.loan-calc-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--green-600);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(22,163,74,0.35);
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.18s;
}
.loan-calc-field input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(22,163,74,0.55);
}
.loan-calc-field input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--green-600);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(22,163,74,0.35);
    cursor: pointer;
}
.loan-calc-range-labels {
    display: flex; justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--ink-500);
    font-weight: 600;
}

/* Rate info display — fixed rate from Umbraco (not user-adjustable) */
.loan-calc-rate-info {
    background: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.loan-calc-rate-label {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.74rem;
    color: var(--ink-700);
    margin-bottom: 0.25rem;
}
.loan-calc-rate-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--green-700);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.loan-calc-rate-note {
    font-size: 0.72rem;
    color: var(--ink-500);
    line-height: 1.4;
}

/* Dropdown styling — for months selector */
.loan-calc-label-block {
    display: block;
    margin-bottom: 0.6rem;
}
.loan-calc-select-wrap {
    position: relative;
}
.loan-calc-select-wrap::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--green-700);
    border-bottom: 2px solid var(--green-700);
    transform: translateY(-75%) rotate(45deg);
    pointer-events: none;
}
.loan-calc-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--green-700);
    background: #fff;
    border: 2px solid var(--ink-200);
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.3;
}
.loan-calc-select:hover {
    border-color: var(--green-400);
}
.loan-calc-select:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}
.loan-calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(160deg, var(--green-50) 0%, #fff 100%);
    border: 1px solid var(--green-200);
    border-radius: 14px;
    padding: 1.75rem;
}
.loan-calc-result {
    text-align: center;
}
.loan-calc-result-label {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    color: var(--ink-600);
    margin-bottom: 0.4rem;
}
.loan-calc-result-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.loan-calc-result-main {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--green-200);
    margin-bottom: 0.5rem;
}
.loan-calc-result-main .loan-calc-result-label {
    font-size: 0.8rem;
    color: var(--green-700);
}
.loan-calc-result-main .loan-calc-result-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--green-700);
}
.loan-calc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.loan-calc-cta {
    display: block;
    margin: 0.5rem auto 0;
    text-align: center;
    width: 100%;
    max-width: 320px;
    text-decoration: none;
}
.loan-calc-note {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--ink-500);
    margin-top: 0.75rem;
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--green-200);
}

/* ─── Kalkulačka — fix overflow v Grid layoute (kľúčové!) ─── */
.loan-calc,
.loan-calc-inputs,
.loan-calc-results,
.loan-calc-field,
.loan-calc-result,
.loan-calc-result-grid,
.loan-calc-rate-info {
    min-width: 0;     /* Bez tohto Grid položky pretiekajú na mobile */
    max-width: 100%;
}
/* Čísla v kalkulačke — žiadny break-word, len overflow-wrap aby sa nelámali medzi cifrou */
.loan-calc-result-value,
.loan-calc-rate-value,
.loan-calc-value {
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loan-calc-field input[type="range"],
.loan-calc-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ─── Tablet / mobil — pod 768px (1-stĺpcový layout) ─── */
@media (max-width: 768px) {
    .loan-calc {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }
    .loan-calc-result-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .loan-calc-results {
        padding: 1.25rem;
    }
    .loan-calc-inputs {
        gap: 1.25rem;
    }
    .masthead-calc-wrap {
        padding: 0;
    }
}

/* ─── Malé telefóny — pod 480px (kompaktnejšie paddingy + fonty) ─── */
@media (max-width: 480px) {
    .loan-calc {
        padding: 1rem;
        border-radius: 12px;
        gap: 1.25rem;
    }
    .loan-calc-results {
        padding: 1rem;
        border-radius: 10px;
    }
    .loan-calc-value {
        font-size: 1rem;
    }
    .loan-calc-rate-value {
        font-size: 1.25rem;
    }
    .loan-calc-result-main .loan-calc-result-value {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .loan-calc-rate-info {
        padding: 0.875rem 1rem;
    }
    .loan-calc-label {
        font-size: 0.85rem;
    }
    .loan-calc-range-labels {
        font-size: 0.75rem;
    }
}


/* ---------- 16c. NEWSLETTER FORM ---------- */
.newsletter-form {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 18px;
    padding: 2.25rem 2.25rem 2rem;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}
.newsletter-form,
.newsletter-form *,
.newsletter-form *::before,
.newsletter-form *::after {
    box-sizing: border-box;
}
.newsletter-form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}
.newsletter-form-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
    color: #fff;
    font-size: 30px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(22,163,74,0.30);
}
.newsletter-form-header h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    color: var(--ink-900);
    margin: 0 0 0.5rem;
}
.newsletter-form-header p {
    color: var(--ink-600);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    max-width: 480px;
    margin: 0 auto;
}
.newsletter-fields {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 0.6rem;
    margin-bottom: 1rem;
    min-width: 0;     /* Bez tohto Grid pretiekne na mobile */
}
.newsletter-fields > * {
    min-width: 0;     /* Každá Grid položka musí povoliť shrink */
    max-width: 100%;
}
.newsletter-input {
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--ink-200);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-900);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.newsletter-input::placeholder {
    color: var(--ink-400);
}
.newsletter-input:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}
.newsletter-submit {
    padding: 0.85rem 1.5rem;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}
.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.newsletter-gdpr {
    font-size: 0.78rem;
    color: var(--ink-500);
    line-height: 1.55;
    margin: 0;
    padding-top: 0.6rem;
    text-align: justify;
    border-top: 1px solid var(--ink-100);
    overflow-wrap: break-word;
    word-break: break-word;
}
.newsletter-gdpr a {
    color: var(--green-700);
    border-bottom: 1px solid var(--green-200);
    font-weight: 600;
    word-break: break-word;
}
.newsletter-gdpr a:hover {
    color: var(--green-800);
    border-bottom-color: var(--green-600);
}

/* ─── Tablet / mobil — pod 700px (1-stĺpcový form) ─── */
@media (max-width: 700px) {
    .newsletter-form { padding: 1.75rem 1.25rem 1.5rem; }
    .newsletter-fields {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .newsletter-submit { width: 100%; }
    .newsletter-gdpr { text-align: left; }   /* justify vyzerá zle na úzkych obrazovkách */
}

/* ─── Malé telefóny — pod 480px ─── */
@media (max-width: 480px) {
    .newsletter-form {
        padding: 1.25rem 1rem 1.25rem;
        border-radius: 14px;
    }
    .newsletter-form-icon {
        width: 52px; height: 52px;
        font-size: 24px;
        margin-bottom: 0.875rem;
    }
    .newsletter-form-header h3 {
        font-size: 1.15rem;
    }
    .newsletter-form-header p {
        font-size: 0.875rem;
    }
    .newsletter-input {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }
    .newsletter-submit {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    .newsletter-gdpr {
        font-size: 0.72rem;
        line-height: 1.5;
    }
}


/* ---------- 17. COPYRIGHT BAR ---------- */
.copyright {
    background: var(--ink-50);
    color: var(--ink-500);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--ink-200);
}


/* ---------- 18. UTILITIES ---------- */
.scroll-x        { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.text-center     { text-align: center; }
.text-uppercase  { text-transform: uppercase; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }


/* ---------- 19. RESPONSIVE ---------- */
@media (min-width: 992px) {
    body { padding-top: var(--nav-h-desktop); }
    .nav-inner { height: var(--nav-h-desktop); }
    .nav-logo img { height: 112px; }
    .masthead { padding: 6.5rem 0 7rem; }
    .page-section { padding: 6rem 0; }
}

@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .bg-primary .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .bg-primary .cards { grid-template-columns: 1fr; }
}

/* Activate hamburger menu earlier (under 992px) so the navbar never wraps */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        position: fixed; top: var(--nav-h-mobile); left: 0; right: 0;
        max-height: calc(100vh - var(--nav-h-mobile));
        overflow-y: auto;
        background: #fff;
        flex-direction: column; align-items: stretch;
        padding: 0.75rem 1rem 1.25rem;
        gap: 0.15rem;
        border-bottom: 1px solid var(--ink-200);
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }
    .nav-links.open { display: flex; }
    .nav-links > li { width: 100%; }
    .nav-links a.nav-link {
        display: block;
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
        letter-spacing: 0.05em;
        border-bottom: 1px solid var(--ink-100);
        border-radius: 0;
    }
    .nav-links > li:last-of-type a.nav-link { border-bottom: 0; }
    .nav-cta {
        margin: 0.75rem 0 0;
        text-align: center;
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
    }
    .lang-switcher {
        padding-left: 0; margin: 0.75rem 0 0; border-left: 0;
        justify-content: center; padding-top: 0.85rem;
        border-top: 1px solid var(--ink-200);
        gap: 0.25rem;
    }
    .lang-switcher a {
        font-size: 0.85rem; padding: 0.5rem 0.85rem;
    }
    .menu-toggle { display: block !important; }
    .nav-logo { display: flex !important; }
    .nav-logo img { height: 72px !important; width: auto !important; display: block !important; }
    .nav-inner { gap: 0.75rem !important; padding: 0 !important; }
}

@media (max-width: 768px) {
    .cards { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .divider-custom-line { max-width: 4.5rem; }
    .footer-brand img { height: 110px; }
}
