:root{
  --deep-navy: #243447;
  --navy: #243447;
  --sand: #F4EFE8;
  --line: #D8D2C8;
  --terracotta: #C46A3B;

  --bg: #FFFFFF;
  --soft: #F6F7FA;

  --text: #111214;
  --muted: rgba(17,18,20,.78);

  --radius: 16px;
  --max: 1040px;

  --section-pad: clamp(76px, 7.5vw, 104px);
  --header-offset: 96px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

a{ color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, button:focus-visible{
  outline: 2px solid rgba(36,52,71,.55);
  outline-offset: 4px;
  border-radius: 12px;
}

/* Skip link */
.skip-link{
  position:absolute;
  left:-999px; top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:14px; top:14px;
  width:auto; height:auto;
  padding:10px 12px;
  background: #fff;
  border: 1px solid rgba(36,52,71,.18);
  border-radius: 12px;
  z-index: 999;
}

.container{
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(216,210,200,.75);
  transition: background-color .18s ease, border-color .18s ease;
}

/* INVERT header on scroll */
.site-header.is-scrolled{
  background: rgba(36,52,71,.94);
  border-bottom-color: rgba(36,52,71,.55);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 28px;
  padding: 18px 0;
}

.brand{
  display:inline-flex;
  align-items:center;
  padding-right: 6px;
}

.brand-logo{
  width: 170px;
  height: auto;
  color: var(--deep-navy);
}

.site-header.is-scrolled .brand-logo{
  color: var(--sand);
}

.nav{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content:flex-end;
  align-items:center;
  margin-left: 8px;
}
.nav a{
  font-size: 14px;
  font-weight: 600;
  color: rgba(36,52,71,.78);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background-color .12s ease, color .12s ease;
}
.nav a:hover{
  color: var(--deep-navy);
  background: rgba(36,52,71,.04);
}

/* nav invert state */
.site-header.is-scrolled .nav a{
  color: rgba(244,239,232,.82);
}
.site-header.is-scrolled .nav a:hover{
  color: var(--sand);
  background: rgba(244,239,232,.08);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(216,210,200,.95);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease, transform .14s ease, box-shadow .14s ease;
}
.btn-primary{
  background: var(--deep-navy);
  border-color: rgba(36,52,71,.95);
  color: var(--sand);
}
.btn-primary:hover{ background: rgba(36,52,71,.92); }

/* button invert in header on scroll (tiché, čitateľné) */
.site-header.is-scrolled .btn-primary{
  background: rgba(244,239,232,.96);
  border-color: rgba(244,239,232,.55);
  color: var(--deep-navy);
}
.site-header.is-scrolled .btn-primary:hover{
  background: rgba(244,239,232,.90);
}

/* Typography */
.h1, .h2, .h3{ color: var(--deep-navy); }
.h1{
  margin: 0 0 14px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h2{
  margin: 0 0 14px;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.01em;
}
.h3{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.005em;
}
.lead{
  margin: 0 0 14px;
  font-size: 16px;
  color: rgba(17,18,20,.86);
}
.body{
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 80ch;
}
.accent{ font-weight: inherit; }

/* Sections */
.section{
  padding: var(--section-pad) 0;
  scroll-margin-top: var(--header-offset);
}
.section-soft{
  background: var(--soft);
  border-top: 1px solid rgba(216,210,200,.70);
  border-bottom: 1px solid rgba(216,210,200,.70);
}

/* HERO */
.hero{
  padding: var(--section-pad) 0 calc(var(--section-pad) * .55);
}
.actions{ margin-top: 16px; }
.micro{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(216,210,200,.85);
  color: rgba(17,18,20,.72);
}
.micro p{ margin: 6px 0; }

/* Lists */
.list{
  margin: 12px 0 16px;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}
.list li{ margin: 8px 0; }

/* Terracotta bodky (zoznamy) */
.list-dots li{
  position: relative;
  padding-left: 18px;
}
.list-dots li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--terracotta);
  opacity: .55;
  transform: translateY(-50%);
}

/* Cards */
.cards{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.card{
  border: 1px solid rgba(216,210,200,.90);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
}
.card-text{ margin: 10px 0 0; color: var(--muted); }

.card-title{
  display:flex;
  gap: 10px;
  align-items:flex-start;
}

/* ICON pattern (line ikonky) */
.icon{
  width: 22px;
  height: 22px;
  color: var(--deep-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.icon svg{
  width: 100%;
  height: 100%;
  display:block;
}
.icon--18{ width: 18px; height: 18px; margin-top: 2px; }
.icon--24{ width: 24px; height: 24px; }
.icon--36{ width: 36px; height: 36px; }

/* ===== ČO DOSTANETE: center layout + ikonky 40px ===== */
#co-dostanete .benefit-card{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#co-dostanete .benefit-card .h3{
  margin-top: 2px;
}

#co-dostanete .benefit-card .card-text{
  margin-top: 0;
  text-align: center;
}

#co-dostanete .benefit-icon{
  width: 40px;
  height: 40px;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .18s ease;
}

#co-dostanete .benefit-icon svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* hrubší stroke pre túto sekciu (CSS override; SVG tvar/path nemeníme) */
#co-dostanete .benefit-icon svg g{
  stroke-width: 5.0;
}

