/* ============================================
   DIGITÁLNY VNÚČIK — Main Stylesheet
   Štýl: modrý vnúčik / pohľadnicový vibe
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    /* Colors — vnúčik palette: modré tričko + slnečná žltá + telová pleť */
    --cream: #FFF8EC;          /* svetlé pozadie - teplá béžová */
    --cream-deep: #FDEED1;     /* hlbšia béžová */
    --paper: #FFFDF7;          /* takmer biela papierová */

    /* Hlavná modrá - "vnúčikove tričko" */
    --olive: #2E5BBA;          /* kráľovská modrá (názov ostáva pre kompatibilitu) */
    --olive-dark: #1E3F87;     /* tmavá modrá */
    --olive-light: #6FA0E8;    /* svetlomodrá */

    /* Slnečná žltá - akcent, šiltovka */
    --sun: #F5B700;
    --sun-light: #FFD56B;
    --sun-deep: #D89E00;

    /* Telová / peach - pleť */
    --terracotta: #E89B7B;     /* peach */
    --terracotta-light: #F5C4A8; /* svetlejší peach */

    --ink: #1A2238;            /* tmavomodrá namiesto čiernej - láskavejšia */
    --ink-soft: #4A5578;
    --ink-muted: #8590B0;

    --leaf: #4A8C5E;           /* zelená pre prírodné akcenty */
    --sky: #C8E0F4;            /* bledomodrá pre SMS bublinu */
    --rose: #E8A5A5;           /* červená pre chyby v kvíze */

    /* Type */
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Nunito", system-ui, sans-serif;

    /* Sizing — generous for seniors */
    --fs-base: 18px;
    --fs-lg: 1.25rem;     /* ~22px */
    --fs-xl: 1.5rem;      /* ~27px */
    --fs-2xl: 2rem;       /* ~36px */
    --fs-3xl: 2.75rem;    /* ~50px */
    --fs-4xl: 4rem;       /* ~72px */

    /* Spacing */
    --gutter: clamp(1rem, 3vw, 2rem);
    --section-py: clamp(3rem, 8vw, 6rem);

    /* Radius */
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 28px;
    --r-xl: 40px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 42, 36, 0.06);
    --shadow-md: 0 8px 24px rgba(45, 42, 36, 0.10);
    --shadow-lg: 0 20px 50px rgba(45, 42, 36, 0.15);
    --shadow-card: 0 4px 0 var(--ink), 0 8px 20px rgba(45, 42, 36, 0.12);

    /* Transitions */
    --t-fast: 150ms ease;
    --t-med: 280ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ----- Base ----- */
html { font-size: var(--fs-base); }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 1.2s ease;
}

/* Paper texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' /%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: multiply;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: var(--gutter);
    position: relative;
    z-index: 2;
}

/* ----- Decorative blobs in background ----- */
.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-drift 20s ease-in-out infinite;
}
.blob-1 {
    width: 600px; height: 600px;
    background: var(--olive-light);
    top: -200px; left: -200px;
}
.blob-2 {
    width: 500px; height: 500px;
    background: var(--sun-light);
    top: 30%; right: -150px;
    animation-delay: -7s;
}
.blob-3 {
    width: 400px; height: 400px;
    background: var(--rose);
    bottom: 10%; left: 20%;
    animation-delay: -14s;
}
@keyframes blob-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(251, 245, 233, 0.85);
    border-bottom: 2px solid rgba(45, 42, 36, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}
.logo-icon {
    font-size: 1.8rem;
    /*transform: rotate(-5deg);*/
    display: inline-block;
}
.logo-text em {
    font-style: italic;
    color: var(--olive);
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--r-pill);
    border: 2px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    box-shadow: 0 3px 0 var(--ink);
    cursor: pointer;
}
.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--ink);
}
.nav-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 var(--ink);
}
.nav-btn-map { background: var(--olive-light); }
.nav-btn-quiz { background: var(--sun-light); }
.nav-btn-chat { background: var(--terracotta-light); }

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem);
    position: relative;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-eyebrow {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-xl);
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, var(--fs-4xl));
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.hero-title-accent {
    color: var(--olive);
    font-style: italic;
    font-weight: 700;
    position: relative;
    display: inline-block;
}
.hero-title-accent::after {
    content: "";
    position: absolute;
    bottom: 0.05em;
    left: -2%;
    width: 104%;
    height: 0.15em;
    background: var(--sun);
    border-radius: var(--r-pill);
    z-index: -1;
    transform: rotate(-1deg);
}
.hero-lead {
    font-size: var(--fs-lg);
    color: var(--ink-soft);
    max-width: 32em;
    margin-bottom: 2rem;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Hero illustration — postcard */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}
