/* fyzioKMI – základný štýl */
:root {
  --blue: #0a7c96;          /* farba z loga */
  --blue-dark: #075f73;
  --blue-soft: #e8f3f6;
  --blue-line: #d6e8ed;
  --tint: #f2f8fa;
  --ink: #1d2b31;
  --muted: #5f7178;
  --white: #ffffff;
  --maxw: 1080px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 300; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; font-weight: 500; margin-bottom: .25em; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.container { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0);
  transition: background .4s, box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -24px rgba(10,124,150,.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; max-width: none; padding: 0 clamp(20px, 4vw, 56px); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 54px; height: 54px; border-radius: 50%; clip-path: circle(48%); }
.brand-name { font-size: 1.6rem; letter-spacing: .02em; }
.brand-name strong { color: var(--blue); letter-spacing: .12em; }

.nav { display: flex; gap: 36px; align-items: center; margin-left: auto; }
.nav a { position: relative; color: var(--ink); font-size: 1.08rem; font-weight: 400; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { color: var(--blue) !important; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* Dekoratívne kruhy (parallax) */
.section, .hero { position: relative; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(10,124,150,.16), rgba(10,124,150,0) 68%);
  will-change: transform;
}
.orb-a { width: 620px; height: 620px; top: -200px; left: -220px; }
.orb-b { width: 480px; height: 480px; bottom: 20px; right: -180px; }
.orb-c { width: 560px; height: 560px; top: 10%; right: -240px; }
.orb-d { width: 520px; height: 520px; top: 18%; left: -260px; }

/* Hero */
.hero {
  margin-top: -84px;
  padding: 200px 0 170px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--white) 100%);
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; will-change: transform; }
.hero .eyebrow { font-size: clamp(.95rem, 1.6vw, 1.15rem); letter-spacing: .24em; font-weight: 400; margin-bottom: 1.4em; }
.hero h1 { font-size: clamp(2.8rem, 8.5vw, 6.2rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; margin-bottom: .45em; }
.hero h1 .dot { color: var(--blue); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }

/* Úvodná animácia hero */
.hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .25s; }
.hero-inner > :nth-child(3) { animation-delay: .4s; }
.hero-inner > :nth-child(4) { animation-delay: .55s; }
.hero-inner > :nth-child(5) { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--blue); font-weight: 500; margin-bottom: .8em; }

.btn { display: inline-block; padding: 13px 30px; font-weight: 400; letter-spacing: .02em; transition: background .3s, color .3s, transform .3s var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: rgba(10,124,150,.07); color: var(--blue-dark); }
.btn-ghost:hover { background: rgba(10,124,150,.14); }

/* Sekcie – plynulé prechody pozadia */
.section { padding: 100px 0; }
.section-tint {
  background: linear-gradient(180deg, var(--white) 0%, var(--tint) 18%, var(--tint) 82%, var(--white) 100%);
}
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }

/* Accordion */
.accordion details { border-bottom: 1px solid var(--blue-line); }
.accordion summary {
  list-style: none; cursor: pointer;
  padding: 22px 44px 22px 0; position: relative;
  font-size: 1.25rem; font-weight: 400;
  transition: color .25s, padding-left .35s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--blue); padding-left: 8px; }
.accordion summary::after, .more summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue);
  transform: rotate(45deg); transition: transform .3s var(--ease), margin-top .3s;
}
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.acc-body { padding: 0 0 28px; max-width: 760px; color: #33454c; }
details[open] .acc-body, .more[open] > p { animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.tags { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--blue-soft); color: var(--blue-dark); padding: 4px 14px; font-size: .92rem; font-weight: 400; }

blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 22px;
  position: relative;
  font-style: italic; color: var(--blue-dark);
}
blockquote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(10,124,150,0));
}
.pain-pair { display: grid; gap: 6px; margin: 0 0 1.2em; padding: 18px 22px; background: linear-gradient(90deg, var(--blue-soft), rgba(232,243,246,0)); }
.pain-pair p { margin: 0; }
.pain-pair span { font-weight: 500; }

