/* =====================================================================
   Životná poistka — Design System
   Premium light UI · glassmorphism · aurora gradients
   Fialová #5B21B6 + Oranžová #F97316
   Autor: krok 1 (statický prototyp na schválenie)
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --violet-900: #2E1065;
  --violet-800: #4C1D95;
  --violet-700: #5B21B6;
  --violet-600: #6D28D9;
  --violet-500: #7C3AED;
  --violet-400: #9F67F0;
  --violet-200: #DDD3F7;

  --orange-600: #EA580C;
  --orange-500: #F97316;
  --orange-400: #FB923C;
  --orange-200: #FED7AA;

  --magenta-500: #C026D3;

  /* Neutrals / ink */
  --ink-900: #1A152B;   /* hlavný text */
  --ink-700: #3A3450;
  --ink-500: #6B6480;   /* tlmený text */
  --ink-300: #A39FB3;
  --line:    rgba(91, 33, 182, .10);
  --line-2:  rgba(91, 33, 182, .16);

  /* Surfaces */
  --bg:        #F8F7FB;
  --bg-2:      #F2EFFA;
  --surface:   #FFFFFF;
  --glass:     rgba(255, 255, 255, .68);
  --glass-2:   rgba(255, 255, 255, .55);
  --glass-line: rgba(255, 255, 255, .75);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--violet-600) 0%, var(--magenta-500) 48%, var(--orange-500) 100%);
  --grad-cta:   linear-gradient(120deg, #7C3AED 0%, #C026D3 55%, #F97316 120%);
  --grad-soft:  linear-gradient(135deg, #F4ECFF 0%, #FFF1E8 100%);
  --grad-ink:   linear-gradient(120deg, var(--violet-700), var(--magenta-500));

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(46, 16, 101, .06);
  --sh-sm: 0 4px 14px rgba(46, 16, 101, .08);
  --sh-md: 0 14px 40px rgba(46, 16, 101, .12);
  --sh-lg: 0 30px 70px rgba(46, 16, 101, .16);
  --sh-glow: 0 18px 50px rgba(124, 58, 237, .35);
  --sh-glow-orange: 0 18px 50px rgba(249, 115, 22, .30);

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 74px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--violet-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Aurora background atmosphere ---------- */
.aurora-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora-field::before { content: ""; position: absolute; inset: 0; background: var(--bg); }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  mix-blend-mode: multiply; animation: drift 22s var(--ease-soft) infinite alternate;
}
.blob.b1 { width: 46vw; height: 46vw; top: -14vw; left: -8vw; background: radial-gradient(circle, #C9A8FF, transparent 70%); }
.blob.b2 { width: 40vw; height: 40vw; top: -6vw; right: -10vw; background: radial-gradient(circle, #FFC59E, transparent 70%); animation-delay: -7s; }
.blob.b3 { width: 38vw; height: 38vw; bottom: -16vw; left: 22vw; background: radial-gradient(circle, #E3B8FF, transparent 70%); animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(4vw, 3vw) scale(1.12); }
}

/* ---------- 4. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.center { text-align: center; }
.stack { display: grid; gap: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-600);
  padding: .45em .9em; border-radius: var(--r-pill);
  background: linear-gradient(120deg, rgba(124,58,237,.10), rgba(249,115,22,.10));
  border: 1px solid var(--line);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-cta); box-shadow: 0 0 10px var(--orange-400); }

/* ---------- 5. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink-900); }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.15rem; }
.display-grad { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-700); line-height: 1.55; }
.muted { color: var(--ink-500); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: .5rem; }
.section-head p { margin-top: 1rem; }
em.fr { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--violet-600); }

/* ---------- 6. Buttons ---------- */
.btn {
  --pad-y: .95em; --pad-x: 1.5em;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: var(--pad-y) var(--pad-x); border-radius: var(--r-pill);
  font-weight: 700; font-size: .98rem; letter-spacing: -0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { color: #fff; background: var(--grad-cta); background-size: 160% 160%; box-shadow: var(--sh-glow); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease); pointer-events: none;
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(124,58,237,.45); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { color: var(--violet-700); background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.btn--ghost:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--sh-md); }
.btn--lg { --pad-y: 1.15em; --pad-x: 1.9em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--white { background: #fff; color: var(--violet-700); box-shadow: var(--sh-md); }
.btn--white:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

/* ---------- 7. Glass cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  padding: clamp(22px, 3vw, 34px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card--glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.card--lift { box-shadow: var(--sh-md); }

/* icon chip */
.ichip {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(249,115,22,.12));
  border: 1px solid var(--line); color: var(--violet-600); flex: none;
}
.ichip svg { width: 26px; height: 26px; }
.ichip--orange { color: var(--orange-500); }

/* ---------- 8. Header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 120; background: var(--grad-cta); box-shadow: 0 0 12px rgba(249,115,22,.6); transition: width .1s linear; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.site-header.is-stuck { background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--line), var(--sh-sm); height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink-900); white-space: nowrap; }
.brand span { white-space: nowrap; }
.brand .mark { width: 36px; height: 36px; flex: none; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a { padding: .55em .85em; border-radius: var(--r-pill); font-weight: 600; font-size: .94rem; color: var(--ink-700); transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--violet-700); background: rgba(124,58,237,.08); }
.nav .nav-trigger { display: inline-flex; align-items: center; gap: .35em; }
.nav .nav-chev { transition: transform .25s var(--ease); flex: none; }
.has-sub:hover .nav-chev, .has-sub:focus-within .nav-chev { transform: rotate(180deg); }
.header-cta { display: inline-flex; align-items: center; gap: .75rem; }

.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--glass-line);
  border-radius: var(--r-md); box-shadow: var(--sh-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; flex-direction: column; gap: 1px; padding: .6em .8em; border-radius: var(--r-sm); }
.submenu a span { font-size: .8rem; color: var(--ink-500); font-weight: 500; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line-2); place-items: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; position: relative; transition: .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: .3s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ---------- 9. Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 60px)); padding-bottom: clamp(48px, 7vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy h1 { margin: 1rem 0 1.2rem; }
.hero-copy .lead { max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 1.8rem; }
.hero-trust li { display: flex; align-items: center; gap: .55em; font-size: .92rem; font-weight: 600; color: var(--ink-700); }
.hero-trust svg { width: 18px; height: 18px; color: var(--orange-500); flex: none; }

/* ---------- 10. Protection score gauge (signature) ---------- */
.calc-card { position: relative; }
.calc-card--solid {
  background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -28px rgba(46,16,101,.30), 0 4px 14px rgba(46,16,101,.06);
}
.gauge { display: flex; align-items: center; gap: 1.2rem; }
.gauge-ring { position: relative; width: 116px; height: 116px; flex: none; }
.gauge-ring svg { transform: rotate(-90deg); }
.gauge-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge-ring .track { stroke: rgba(124,58,237,.12); }
.gauge-ring .fill { stroke: url(#gaugeGrad); transition: stroke-dashoffset 1s var(--ease); }
.gauge-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge-val b { font-family: var(--font-display); font-size: 1.85rem; line-height: 1; color: var(--violet-700); }
.gauge-val small { font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin-top: 4px; max-width: 74px; line-height: 1.2; white-space: normal; }

.calc-out { display: grid; gap: .5rem; }
.calc-out .row { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 0; border-bottom: 1px dashed var(--line-2); }
.calc-out .row:last-child { border-bottom: 0; }
.calc-out .row span { color: var(--ink-500); font-size: .92rem; }
.calc-out .row b { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-900); font-weight: 600; }
.tag-priority { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .35em .75em; border-radius: var(--r-pill); }
.tag-priority.high { color: #fff; background: var(--orange-500); }
.tag-priority.mid { color: var(--orange-600); background: var(--orange-200); }
.tag-priority.low { color: var(--violet-700); background: var(--violet-200); }

/* ---------- 11. Form controls ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field > label { font-weight: 600; font-size: .9rem; color: var(--ink-700); }
.input, .select {
  width: 100%; padding: .85em 1em; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.input::placeholder { color: var(--ink-300); }
.input:focus, .select:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%237C3AED' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em; }

/* segmented choice */
.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  flex: 1; min-width: 90px; text-align: center; padding: .8em 1em; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: #fff; font-weight: 600; font-size: .94rem; color: var(--ink-700);
  transition: .2s; user-select: none;
}
.seg label:hover { border-color: var(--violet-400); }
.seg input:checked + label { border-color: var(--violet-500); background: linear-gradient(120deg, rgba(124,58,237,.12), rgba(249,115,22,.10)); color: var(--violet-700); box-shadow: 0 0 0 3px rgba(124,58,237,.10); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--ink-500); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--violet-600); flex: none; }
.consent a { color: var(--violet-600); text-decoration: underline; }

/* ---------- 12. Stepper ---------- */
.stepper { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.6rem; }
.stepper .step { flex: 1; height: 6px; border-radius: 999px; background: rgba(124,58,237,.14); overflow: hidden; }
.stepper .step.done, .stepper .step.active { background: var(--grad-cta); }
.step-label { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-600); margin-bottom: .4rem; }

/* ---------- 13. Grid helpers ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* feature card */
.feature h3 { margin: 1rem 0 .5rem; font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.feature p { color: var(--ink-500); font-size: .96rem; }

/* ---------- 14. Steps (how it works) ---------- */
.steps { counter-reset: s; display: grid; gap: clamp(16px,2.4vw,26px); }
.step-card { position: relative; padding-left: 0; }
.step-num { font-family: var(--font-display); font-size: 2.4rem; color: transparent; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; line-height: 1; margin-bottom: .6rem; display: block; }

/* ---------- 15. Trust / insurers strip ---------- */
.insurers { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: center; opacity: .85; }
.insurer-chip { display: inline-flex; align-items: center; gap: .55em; padding: .6em 1.1em; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line); font-weight: 700; color: var(--ink-700); font-size: .95rem; }
.insurer-chip .d { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-cta); }

/* ---------- 16. Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px,2.4vw,26px); }
.stat b { font-family: var(--font-display); font-size: clamp(2.1rem,4vw,3rem); background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; }
.stat span { color: var(--ink-500); font-size: .92rem; margin-top: .5rem; display: block; }

/* ---------- 17. FAQ accordion ---------- */
.faq { display: grid; gap: .8rem; max-width: 820px; margin-inline: auto; }
.qa { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.qa[open] { box-shadow: var(--sh-sm); border-color: var(--line-2); }
.qa summary { list-style: none; cursor: pointer; padding: 1.15em 1.3em; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 1.05rem; color: var(--ink-900); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .chev { width: 22px; height: 22px; flex: none; color: var(--violet-600); transition: transform .3s var(--ease); }
.qa[open] summary .chev { transform: rotate(45deg); }
.qa .qa-body { padding: 0 1.3em 1.3em; color: var(--ink-500); }
.qa .qa-body p + p { margin-top: .7rem; }

/* ---------- 18. Testimonials ---------- */
.quote { display: grid; gap: 1.2rem; }
.quote p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink-700); font-weight: 400; }
.quote .who { display: flex; align-items: center; gap: .8rem; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-cta); display: grid; place-items: center; color: #fff; font-weight: 700; }
.quote .who b { font-size: .95rem; } .quote .who span { font-size: .82rem; color: var(--ink-500); display: block; }
.stars { color: var(--orange-500); letter-spacing: 2px; font-size: .9rem; }

/* ---------- 19. Blog ---------- */
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/10; }
.post-card .pc-body { padding: clamp(18px,2.4vw,26px); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.cat { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-500); }
.post-card h3 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.post-meta { margin-top: auto; display: flex; gap: 1rem; font-size: .82rem; color: var(--ink-500); padding-top: .6rem; }
.read-more { color: var(--violet-700); font-weight: 700; font-size: .92rem; display: inline-flex; gap: .4em; align-items: center; }

.cat-filter { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.cat-filter button { padding: .55em 1.1em; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--glass); font-weight: 600; font-size: .9rem; color: var(--ink-700); transition: .2s; }
.cat-filter button.active, .cat-filter button:hover { background: var(--grad-cta); color: #fff; border-color: transparent; }

/* article */
.article-body { max-width: 720px; margin-inline: auto; }
.article-body > * + * { margin-top: 1.3rem; }
.article-body h2 { font-size: clamp(1.5rem,3vw,2rem); margin-top: 2.4rem; }
.article-body h3 { margin-top: 1.8rem; }
.article-body p { color: var(--ink-700); font-size: 1.08rem; line-height: 1.7; }
.article-body ul.bullets { display: grid; gap: .7rem; }
.article-body ul.bullets li { padding-left: 1.8em; position: relative; color: var(--ink-700); }
.article-body ul.bullets li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-cta); }
.article-body blockquote { border-left: 3px solid var(--violet-500); padding: .4em 0 .4em 1.3em; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--violet-700); }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem 1.5rem; }
.toc b { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-600); }
.toc a { display: block; padding: .35em 0; color: var(--ink-700); font-weight: 600; font-size: .96rem; }
.toc a:hover { color: var(--violet-700); }

