/* ==========================================================================
   Data Pool – štýly
   Farby vychádzajú z loga: navy #0B2545, biela, sky #8DC6E8
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-deep: #071A33;
  --navy-soft: #13315C;
  --sky: #8DC6E8;
  --sky-ink: #2B6A94;      /* tmavší odtieň sky pre text na svetlom pozadí */
  --ink: #0B2545;
  --muted: #4A5B72;
  --bg: #FFFFFF;
  --bg-alt: #F3F6FA;
  --line: #DCE3EC;
  --white: #FFFFFF;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --header-h: 72px;
}

/* ---------- základ ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 .9rem;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky-ink);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 38em;
}

/* ---------- tlačidlá ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.4em;
  border: 2px solid var(--sky);
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--navy);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--white); border-color: var(--white); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--white); }

.btn-small { padding: .55em 1.1em; font-size: .95rem; }

.btn-light { background: var(--white); border-color: var(--white); }
.btn-light:hover { background: var(--sky); border-color: var(--sky); }

/* ---------- hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(7, 26, 51, .35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.brand img { width: auto; height: 40px; }
.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--sky); font-weight: 400; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  display: block;
  padding: .5em .9em;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
  border-radius: var(--radius);
  transition: color .15s, background-color .15s;
}
.site-nav a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.site-nav .btn { margin-left: 8px; }
.site-nav a.lang-switch {
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--sky);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); background: var(--white); }
.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 76px);
}

.hero-arcs {
  position: absolute;
  right: -12%;
  top: -18%;
  height: 140%;
  width: auto;
  color: var(--sky);
  opacity: .07;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero .eyebrow { color: var(--sky); }
.hero .lead { color: rgba(255, 255, 255, .78); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.hero-figure { margin: 0; }
.hero-figure svg { width: 100%; height: auto; overflow: visible; }

.hero-figure .flow path {
  stroke: var(--sky);
  stroke-opacity: .55;
  stroke-dasharray: 4 6;
  animation: flow 1.6s linear infinite;
}
.hero-figure .node rect {
  fill: rgba(255, 255, 255, .04);
  stroke: rgba(255, 255, 255, .35);
  stroke-width: 1.5;
}
.hero-figure .node-out rect { stroke: var(--sky); fill: rgba(141, 198, 232, .08); }
.hero-figure .node-label text {
  fill: var(--white);
  font-family: var(--mono);
  font-size: 13px;
}
.hero-figure .layer-label text {
  fill: var(--sky);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
}
.hero-figure .layer-label .gold { fill: #E8C872; }
.hero-figure .layer-label .silver { fill: #CBD5E1; }
.hero-figure .layer-label .bronze { fill: #D39B6A; }

@keyframes flow {
  to { stroke-dashoffset: -20; }
}

/* ---------- sekcie ---------- */

.section { padding-block: clamp(48px, 6.5vw, 80px); }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

/* ---------- služby ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 28px 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 3px;
  background: var(--navy);
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 37, 69, .08); }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--muted); margin-bottom: 0; }

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-muted { background: transparent; border-style: dashed; }
.card-muted .card-icon { stroke: var(--sky-ink); }

/* ---------- prístup ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 25%; height: 2px;
  background: var(--navy);
}
/* tmavý úsek sa posúva podľa poradia fázy */
.steps li:nth-child(2)::before { left: 25%; }
.steps li:nth-child(3)::before { left: 50%; }
.steps li:nth-child(4)::before { left: 75%; }
.steps p { color: var(--muted); margin-bottom: 0; }

.step-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 600;
  color: var(--sky-ink);
}

/* ---------- o nás ---------- */

.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.about-copy p:not(.eyebrow) { color: var(--muted); }

.facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-left: 2px solid var(--line);
}
.fact {
  padding: 18px 0 18px 28px;
}
.fact + .fact { border-top: 1px solid var(--line); }
.fact dt {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.fact dd {
  margin: 6px 0 0;
  color: var(--muted);
}

/* ---------- technológie ---------- */

.tech {
  max-width: 820px;
  border-bottom: 1px solid var(--line);
}
.tech-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px 24px;
  align-items: center;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.tech-group h3 {
  margin: 0;
  font-size: .85rem;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: .4em .85em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
}
.tags .tag-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ---------- kontakt ---------- */

.contact {
  background: var(--navy);
  color: var(--white);
}
.contact .eyebrow { color: var(--sky); }
.contact .lead { color: rgba(255, 255, 255, .78); }

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.contact-card .btn { margin-top: 16px; }

.contact-line {
  display: grid;
  gap: 2px;
  padding: 12px 4px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.contact-label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
}
.contact-value {
  font-size: 1.2rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-line:hover .contact-value { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- pätička ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  padding-block: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 40px;
  align-items: center;
}
.brand-footer img { height: 32px; }
.brand-footer .brand-name { font-size: 1.1rem; }
.site-footer p { margin: 0; }
.site-footer a { color: rgba(255, 255, 255, .8); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--white); }
.copyright { text-align: right; }

/* ---------- právne stránky ---------- */

.legal h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.prose { max-width: 44rem; }
.prose h2 {
  margin-top: 2.2em;
  font-size: 1.3rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--sky-ink); text-underline-offset: 3px; }
.legal-updated {
  margin-top: 2.5em;
  font-family: var(--mono);
  font-size: .85rem;
}

/* ---------- responzivita ---------- */

@media (max-width: 960px) {
  .hero-inner,
  .about,
  .contact-inner { grid-template-columns: 1fr; }

  .hero-figure { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 16px 32px rgba(7, 26, 51, .4);
    display: none;
  }
  .nav-open .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav a:not(.btn) { padding: .85em 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .site-nav a:not(.btn):hover { background: transparent; }
  .site-nav .btn { margin: 16px 0 0; width: 100%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards,
  .steps,
  .tech-group { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-arcs { right: -40%; opacity: .05; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