/* hover: mení sa len ikona */
#co-dostanete .benefit-card:hover .benefit-icon{
  color: var(--deep-navy);
}

/* Icon cards */
.icon-cards{
  margin: 16px 0 18px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.icon-card{
  border: 1px solid rgba(216,210,200,.90);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

/* bodka iba bodka */
.bullet{
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 6px;
}
.mark{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--terracotta);
  opacity: .55;
  display:block;
}

/* Steps */
.steps{
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}
.step{
  border: 1px solid rgba(216,210,200,.90);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.step-bullet{
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 6px;
}
.step-body p{ margin: 0; color: var(--muted); }

/* FAQ */
.faq{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid rgba(216,210,200,.90);
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.faq-item summary{
  cursor:pointer;
  font-weight: 650;
  list-style: none;
  color: var(--deep-navy);
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker{ display:none; }

.faq-item summary::after{
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: rgba(36,52,71,.75);
  font-weight: 700;
}
.faq-item[open] summary::after{ content: "–"; }

.faq-body{
  margin-top: 10px;
  color: var(--muted);
  max-width: none;
}

/* CTA */
.cta .cta-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  border: 1px solid rgba(216,210,200,.90);
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 18px;
}
.cta-actions{ display:flex; }

/* Footer — (tmavý) */
.site-footer{
  background: var(--deep-navy);
  color: rgba(244,239,232,.86);
  border-top: 1px solid rgba(244,239,232,.14);
  padding: 28px 0;
}

.footer-inner{
  display:grid;
  gap: 14px;
}
.footer-contact{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

/* Footer: svetlé ikonky + jemný hover (bez posunu layoutu) */
.site-footer .icon{
  color: var(--sand);
  opacity: .90;
}
.site-footer .contact-item{
  color: rgba(244,239,232,.82);
  transition: color .14s ease, opacity .14s ease;
}
.site-footer .contact-text a{
  color: rgba(244,239,232,.86);
  transition: color .14s ease, opacity .14s ease;
}
.site-footer .contact-item:hover{
  color: rgba(244,239,232,1);
}
.site-footer .contact-item:hover .icon{
  opacity: 1;
}
.site-footer .contact-item:hover .contact-text a{
  color: rgba(244,239,232,1);
}

.contact-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  color: rgba(17,18,20,.78);
}
.contact-text div{ line-height: 1.45; }
.contact-text a{
  color: rgba(17,18,20,.86);
  text-decoration: none;
}
.contact-text a:hover{ color: var(--deep-navy); }

.footer-meta{
  padding-top: 12px;
  border-top: 1px solid rgba(244,239,232,.16);
  color: rgba(244,239,232,.70);
  font-size: 13px;
}
.footer-meta-strong{
  font-weight: 650;
  color: rgba(244,239,232,.78);
}

/* späť hore tlačidlo */
.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(216,210,200,.90);
  background: rgba(255,255,255,.92);
  color: var(--deep-navy);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .14s ease, transform .14s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover{
  background: var(--deep-navy);
  border-color: rgba(244,239,232,.92);
  color: var(--sand);
}

/* SPLIT WRAPPERS */
.split{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.split--rev{
  grid-template-columns: 0.9fr 1.1fr;
}
.split--rev .split-text{ order: 2; }
.split--rev .split-visual{ order: 1; }

.split-text{ min-width: 0; }
.split-visual{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.visual{
  color: var(--deep-navy);
  --terracotta: #C46A3B;
}
.visual svg{
  width: min(360px, 100%);
  height: auto;
  max-height: 320px;
  display: block;
}
.visual--pin svg{
  width: min(162px, 100%);
  max-height: 123px;
}

@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .icon-cards{ grid-template-columns: repeat(2, 1fr); }
  .footer-contact{ grid-template-columns: 1fr; }
  .split, .split--rev{ grid-template-columns: 1fr; }
  .split--rev .split-text, .split--rev .split-visual{ order: unset; }
  .split-visual{ justify-content: flex-start; }
  .cta .cta-inner{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px){
  .nav{ display:none; }
  :root{ --section-pad: clamp(60px, 7.2vw, 90px); }
  .cards{ grid-template-columns: 1fr; }
  .icon-cards{ grid-template-columns: 1fr; }
  .brand-logo{ width: 128px; }
  .back-to-top{ right: 14px; bottom: 14px; }
}

.cta{
  padding-block: calc(var(--section-pad) * 0.6);
}

/* =========================================================
   EFFECT 1: gentle reveal on scroll
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   EFFECT 2: aktívna sekcia v navigácii
   ========================================================= */
.nav a.is-active{
  color: var(--deep-navy);
  background: rgba(36,52,71,.06);
}
.site-header.is-scrolled .nav a.is-active{
  color: var(--sand);
  background: rgba(244,239,232,.10);
}

/* =========================================================
   EFFECT 3: header shrink (transform-only)
   ========================================================= */
.site-header .header-inner{
  transform-origin: center;
  transition: transform .18s ease;
  will-change: transform;
}
.site-header .brand-logo{
  transform-origin: left center;
  transition: transform .18s ease, color .18s ease;
  will-change: transform;
}
.site-header.is-scrolled .header-inner{
  transform: scale(0.94);
}
.site-header.is-scrolled .brand-logo{
  transform: scale(0.92);
}
@media (prefers-reduced-motion: reduce){
  .site-header .header-inner,
  .site-header .brand-logo{
    transition: none;
  }
}

/* =========================================================
   EFFECT 4: scroll progress bar (farba podľa sekcie)
   ========================================================= */
.scroll-progress{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 40;
  background: rgba(36,52,71,.06);
  opacity: 0;
  transition: opacity .12s ease;
  pointer-events: none;
}
.scroll-progress.is-visible{
  opacity: 1;
}
.scroll-progress__bar{
  --progress-color: rgba(36,52,71,.65);
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--progress-color);
  transition: transform .08s linear, background-color .22s ease;
}
@media (prefers-reduced-motion: reduce){
  .scroll-progress__bar{ transition: none; }
}

/* =========================================================
   EFFECT 5: tiché micro-hover
   ========================================================= */
.card,
.icon-card,
.step,
.faq-item,
.cta .cta-inner{
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  will-change: transform;
}

.card:hover,
.icon-card:hover,
.step:hover,
.faq-item:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(17,18,20,.06),
    0 2px 8px rgba(17,18,20,.04);
  border-color: rgba(36,52,71,.18);
}

.cta .cta-inner:hover{
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(17,18,20,.05),
    0 2px 10px rgba(17,18,20,.03);
  border-color: rgba(36,52,71,.18);
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 10px 18px rgba(17,18,20,.08),
    0 2px 6px rgba(17,18,20,.04);
}
.btn:active{
  transform: translateY(0px);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce){
  .card,
  .icon-card,
  .step,
  .faq-item,
  .cta .cta-inner,
  .btn,
  .back-to-top{
    transition: none;
  }
  .card:hover,
  .icon-card:hover,
  .step:hover,
  .faq-item:hover,
  .cta .cta-inner:hover,
  .btn:hover{
    transform: none;
    box-shadow: none;
  }
}

/* =========================================================
   EFFECT 6: FAQ open micro-animácia
   ========================================================= */
.faq-item[open] .faq-body{
  transform-origin: top;
  animation: faqIn .18s ease;
}

@keyframes faqIn{
  from{ opacity: 0; transform: translateY(-4px); }
  to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .faq-item[open] .faq-body{ animation: none; }
}