/* ---------- 20. CTA band ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(40px,6vw,80px); color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-cta); z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 20%, rgba(255,255,255,.25), transparent 60%); z-index: -1; }
.cta-band h2 { color: #fff; } .cta-band p { color: rgba(255,255,255,.9); max-width: 56ch; margin: 1rem auto 2rem; }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--violet-900); color: #DDD3F7; padding-block: clamp(48px,6vw,80px) 2rem; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: clamp(40px,6vw,80px); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: -30%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(192,38,211,.35), transparent 65%); filter: blur(40px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(24px,4vw,48px); position: relative; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.1rem; }
.site-footer a { color: #C9BCEC; font-size: .94rem; display: block; padding: .3em 0; transition: color .2s; }
.site-footer a:hover { color: #fff; }
/* Tlačidlá vo footeri nesmú dediť štýl bežných odkazov */
.site-footer a.btn { display: inline-flex; padding: var(--pad-y) var(--pad-x); font-size: .98rem; }
.site-footer a.btn--white { color: var(--violet-700); }
.site-footer a.btn--white:hover { color: var(--violet-700); }
.footer-note { color: #9F8FC9; font-size: .9rem; margin-top: 1rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #9F8FC9; position: relative; }

/* ---------- 22. Floating CTA + bottom nav ---------- */
.floating-cta { position: fixed; right: 22px; bottom: 26px; z-index: 90; opacity: 0; transform: translateY(20px) scale(.9); transition: .4s var(--ease); pointer-events: none; }
.floating-cta::after { display: none; }
.floating-cta.show { opacity: 1; transform: none; pointer-events: auto; }

.bottom-nav { display: none; }

/* ---------- 23. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* shimmer / skeleton */
.skeleton { background: linear-gradient(100deg, #ece8f5 30%, #f6f2ff 50%, #ece8f5 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 24. Page hero band (interior pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(40px,6vw,80px)); padding-bottom: clamp(20px,3vw,30px); }
.page-hero .lead { max-width: 60ch; margin-top: 1rem; }
.breadcrumbs { display: flex; gap: .5em; align-items: center; font-size: .85rem; color: var(--ink-500); margin-bottom: 1.2rem; }
.breadcrumbs a:hover { color: var(--violet-700); }
.breadcrumbs span { opacity: .5; }

/* checklist */
.checklist { display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist .ck { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(249,115,22,.14)); display: grid; place-items: center; flex: none; margin-top: 2px; }
.checklist .ck svg { width: 15px; height: 15px; color: var(--orange-500); }
.checklist b { display: block; }
.checklist span { color: var(--ink-500); font-size: .95rem; }

/* media placeholder helper */
.media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* split content row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.split--rev .split-media { order: -1; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,4vw,48px); align-items: start; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }

/* thank you */
.ty-hero { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.ty-badge { width: 96px; height: 96px; border-radius: 50%; background: var(--grad-cta); display: grid; place-items: center; margin: 0 auto 1.5rem; box-shadow: var(--sh-glow); animation: pop .6s var(--ease); }
.ty-badge svg { width: 48px; height: 48px; color: #fff; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- 25. Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .calc-card { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .nav, .header-cta .btn { display: none; }
  .burger { display: grid; }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .floating-cta { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
    background: var(--glass); backdrop-filter: blur(20px); border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .bottom-nav a { display: grid; place-items: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--ink-500); padding: 4px 10px; border-radius: 12px; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--violet-700); }
  body { padding-bottom: 64px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(26,21,43,.4); opacity: 0; transition: .3s; backdrop-filter: blur(4px); }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--bg); box-shadow: var(--sh-lg); padding: calc(var(--header-h) + 16px) 24px 24px; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer-panel a { display: block; padding: .9em .2em; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink-900); }
.drawer-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; }