/* Dva stĺpce (šport / neuro) – bez kariet */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.card h3 { font-size: 1.6rem; font-weight: 300; position: relative; padding-top: 22px; }
.card h3::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 2px; background: var(--blue); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 10px; height: 5px; border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: translateY(-60%) rotate(-45deg); }
.more summary { list-style: none; cursor: pointer; color: var(--blue); font-weight: 400; position: relative; display: inline-block; padding-right: 26px; margin-bottom: .8em; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { right: 4px; width: 7px; height: 7px; margin-top: -6px; }
.more[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.more p { color: #33454c; }

/* Skupinové */
.pills { list-style: none; padding: 0; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { background: var(--blue); color: var(--white); padding: 6px 20px; font-weight: 400; letter-spacing: .03em; }
.note { color: var(--muted); }

/* Program */
.lead-sm { font-size: 1.12rem; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 40px 0; display: grid; gap: 34px; }
.steps li { display: flex; gap: 28px; align-items: flex-start; }
.steps p { margin: 0; color: #33454c; }
.step-num { flex: none; min-width: 76px; font-size: 2.4rem; font-weight: 300; color: var(--blue); line-height: 1; }
.quotes { display: grid; gap: 4px; margin: 40px 0; }
.quotes blockquote { margin: .6em 0; }
.footnote { font-size: .9rem; color: var(--muted); }

/* KMI */
.bg-word {
  position: absolute; z-index: 0; top: 50%; left: 50%;
  font-size: clamp(10rem, 32vw, 26rem); font-weight: 300; line-height: 1; letter-spacing: .08em;
  color: transparent; -webkit-text-stroke: 1px rgba(10,124,150,.18);
  white-space: nowrap; pointer-events: none; user-select: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.motto { margin-top: 2em; font-size: 1.6rem; color: var(--blue); text-align: center; letter-spacing: .02em; }

/* Tím */
.team { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.person { text-align: center; }
.avatar {
  width: 200px; height: 250px; margin: 0 auto 20px;
  background: linear-gradient(160deg, var(--blue-soft), #d3e8ee);
  color: var(--blue);
  display: grid; place-items: center; font-size: 2.2rem; font-weight: 300; letter-spacing: .12em;
}
.person h3 { margin-bottom: .2em; }
.role { color: var(--muted); }

/* Cenník */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.price-card h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: 1.1em; }
.price-card dl { margin: 0; }
.price-card dl > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 9px 0; }
.price-card dt { font-weight: 300; display: flex; align-items: baseline; flex: 1; gap: 10px; }
.price-card dt::after { content: ""; flex: 1; min-width: 20px; border-bottom: 1px dotted #a9c6cf; transform: translateY(-4px); }
.price-card dd { margin: 0; font-weight: 500; white-space: nowrap; }
.price-card dd.sub { flex-basis: 100%; white-space: normal; font-weight: 300; color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: 2px; }

/* Kontakt */
.section-blue {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-soft) 35%, #b4d9e3 80%, #82bfce 100%);
}
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid rgba(10,124,150,.25); display: flex; justify-content: space-between; gap: 16px; }
.contact-list span { color: #4a6870; }
.contact-list a { color: var(--blue-dark); }

.lead p:last-child, .lead-sm p:last-child, .footnote p:last-child { margin-bottom: 0; }
.lead { margin-bottom: 1em; }
.lead-sm { margin-bottom: 1em; }
.avatar.photo { object-fit: cover; display: block; }

/* Footer */
.site-footer { padding: 30px 0 30px; font-size: .88rem; color: rgba(255,255,255,.85); background: linear-gradient(180deg, #82bfce 0%, var(--blue) 100%); }
.footer-login { color: inherit; opacity: .75; }
.footer-login:hover { opacity: 1; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Scroll reveal */
.reveal { opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.up { transform: translateY(36px); }
.reveal.left { transform: translateX(-44px); }
.reveal.right { transform: translateX(44px); }
.reveal.zoom { transform: scale(.94); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .hero-inner > * { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responzívne */
@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 44px; }
  .two-col, .contact { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 1100px) {
  .nav { gap: 26px; }
  .nav a { font-size: 1rem; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-header.menu-open { background: var(--white); }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--white); box-shadow: 0 20px 30px -24px rgba(10,124,150,.5);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav.open { max-height: 480px; }
  .nav a { padding: 14px 20px; }
  .nav a::after { display: none; }
}
@media (max-width: 820px) {
  .header-inner { height: 72px; }
  .nav { top: 72px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 1.35rem; }
  .hero { margin-top: -72px; padding: 150px 0 120px; }
  .section { padding: 72px 0; }
  .steps li { flex-direction: column; gap: 6px; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .orb { opacity: .7; }
}
