/* =====================================================================
   Materská Kalkulačka – úvodná stránka (návrh č. 2)
   Komponenty: Header, HeroSection, TrustStrip, BenefitGrid, HowItWorks,
   CalculatorPreview, PricingSection, ArticleCards, FaqSection, Footer
   Tokeny sú v css/design-tokens.css
   ===================================================================== */

:root {
  --mint-600: #12c7b0;
  --violet-100: #efe8ff;
  --line: #e3e8f5;
  --line-dark: rgb(255 255 255 / 14%);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #c9c6ee;
  --focus: #26e7ce;
  --header-h: 76px;
  --shadow-soft: 0 6px 18px rgb(19 16 68 / 7%);
  --shadow-lift: 0 18px 40px rgb(19 16 68 / 14%);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.on-light :focus-visible, .modal :focus-visible { outline-color: var(--indigo-700); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--mint-500); color: var(--navy-950); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Kontajner – 32 / 24 / 16 px po stranách */
.mk-container { width: min(calc(100% - 64px), var(--container-max)); margin-inline: auto; }
@media (max-width: 1199px) { .mk-container { width: min(calc(100% - 48px), var(--container-max)); } }
@media (max-width: 767px) { .mk-container { width: min(calc(100% - 32px), var(--container-max)); } }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-button);
  font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--mint-500); color: var(--navy-950); box-shadow: 0 8px 22px rgb(38 231 206 / 28%); }
.btn-primary:hover { background: #4ff0da; }
.btn-light { background: #fff; color: var(--navy-950); }
.btn-light:hover { box-shadow: 0 8px 22px rgb(0 0 0 / 18%); }
.btn-outline { background: transparent; color: var(--indigo-900); border: 1.5px solid #cfd5ee; }
.btn-outline:hover { border-color: var(--indigo-700); }
.btn-dark { background: var(--indigo-900); color: #fff; }
.btn-dark:hover { background: var(--indigo-700); }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- A. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy-950); color: var(--text-on-dark);
  transition: background-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { background: rgb(21 16 68 / 92%); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { width: 40px; height: 40px; color: var(--mint-500); }
.brand-name { font-weight: 800; font-size: 17px; line-height: 1.05; }
.main-nav { display: flex; gap: 34px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text-on-dark); opacity: .9; position: relative; padding-block: 6px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mint-500); transform: scaleX(0); transition: transform .2s var(--ease); }
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.login-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 6px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .icon { width: 22px; height: 22px; }
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .login-link .label { display: none; }
}
.cta-sm { display: none; }
@media (max-width: 480px) {
  .header-row { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 10px 14px; font-size: 15px; }
  .header-actions .btn .icon { display: none; }
  .cta-lg { display: none; } .cta-sm { display: inline; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; }
}

/* Mobilné menu – panel */
.mobile-panel[hidden] { display: none; }
.mobile-panel { position: fixed; inset: 0; z-index: 60; }
.mobile-panel .backdrop { position: absolute; inset: 0; background: rgb(11 8 40 / 55%); }
.mobile-panel .sheet {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: var(--navy-950); color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: -20px 0 40px rgb(0 0 0 / 30%); overflow-y: auto;
  animation: sheet-in .22s var(--ease);
}
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet a.nav-item { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 17px; }
.sheet a.nav-item:hover { background: rgb(255 255 255 / 8%); }
.sheet .sheet-actions { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-dark); }