.postcard {
    width: min(320px, 100%);
    aspect-ratio: 4/3;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: var(--r-md);
    box-shadow: 0 8px 0 var(--ink), 0 20px 40px rgba(45, 42, 36, 0.15);
    transform: rotate(3deg);
    position: relative;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    animation: postcard-sway 6s ease-in-out infinite;
}
@keyframes postcard-sway {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-8px); }
}
.postcard-stamp {
    grid-column: 2;
    justify-self: end;
    width: 60px;
    height: 60px;
    background: var(--sun-light);
    border: 2px solid var(--ink);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transform: rotate(-5deg);
}
.postcard-lines {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding-top: 0.5rem;
}
.postcard-lines span {
    display: block;
    height: 3px;
    background: var(--ink-muted);
    opacity: 0.4;
    border-radius: var(--r-pill);
}
.postcard-lines span:nth-child(1) { width: 90%; }
.postcard-lines span:nth-child(2) { width: 70%; }
.postcard-lines span:nth-child(3) { width: 85%; }
.postcard-lines span:nth-child(4) { width: 60%; }
.postcard-heart {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    font-size: 2rem;
    animation: heart-beat 2s ease-in-out infinite;
}
@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: var(--r-pill);
    border: 2px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    box-shadow: 0 4px 0 var(--ink);
    text-align: center;
    line-height: 1.2;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--ink);
}
.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--ink);
}
.btn-primary {
    background: var(--olive);
    color: var(--paper);
}
.btn-ghost {
    border-color: transparent;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--olive);
}
.btn-ghost:hover {
    transform: none;
    box-shadow: none;
    background: var(--cream-deep);
}
.btn-huge {
    padding: 1.2rem 2rem;
    font-size: 1.25rem;
    border-radius: var(--r-lg);
}

/* ============================================
   SECTIONS — general
   ============================================ */
.section {
    padding-block: var(--section-py);
    position: relative;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-inline: auto;
}
.section-eyebrow {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, var(--fs-3xl));
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--ink-soft);
}

/* ============================================
   KTO SME
   ============================================ */
.section-kto {
    background:
        radial-gradient(ellipse at top right, rgba(168, 188, 110, 0.15), transparent 60%);
}
.kto-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}
.kto-text {
    font-size: var(--fs-lg);
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.kto-text strong {
    color: var(--olive-dark);
}
.kto-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.stat-card {
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: var(--r-md);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 0 var(--ink);
    transition: transform var(--t-med);
}
.stat-card:hover {
    transform: rotate(-2deg) scale(1.03);
}
.stat-card:nth-child(2) { transform: rotate(2deg); }
.stat-card:nth-child(2):hover { transform: rotate(0) scale(1.03); }
.stat-card:nth-child(3) {
    grid-column: span 2;
    background: var(--sun-light);
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--olive-dark);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.stat-card:nth-child(3) .stat-number { color: var(--ink); }
.stat-label {
    font-size: 1rem;
    color: var(--ink-soft);
    font-weight: 600;
}

/* ============================================
   SLIDER
   ============================================ */
.section-slider {
    background: var(--cream-deep);
    border-top: 2px dashed var(--ink-muted);
    border-bottom: 2px dashed var(--ink-muted);
}
.slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}
.slider-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 1rem;
    margin: -2rem -1rem;
    scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
    flex: 0 0 min(360px, 85vw);
    background: var(--slide-bg, var(--paper));
    border: 2px solid var(--ink);
    border-radius: var(--r-lg);
    padding: 2rem;
    scroll-snap-align: center;
    box-shadow: 0 6px 0 var(--ink), 0 12px 30px rgba(45, 42, 36, 0.1);
    transition: transform var(--t-med);
}


.slide-emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    line-height: 1;
}
.slide h3 {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.slide p {
    font-size: 1rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.slide-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: rgba(45, 42, 36, 0.1);
    border-radius: var(--r-pill);
    color: var(--ink-soft);
}

.slider-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 0 4px 0 var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    flex-shrink: 0;
}
.slider-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--ink);
    background: var(--sun-light);
}
.slider-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--ink);
}

.slider-dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(45, 42, 36, 0.2);
    border: none;
    cursor: pointer;
    transition: all var(--t-fast);
}
.slider-dot.is-active {
    background: var(--olive);
    width: 32px;
    border-radius: var(--r-pill);
}

/* ============================================
   QUIZ
   ============================================ */
.section-quiz {
    position: relative;
}
.quiz {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}
.quiz-card {
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: var(--r-xl);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 8px 0 var(--ink), 0 20px 50px rgba(45, 42, 36, 0.15);
    transition: opacity var(--t-med), transform var(--t-med);
}
.quiz-card.is-changing {
    opacity: 0;
    transform: translateX(-30px);
}