/* safe area for header */
@supports (padding: max(0px)) {
  .site-header .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}

/* ---------- Flash správy (PHP) ---------- */
.flash { padding: .9em 1.2em; border-radius: var(--r-md); font-weight: 600; font-size: .95rem; margin-bottom: .8rem; border: 1px solid transparent; }
.flash--success { background: #D6F5E3; color: #0f7a47; border-color: #b6eccd; }
.flash--error { background: #FFE0E0; color: #b3261e; border-color: #f6c5c5; }
.flash--info { background: var(--violet-200); color: var(--violet-700); border-color: #ddc9ff; }

/* ============================================================
   Úpravy dizajnu — logo, kalkulačka (mobil), menu, blog, cookies
   ============================================================ */

/* Tlačidlo v mobilnom menu — neprebíjať generickým .drawer-panel a */
.drawer-panel a.btn { display: flex; border-bottom: 0; text-align: center; padding: var(--pad-y) var(--pad-x); }
.drawer-panel a.btn--primary { color: #fff; }

/* Plná kalkulačka — responzívne rozloženie (predtým pevné 2 stĺpce inline) */
.calc-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.calc-nav { display: flex; gap: .8rem; justify-content: space-between; margin-top: 1.6rem; }
@media (max-width: 860px) {
  .calc-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .calc-nav { flex-wrap: wrap; }
  .calc-nav .btn { flex: 1 1 100%; }
  .calc-nav .btn[data-prev] { order: 2; }
  .seg label { min-width: 0; flex: 1 1 46%; }
}

/* Blog — tlačidlo „Čítať viac" */
.post-card .pc-body { display: flex; flex-direction: column; }
.post-card .read-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--violet-700); font-size: .92rem; padding-top: .9rem; }
.post-card .read-more svg { transition: transform .3s var(--ease); }
.post-card:hover .read-more svg { transform: translateX(4px); }

/* Cookie lišta */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 660px; margin: 0 auto;
  background: var(--ink-900); color: #fff; border-radius: 18px; padding: 1.1rem 1.3rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; transform: translateY(160%); transition: transform .5s var(--ease); }
.cookie-bar.show { transform: none; }
.cookie-bar p { font-size: .9rem; line-height: 1.5; flex: 1 1 260px; margin: 0; color: rgba(255,255,255,.86); }
.cookie-bar p a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.cookie-bar .btn { padding: .7em 1.3em; font-size: .9rem; }
.cookie-bar .btn--ghost { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.32); }
body.cookie-open .floating-cta { display: none; }
@media (max-width: 560px) {
  .cookie-bar { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .cookie-actions { flex: 1 1 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* Kalkulačka — výsledkový panel: sticky len na desktope */
.calc-result { position: sticky; top: 90px; }
@media (max-width: 860px) {
  .calc-result { position: static; top: auto; }
}

/* Gauge — na mobile prstenec nad výsledky, aby mali labely plnú šírku */
@media (max-width: 560px) {
  .gauge { flex-direction: column; align-items: stretch; gap: 1rem; }
  .gauge-ring { align-self: center; }
  .calc-out .row span { font-size: .9rem; }
}

/* Atribút hidden musí vždy skryť prvok (inak ho .btn{display:inline-flex} prebije) */
[hidden] { display: none !important; }