/* ---------- B. Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--hero-gradient); color: #fff;
  padding-block: 64px 88px;
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero::before {
  inset: -20% -10% auto auto; width: 70%; height: 140%;
  background: linear-gradient(115deg, transparent 0 38%, rgb(173 141 248 / 22%) 38% 52%, transparent 52% 60%, rgb(38 231 206 / 12%) 60% 66%, transparent 66%);
}
.hero::after {
  left: -8%; bottom: -30%; width: 46%; height: 70%;
  background: radial-gradient(closest-side, rgb(173 141 248 / 35%), transparent);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 48px; align-items: center; min-height: 520px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; }
.hero h1 .hl { color: var(--mint-500); font-style: italic; position: relative; display: inline-block; padding-right: .08em; }
.hero h1 .swoosh { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .28em; color: var(--mint-500); }
.hero-lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-on-dark-muted); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-benefits { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: #e6e3ff; }
.hero-benefits li { display: flex; align-items: center; gap: 8px; }
.hero-benefits .icon { color: var(--mint-500); width: 18px; height: 18px; }

/* Ukážka aplikácie (CalculatorPreview) */
.preview { position: relative; }
.preview-window {
  background: rgb(255 255 255 / 96%); color: var(--text-dark);
  border-radius: var(--radius-panel); padding: 14px; box-shadow: 0 30px 70px rgb(8 5 40 / 45%);
  border: 1px solid rgb(255 255 255 / 60%);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.preview:hover .preview-window { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.window-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 12px; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e5f1; }
.sample-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--indigo-700); background: var(--violet-100); padding: 5px 10px; border-radius: 999px; }
.app-shell { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
.app-side { background: var(--navy-950); color: #fff; border-radius: 18px; padding: 14px 10px; display: grid; gap: 4px; align-content: start; font-size: 13px; }
.app-side .s-brand { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; padding: 0 6px 10px; }
.app-side .s-brand svg { width: 22px; height: 22px; color: var(--mint-500); }
.app-side span.s-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; color: #d9d6f6; }
.app-side span.s-item.active { background: var(--mint-500); color: var(--navy-950); font-weight: 700; }
.app-side .icon { width: 15px; height: 15px; }
.app-main { display: grid; gap: 12px; min-width: 0; }
.app-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.app-title h2 { font-size: 18px; }
.ok-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--success); background: var(--mint-100); padding: 4px 10px; border-radius: 999px; }
.ok-chip .icon { width: 14px; height: 14px; }
.app-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; }
.amount-card { background: linear-gradient(140deg, var(--indigo-900), var(--indigo-700)); color: #fff; border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.amount-card .k { font-size: 12.5px; color: #d8d3ff; font-weight: 600; }
.amount-card .v { font-size: 32px; font-weight: 800; line-height: 1; }
.amount-card .v small { font-size: 14px; font-weight: 600; color: #d8d3ff; }
.amount-card .sub { background: rgb(255 255 255 / 12%); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #e9e6ff; }
.amount-card .sub b { display: block; font-size: 17px; color: #fff; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 8px; }
.chart-card .k { font-size: 13px; font-weight: 700; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; border-bottom: 1px solid var(--line); }
.mini-bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--mint-500), var(--violet-300)); transform-origin: bottom; animation: grow .8s var(--ease); }
.mini-bars i.rp { background: linear-gradient(180deg, #8ff3e5, #bfe9e2); }
@keyframes grow { from { transform: scaleY(.15); } to { transform: none; } }
.bars-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }
.schedule { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 10px; }
.schedule .k { font-size: 13px; font-weight: 700; }
.steps-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.steps-line::before { content: ""; position: absolute; left: 12%; right: 12%; top: 15px; height: 2px; background: linear-gradient(90deg, var(--mint-500), var(--violet-300)); }
.steps-line li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 11.5px; color: var(--text-muted); position: relative; }
.steps-line .node { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--violet-300); color: var(--indigo-700); }
.steps-line .node.done { background: var(--success); border-color: var(--success); color: #fff; }
.steps-line .node .icon { width: 15px; height: 15px; }
.steps-line b { color: var(--text-dark); font-size: 12px; }
.preview-note { margin-top: 12px; font-size: 13px; color: var(--text-on-dark-muted); text-align: center; }

@media (max-width: 1199px) {
  .hero-grid { gap: 32px; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
}
@media (max-width: 899px) {
  .hero { padding-block: 40px 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .preview-window { transform: none; }
  .preview:hover .preview-window { transform: none; }
}
@media (max-width: 767px) {
  .hero-ctas .btn { width: 100%; }
  .app-cards { grid-template-columns: minmax(0, 1fr); }
  .chart-card { display: none; } /* zjednodušená ukážka na mobile */
  .amount-card .v { font-size: 30px; }
}

/* ---------- C. Pruh výhod ---------- */
.trust { position: relative; z-index: 2; margin-top: -40px; }
.trust-bar { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 20px 22px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .icon { width: 30px; height: 30px; color: var(--success); }
.trust-item small { display: block; font-weight: 500; color: var(--text-muted); font-size: 13px; }
@media (max-width: 1023px) {
  .trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .trust-bar { grid-template-columns: minmax(0, 1fr); }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sekcie ---------- */
.section { padding-block: 88px; }
.section-tight { padding-block: 64px; }
@media (max-width: 767px) { .section { padding-block: 52px; } .section-tight { padding-block: 44px; } }
.section-head { display: grid; gap: 10px; max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--text-muted); font-size: 17px; }
.eyebrow { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--indigo-700); }

/* ---------- D. Výhody ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1199px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .benefits { grid-template-columns: minmax(0, 1fr); } }
.benefit {
  background: #fff; border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.benefit-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; }
.benefit-icon .icon { width: 28px; height: 28px; }
.benefit h3 { font-size: 18px; margin-bottom: 4px; }
.benefit p { color: var(--text-muted); font-size: 14.5px; }
.tone-mint { background: var(--mint-100); color: var(--success); }
.tone-violet { background: var(--violet-100); color: var(--indigo-700); }

/* ---------- E. Ako to funguje ---------- */
.how { background: linear-gradient(120deg, var(--navy-950), var(--indigo-900) 60%, var(--indigo-700)); color: #fff; }
.how-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 40px; align-items: center; padding-block: 56px; }
.how h2 { font-size: clamp(28px, 3.2vw, 38px); }
.how .how-sub { margin-top: 10px; color: var(--text-on-dark-muted); font-size: 18px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.how-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; position: relative; counter-increment: step; }
.how-step .circle { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--indigo-700); display: grid; place-items: center; }
.how-step .circle .icon { width: 28px; height: 28px; }
.how-step .circle::after {
  content: counter(step); position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mint-500); color: var(--navy-950); font-weight: 800; font-size: 14px; display: grid; place-items: center;
}
.how-step h3 { font-size: 18px; }
.how-step p { color: var(--text-on-dark-muted); font-size: 14.5px; margin-top: 4px; }
.how-step:not(:last-child)::after {
  content: ""; position: absolute; right: -22px; top: 26px; width: 12px; height: 12px;
  border-top: 2px solid var(--mint-500); border-right: 2px solid var(--mint-500); transform: rotate(45deg);
}
@media (max-width: 1199px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 767px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .how-step:not(:last-child)::after { right: auto; left: 31px; top: 70px; width: 2px; height: 22px; border: 0; background: var(--mint-500); transform: none; }
}

/* ---------- F. Ukážka výsledku + G. Cenník ---------- */
.result-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
@media (max-width: 899px) { .result-grid { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.checklist .icon { color: var(--success); width: 22px; height: 22px; }
.result-card { background: #fff; border-radius: var(--radius-panel); box-shadow: var(--shadow-card); padding: 26px; display: grid; gap: 18px; position: relative; border: 1px solid var(--line); }
.result-card .sample-badge { position: absolute; top: -13px; right: 24px; background: var(--mint-500); color: var(--navy-950); }
.result-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 560px) { .result-top { grid-template-columns: minmax(0, 1fr); } }
.result-main .k { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.result-main .v { font-size: clamp(32px, 4vw, 42px); font-weight: 800; color: var(--indigo-700); line-height: 1.05; }
.result-main .v small { font-size: 16px; color: var(--text-muted); font-weight: 600; }
.result-chip { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; font-size: 13px; color: var(--text-muted); }
.result-chip b { font-size: 17px; color: var(--text-dark); }
.result-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; border-bottom: 1px solid var(--line); }
.result-chart i { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--violet-300), var(--indigo-700)); }
.result-chart i.rp { background: linear-gradient(180deg, var(--mint-500), #9cefe3); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1023px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan-card.featured { grid-column: span 2; order: -1; } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } .plan-card.featured { grid-column: auto; } }
.plan-card { background: #fff; border-radius: var(--radius-card); border: 1.5px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-soft); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.plan-card.featured { border: 2px solid var(--mint-500); background: linear-gradient(180deg, var(--mint-100), #fff 55%); box-shadow: 0 18px 44px rgb(38 231 206 / 22%); }
.plan-head { display: grid; gap: 4px; }
.plan-head h3 { font-size: 22px; }
.plan-head p { color: var(--text-muted); font-size: 14.5px; }
.plan-price { font-size: 44px; font-weight: 800; line-height: 1; color: var(--indigo-900); }
.plan-price small { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-top: 6px; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; font-size: 15px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features .icon { color: var(--success); width: 20px; height: 20px; margin-top: 2px; }
.pricing-note { margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.price-value:empty::before { content: ""; display: inline-block; width: 70px; height: .8em; border-radius: 8px; background: #e7eaf6; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- H. Tipy ---------- */
.tips-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 36px; align-items: start; }
@media (max-width: 1023px) { .tips-layout { grid-template-columns: minmax(0, 1fr); } }
.tips-intro { display: grid; gap: 14px; justify-items: start; }
.tips-intro h2 { font-size: clamp(28px, 3.2vw, 38px); }
.tips-intro p { color: var(--text-muted); }
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 899px) { .articles { grid-template-columns: minmax(0, 1fr); } }
.article { background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); text-decoration: none; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.article:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.article-cover { aspect-ratio: 16 / 9; max-width: 100%; position: relative; display: grid; place-items: center; overflow: hidden; }
.article-cover .icon { width: 52px; height: 52px; color: rgb(255 255 255 / 92%); }
.article-cover .cat { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--mint-500); color: var(--navy-950); }
.cover-0 { background: linear-gradient(135deg, var(--indigo-700), var(--violet-300)); }
.cover-1 { background: linear-gradient(135deg, var(--indigo-900), #2f7fd1); }
.cover-2 { background: linear-gradient(135deg, #0a9c7d, var(--mint-500)); }
.article-body { padding: 18px; display: grid; gap: 8px; }
.article-body h3 { font-size: 17px; line-height: 1.3; }
.article-body p { color: var(--text-muted); font-size: 14.5px; }
.article-meta { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 15px; height: 15px; }
.article.skeleton .article-cover { background: #e7eaf6; animation: pulse 1.4s ease-in-out infinite; }
.article.skeleton .line { height: 14px; border-radius: 8px; background: #e7eaf6; animation: pulse 1.4s ease-in-out infinite; }
.articles-empty { grid-column: 1 / -1; background: #fff; border-radius: var(--radius-card); padding: 28px; color: var(--text-muted); text-align: center; }

/* ---------- I. FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr) minmax(0, .9fr); gap: 32px; align-items: start; }
@media (max-width: 1199px) { .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } .contact-card { grid-column: 1 / -1; } }
@media (max-width: 767px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }
.faq-intro h2 { font-size: clamp(28px, 3.2vw, 38px); }
.faq-intro p { color: var(--text-muted); margin-top: 10px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; padding: 16px 18px; font-weight: 700; cursor: pointer; min-height: 56px; }
.faq-q .icon { transition: transform .22s var(--ease); width: 20px; height: 20px; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 18px 16px; color: var(--text-muted); }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.contact-card { background: linear-gradient(140deg, var(--mint-100), #ecfffb); border-radius: var(--radius-card); padding: 22px; display: grid; gap: 10px; border: 1px solid #bff3ea; }
.contact-card .head { display: flex; align-items: center; gap: 10px; }
.contact-card .head .icon { width: 30px; height: 30px; color: var(--success); }
.contact-card h3 { font-size: 18px; }
.contact-card p { color: var(--text-muted); font-size: 14.5px; }
.contact-mail { font-weight: 800; color: var(--indigo-900); word-break: break-all; }

/* ---------- Partner + J. Footer ---------- */
.partner { padding-block: 0 48px; display: flex; justify-content: center; }
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 32px; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand p { margin-top: 12px; max-width: 36ch; }
.footer-col h3 { font-size: 15px; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.footer-col a, .footer-col button.linklike { display: block; text-decoration: none; padding-block: 4px; color: var(--text-on-dark-muted); background: none; border: 0; cursor: pointer; text-align: left; padding-inline: 0; font-size: 15px; }
.footer-col a:hover, .footer-col button.linklike:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark); display: grid; place-items: center; color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }
.footer-bottom strong { color: #fff; font-weight: 600; }

/* ---------- Modálne okná ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgb(11 8 40 / 60%); }
.modal-box { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--radius-card); box-shadow: 0 30px 80px rgb(0 0 0 / 35%); }
.modal-box.wide { max-width: 680px; }
.modal-head { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); z-index: 1; }
.modal-head h2 { font-size: 21px; }
.modal-close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.modal-body { padding: 22px; display: grid; gap: 18px; }
.modal-body h3 { font-size: 16px; color: var(--indigo-900); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.input { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fbfcff; font-size: 16px; }
.input:focus { outline: none; border-color: var(--indigo-700); box-shadow: 0 0 0 3px rgb(68 50 184 / 15%); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 14px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.plan-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.plan-option:has(input:checked) { border-color: var(--mint-500); background: var(--mint-100); }
.plan-option input { width: 18px; height: 18px; accent-color: var(--indigo-700); }
.plan-option .t { font-weight: 700; }
.plan-option .d { font-size: 14px; color: var(--text-muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--page); padding: 14px; border-radius: 12px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--indigo-700); }
.form-error { color: #c0264f; font-size: 14px; font-weight: 600; }
.hint { font-size: 13px; color: var(--text-muted); }

/* ---------- Cookies ---------- */
.cookie-bar[hidden] { display: none; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 16px 16px; }
.cookie-box { max-width: 1100px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgb(19 16 68 / 25%); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; border: 1px solid var(--line); }
.cookie-box p { flex: 1 1 320px; font-size: 14.5px; }
.cookie-box .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Scroll reveal ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .preview-window, .preview:hover .preview-window { transform: none; }
}