.quiz-progress {
    margin-bottom: 2rem;
}
.quiz-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--cream-deep);
    border-radius: var(--r-pill);
    overflow: hidden;
    border: 2px solid var(--ink);
    margin-bottom: 0.6rem;
}
.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--olive-light), var(--olive));
    width: 0%;
    transition: width var(--t-slow);
    border-radius: var(--r-pill);
}
.quiz-progress-text {
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.quiz-question-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.quiz-scenario {
    background: var(--cream-deep);
    border: 2px dashed var(--ink-muted);
    border-radius: var(--r-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
    font-family: var(--font-body);
}
.quiz-scenario.scenario-sms {
    background: var(--sky);
    border-style: solid;
    border-color: var(--ink);
    max-width: 380px;
    margin-inline: auto;
    border-radius: 24px 24px 24px 4px;
    padding: 1.2rem 1.5rem;
    position: relative;
}
.quiz-scenario.scenario-sms::before {
    content: "📱 SMS";
    position: absolute;
    top: -14px;
    left: 12px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-pill);
}
.quiz-scenario.scenario-email {
    background: var(--paper);
    border: 2px solid var(--ink);
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
}
.quiz-scenario.scenario-email .email-header {
    border-bottom: 1px solid var(--ink-muted);
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.quiz-answers {
    display: grid;
    gap: 0.8rem;
}
.quiz-answer {
    width: 100%;
    text-align: left;
    padding: 1.1rem 1.4rem;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: var(--r-md);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--t-fast);
    box-shadow: 0 3px 0 var(--ink);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.quiz-answer:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--ink);
    background: var(--cream-deep);
}
.quiz-answer:disabled {
    cursor: default;
    opacity: 0.7;
}
.quiz-answer.is-correct {
    background: var(--olive-light);
    border-color: var(--olive-dark);
    opacity: 1;
}
.quiz-answer.is-correct::after {
    content: "✓";
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--olive-dark);
    font-weight: 900;
}
.quiz-answer.is-wrong {
    background: var(--rose);
    border-color: #B85C5C;
    opacity: 1;
}
.quiz-answer.is-wrong::after {
    content: "✗";
    margin-left: auto;
    font-size: 1.5rem;
    color: #8B2F2F;
    font-weight: 900;
}

.quiz-explanation {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--sun-light);
    border: 2px solid var(--ink);
    border-radius: var(--r-md);
    font-size: 1rem;
    line-height: 1.6;
    animation: explanation-in 400ms ease-out;
}
.quiz-explanation strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}
@keyframes explanation-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-next {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
}

/* Quiz result */
.quiz-result {
    text-align: center;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: var(--r-xl);
    padding: clamp(2rem, 5vw, 4rem) 2rem;
    box-shadow: 0 8px 0 var(--ink), 0 20px 50px rgba(45, 42, 36, 0.15);
    position: relative;
    overflow: hidden;
    animation: result-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes result-pop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.quiz-result-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}
.quiz-result-score {
    font-size: var(--fs-xl);
    margin-bottom: 1rem;
}
.quiz-result-score strong {
    font-family: var(--font-display);
    font-size: 1.5em;
    color: var(--olive);
}
.quiz-result-message {
    font-size: var(--fs-lg);
    color: var(--ink-soft);
    margin-bottom: 2rem;
    max-width: 32em;
    margin-inline: auto;
}

/* When quiz finished, transform whole page */
body.quiz-completed {
    background-color: var(--sun-light);
}
body.quiz-completed .bg-decoration .blob {
    animation-duration: 8s;
    opacity: 0.6;
}

/* ============================================
   KONTAKT
   ============================================ */
.section-kontakt {
    background:
        radial-gradient(ellipse at bottom left, rgba(245, 183, 0, 0.12), transparent 60%);
}
.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.kontakt-card {
    display: block;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 0 var(--ink);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
a.kontakt-card:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 8px 0 var(--ink);
}
.kontakt-icon {
    display: inline-block;
    font-size: 3rem;
    margin-bottom: 1rem;
}
.kontakt-card h3 {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.kontakt-card p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding-block: 2rem;
    text-align: center;
    font-size: 1rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal[hidden] {
    display: none;
}

/* Ensure hidden attribute always works (CSS display rules can override it) */
[hidden] { display: none !important; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 42, 36, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
    animation: fade-in 250ms ease;
}
.modal-content {
    position: relative;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: var(--r-xl);
    padding: 3rem 2rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 0 var(--ink), 0 20px 50px rgba(0,0,0,0.3);
    animation: modal-pop 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modal-pop {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--ink-soft);
    border-radius: 50%;
    transition: background var(--t-fast);
}
.modal-close:hover {
    background: var(--cream-deep);
    color: var(--ink);
}
.modal-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.modal-content h3 {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: 1rem;
}
.modal-content p {
    color: var(--ink-soft);
    font-size: var(--fs-lg);
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 880px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-lead { margin-inline: auto; }
    .hero-cta { justify-content: center; }
    .hero-illustration { order: -1; }
    .postcard { width: min(280px, 80%); }

    .kto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    :root { --fs-base: 17px; }

    .header-inner {
        gap: 0.5rem;
    }
    .logo-text { font-size: 1.2rem; }
    .nav-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.9rem;
    }
    .main-nav { width: 100%; justify-content: center; }

    .btn-huge {
        width: 100%;
        justify-content: center;
    }
    .hero-cta { flex-direction: column; align-items: stretch; }

    .stat-card:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 420px) {
    .kto-stats {
        grid-template-columns: 1fr;
    }
    .stat-card:nth-child(3) {
        grid-column: span 1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
.logo-icon img {
    display: block;
    height: 2.5em;       /* prispôsob podľa potreby — napr. 2em ak chceš väčšie */
    width: auto;
}