/* ==========================================================================
   RSplan s.r.o. — firemný web
   Dizajnový jazyk: technický výkres / jednopólová schéma (blueprint)
   ========================================================================== */

/* ==========================================================================
   Písma — hosťované u nás, nie z Google Fonts
   (Space Grotesk aj IBM Plex sú pod licenciou SIL Open Font License 1.1)
   ========================================================================== */
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root{
  /* --- Farby — odvodené z loga RSplan ---
     Logo: #0A263E navy · #1E3445 slate · #269B96 teal · #2CDFCC tyrkys.
     Pravidlo: teal = štruktúra a značka, tyrkys = akcia a „prúd".
     Všetky dvojice text/pozadie spĺňajú WCAG AA (4.5:1), UI prvky 3:1. */
  --paper:        #F4F7FA;
  --paper-2:      #E8EEF4;
  --ink:          #0E2135;
  --ink-soft:     #46606F;
  --ink-faint:    #5C7183;
  --blueprint:    #0A263E;   /* logo — navy */
  --blueprint-2:  #1E3445;   /* logo — slate */
  --blueprint-3:  #2C4A5F;
  --on-blueprint: #E6F0F6;
  --on-blueprint-soft: #A6BFCE;
  --brand:        #269B96;   /* logo — teal */
  --brand-strong: #176360;   /* teal pre text na svetlom pozadí */
  --brand-tint:   #D7EFEC;
  --current:      #2CDFCC;   /* logo — tyrkys: CTA, prúd, zvýraznenie */
  --current-deep: #5AE8D8;   /* hover CTA */
  --danger:       #B3453B;
  --danger-tint:  #FBEAE8;
  --line:         rgba(10, 38, 62, 0.14);
  --line-strong:  rgba(10, 38, 62, 0.26);
  --line-dark:    rgba(230, 240, 246, 0.14);
  --line-dark-strong: rgba(230, 240, 246, 0.28);
  --white:        #FFFFFF;
  --shadow-card:  0 1px 2px rgba(10,38,62,0.06), 0 12px 28px -14px rgba(10,38,62,0.22);

  /* --- Typografia --- */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* --- Rozostupy --- */
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 9vw, 116px);
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   Reset & základ
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color: inherit; }
button{ font-family: inherit; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.08; letter-spacing:-0.01em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
section{ position:relative; }

.container{
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Blueprint grid background */
.grid-bg{
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
}
.grid-bg--dark{
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* Eyebrow / mono label */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 1px;
  background: var(--brand-strong);
  display:inline-block;
}
.eyebrow--dark{ color: var(--on-blueprint-soft); }
.eyebrow--dark::before{ background: var(--current); }

.section-head{
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2{
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-top: 14px;
}
.section-head p{
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 52ch;
}
.section-head--center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head--center .eyebrow{ justify-content:center; }
.section-head--center .eyebrow::before{ display:none; }
.section-head--center p{ margin-left:auto; margin-right:auto; }

/* Corner ticks — recurring technical-drawing motif */
.tick-card{ position:relative; }
.corner{
  position:absolute;
  width:10px; height:10px;
  pointer-events:none;
}
.corner--tl{ top:-1px; left:-1px; border-top:2px solid var(--brand); border-left:2px solid var(--brand); }
.corner--br{ bottom:-1px; right:-1px; border-bottom:2px solid var(--brand); border-right:2px solid var(--brand); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-body);
  font-weight:600;
  font-size:0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border:1.5px solid transparent;
  cursor:pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  text-decoration:none;
  white-space:nowrap;
}
.btn:active{ transform: scale(0.97); }
/* Dva varianty hlavného tlačidla podľa podkladu:
   .btn-primary — tyrkysová výplň, len na TMAVOM pozadí (na svetlom má 1.4:1)
   .btn-solid    — tmavý teal, na SVETLOM pozadí (formulár, mobilné menu) */
.btn-primary{ background: var(--current); color: var(--blueprint); }
.btn-primary:hover{ background: var(--current-deep); transform: translateY(-2px); }
.btn-solid{ background: var(--brand-strong); color: var(--white); border-color: var(--brand-strong); }
.btn-solid:hover{ background: var(--blueprint); border-color: var(--blueprint); transform: translateY(-2px); }
.btn-outline{ background:transparent; border-color: var(--line-dark-strong); color: var(--on-blueprint); }
.btn-outline:hover{ border-color: var(--brand); color: var(--white); transform: translateY(-2px); }
.btn-outline--light{ border-color: var(--line-strong); color: var(--ink); }
.btn-outline--light:hover{ border-color: var(--brand-strong); background: var(--brand-tint); }
.btn-block{ width:100%; justify-content:center; }
.btn[disabled]{ opacity:.6; cursor:not-allowed; transform:none; }

/* ==========================================================================
   Scroll progress (subtle signature echo)
   ========================================================================== */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--brand), var(--current));
  z-index:1000;
  transition: width .08s linear;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:900;
  background: rgba(244,247,250,0.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  transition: background .3s var(--ease);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:78px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand img{ height:34px; width:auto; }
.brand-name{ font-family: var(--font-display); font-weight:700; font-size:1.05rem; color: var(--ink); letter-spacing:-0.01em; }

.nav-desktop{ display:flex; align-items:center; gap:2px; }
.nav-desktop a{
  font-size:0.94rem; font-weight:500; text-decoration:none; color: var(--ink-soft);
  padding:10px 16px; border-radius:999px; transition: color .2s, background-color .2s;
}
.nav-desktop a:hover{ color: var(--ink); background: var(--paper-2); }

.header-cta{ display:flex; align-items:center; gap:14px; }
.header-phone{
  display:flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:0.88rem; color: var(--ink-soft); text-decoration:none;
}
.header-phone svg{ flex-shrink:0; }
.header-phone:hover{ color: var(--brand-strong); }

.nav-toggle{
  display:none; background:none; border:none; cursor:pointer; padding:6px;
  flex-direction:column; gap:5px; width:34px;
}
.nav-toggle span{ height:2px; width:100%; background: var(--ink); border-radius:2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-mobile{
  display:none;
  position:fixed; inset:78px 0 0 0; background: var(--paper);
  z-index:890; padding: 24px var(--gutter);
  flex-direction:column; gap:2px;
  transform: translateY(-8px); opacity:0; pointer-events:none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-mobile.is-open{ transform: translateY(0); opacity:1; pointer-events:auto; }
.nav-mobile a{
  font-size:1.15rem; font-weight:600; padding:16px 4px; border-bottom:1px solid var(--line);
  text-decoration:none; color: var(--ink);
}
.nav-mobile .btn{ margin-top:20px; }
/* tlačidlá v menu si nesmú prevziať farbu textu z .nav-mobile a */
.nav-mobile a.btn-solid{ color: var(--white); border-bottom-color: transparent; }
.nav-mobile a.btn-primary{ color: var(--blueprint); border-bottom-color: transparent; }

@media (max-width: 900px){
  .nav-desktop, .header-phone{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-mobile{ display:flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  background: var(--blueprint);
  color: var(--on-blueprint);
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(56px, 9vw, 96px);
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(680px 420px at 82% 18%, rgba(38,155,150,0.22), transparent 70%);
  pointer-events:none;
}
.hero .container{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 60px);
  align-items:start;          /* schéma začína na úrovni nadpisu, nie v strede */
}
.hero-copy h1{
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  color: var(--white);
  margin-top:18px;
}
.hero-copy h1 em{
  font-style:normal;
  color: var(--current);
}
.hero-copy p.lede{
  margin-top:20px;
  font-size: 1.12rem;
  color: var(--on-blueprint-soft);
  max-width: 46ch;
}
.hero-cta{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }

/* pás so štatistikami ide pod obe kolóny, aby sa všetkých päť vošlo do radu */
.hero-stats{
  grid-column: 1 / -1;
  display:grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: space-between;
  gap: 22px clamp(18px, 3vw, 36px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line-dark);
}
/* na užších obrazovkách stĺpce zdieľajú šírku (minmax(0,1fr)), inak by ich
   max-content rozťahoval mriežku za okraj displeja */
@media (max-width: 1024px){
  .hero-stats{ grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
}
@media (max-width: 620px){
  .hero-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero-stat{ }
.hero-stat .num{ font-family: var(--font-mono); font-size:1.3rem; color: var(--current); letter-spacing:0.02em; }
.hero-stat .label{ font-size:0.76rem; color: var(--on-blueprint-soft); text-transform:uppercase; letter-spacing:0.08em; margin-top:4px; }

.hero-diagram{ position:relative; margin-top: clamp(26px, 3.4vw, 44px); }
@media (max-width: 760px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-diagram{ margin-top: 12px; max-width: 460px; }
}
.hero-diagram svg{ width:100%; height:auto; overflow:visible; }

/* diagram line drawing animation */
.hd-line{
  fill:none; stroke:var(--brand); stroke-width:2; stroke-linecap:round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: draw 2.1s var(--ease) forwards;
}
.hd-line.delay2{ animation-delay:.35s; }
.hd-line.delay3{ animation-delay:.55s; }
@keyframes draw{ to{ stroke-dashoffset:0; } }

.hd-node{ fill: var(--blueprint); stroke: var(--brand); stroke-width:2; opacity:0; animation: pop .5s var(--ease) forwards; transform-box: fill-box; transform-origin: center; }
.hd-node.n1{ animation-delay: .5s; }
.hd-node.n2{ animation-delay: .9s; }
.hd-node.n3{ animation-delay: 1.3s; }
.hd-node.n4{ animation-delay: 1.7s; }
@keyframes pop{ from{ opacity:0; transform:scale(.4); transform-origin:center; } to{ opacity:1; transform:scale(1); } }

/* transform-box: fill-box => scale sa robí okolo stredu samotnej ikony,
   nie okolo stredu celého viewBoxu (inak ikona pri animácii preletí schémou) */
.hd-icon{ opacity:0; animation: pop .5s var(--ease) forwards; stroke: var(--on-blueprint); stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; transform-box: fill-box; transform-origin: center; }
.hd-icon.n2{ animation-delay:1s; }
.hd-icon.n3{ animation-delay:1.4s; }
.hd-icon.n4{ animation-delay:1.8s; }

.hd-current{ fill: var(--current); }

@media (prefers-reduced-motion: reduce){
  .hd-line{ stroke-dashoffset:0; animation:none; }
  .hd-node, .hd-icon{ opacity:1; animation:none; }
  .hd-current{ display:none; }
}

/* compliance strip */
.compliance{
  background: var(--blueprint-2);
  border-top: 1px solid var(--line-dark);
  padding: 18px 0;
}
.compliance .container{
  display:flex; align-items:center; justify-content:center; gap:14px;
  flex-wrap:wrap; text-align:center;
}
.compliance p{
  font-family: var(--font-mono); font-size:0.82rem; letter-spacing:0.05em;
  color: var(--on-blueprint-soft);
}
.compliance strong{ color: var(--brand); font-weight:600; }
.compliance p.compliance-scope{
  flex-basis:100%;
  margin-top:4px;
  font-size:0.76rem;
  color: rgba(230,240,246,0.55);
}
.compliance p.compliance-scope strong{ color: var(--on-blueprint-soft); }

/* ==========================================================================
   Services
   ========================================================================== */
.services{ padding: var(--section-pad) 0; background: var(--paper); }
.services-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap:22px;
}
@media (max-width: 780px){ .services-grid{ grid-template-columns: 1fr; } }

.service-card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position:relative;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover{ transform: translateY(-4px); border-color: var(--brand); }
.service-card .card-num{
  font-family: var(--font-mono); font-size:0.72rem; letter-spacing:0.08em;
  color: var(--ink-faint); text-transform:uppercase;
}
.service-card .icon-wrap{
  width:52px; height:52px; border-radius:12px;
  background: var(--brand-tint); color: var(--brand-strong);
  display:flex; align-items:center; justify-content:center;
  margin: 16px 0 18px;
}
.service-card h3{ font-size:1.28rem; }
.service-card .kicker{ font-size:0.85rem; color: var(--brand-strong); font-weight:600; margin-top:6px; }
.service-card p.desc{ margin-top:14px; color: var(--ink-soft); font-size:0.98rem; }
.service-card .bullets{ margin-top:18px; display:flex; flex-direction:column; gap:9px; }
.service-card .bullets li{
  font-size:0.9rem; color: var(--ink); display:flex; gap:9px; align-items:flex-start;
}
.service-card .bullets li::before{
  content:""; width:6px; height:6px; margin-top:7px; flex-shrink:0;
  background: var(--brand); border-radius:1px; transform:rotate(45deg);
}
.service-card .expand-toggle{
  margin-top:16px; background:none; border:none; padding:6px 0; cursor:pointer;
  font-weight:600; font-size:0.9rem; color: var(--brand-strong);
  display:flex; align-items:center; gap:6px;
}
.service-card .expand-toggle svg{ transition: transform .3s var(--ease); }
.service-card.is-open .expand-toggle svg{ transform: rotate(180deg); }
.service-card .more{
  max-height:0; overflow:hidden; transition: max-height .4s var(--ease);
}
.service-card.is-open .more{ max-height:200px; }
.service-card .more-inner{ padding-top:16px; color: var(--ink-soft); font-size:0.92rem; border-top:1px solid var(--line); margin-top:16px; }
.service-card.is-new .card-num{ color: var(--brand-strong); }
.badge-new{
  position:absolute; top:24px; right:24px;
  font-family: var(--font-mono); font-size:0.68rem; letter-spacing:0.06em;
  background: var(--current); color: var(--blueprint); padding:3px 9px; border-radius:5px;
  text-transform:uppercase; font-weight:700;
}

/* ==========================================================================
   Stupne projektovej dokumentácie
   ========================================================================== */
.stages{ padding: var(--section-pad) 0; background: var(--blueprint); color: var(--on-blueprint); }
.stages .section-head{ max-width: 720px; }
.stages .section-head h2{ color: var(--white); }
.stages .section-head p{ color: var(--on-blueprint-soft); }

.stage-legend{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 24px;
  font-family: var(--font-mono); font-size:0.76rem; letter-spacing:0.03em;
  color: var(--on-blueprint-soft);
  padding-bottom:22px; margin-bottom:26px;
  border-bottom:1px solid var(--line-dark);
}
.stage-legend .lbl{
  color: var(--current); text-transform:uppercase; letter-spacing:0.12em; font-size:0.7rem;
}
.stage-legend em{ font-style:normal; color: var(--brand); padding:0 3px; }

.stage-tabs{ display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; margin-bottom:20px; }
.stage-tab{
  background:none; cursor:pointer; text-align:left;
  border:1px solid var(--line-dark); border-radius: var(--radius-sm);
  padding:14px 16px; color: var(--on-blueprint-soft);
  display:flex; flex-direction:column; gap:5px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.stage-tab:hover{ border-color: var(--brand); }
.stage-tab .t-num{ font-family: var(--font-mono); font-size:0.72rem; letter-spacing:0.08em; }
.stage-tab .t-name{
  font-family: var(--font-display); font-weight:600; font-size:1rem;
  line-height:1.2; color: var(--white);
}
.stage-tab .t-old{ font-family: var(--font-mono); font-size:0.68rem; opacity:.65; }
.stage-tab.is-active{ background: var(--blueprint-3); border-color: var(--brand); }
.stage-tab.is-active .t-num{ color: var(--current); }
.stage-tab:focus-visible{ outline:2px solid var(--current); outline-offset:2px; }

.stage-panel{
  border:1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--blueprint-2);
  padding: clamp(22px, 3vw, 34px);
  animation: stageIn .35s var(--ease) both;
}
.stage-panel[hidden]{ display:none; }
.stage-panel .corner--tl, .stage-panel .corner--br{ border-color: var(--current); }
@keyframes stageIn{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform:none; } }

.stage-ref{
  font-family: var(--font-mono); font-size:0.72rem; letter-spacing:0.08em;
  color: var(--on-blueprint-soft); text-transform:uppercase;
}
.stage-panel h3{ margin-top:12px; font-size:1.45rem; color: var(--white); }
.stage-purpose{ margin-top:12px; color: var(--on-blueprint-soft); font-size:1rem; max-width:72ch; }

.stage-cols{
  margin-top:26px; padding-top:24px; border-top:1px solid var(--line-dark);
}
.stage-lbl{
  font-family: var(--font-mono); font-size:0.72rem; letter-spacing:0.1em;
  text-transform:uppercase; color: var(--current);
}
.stage-list{ margin-top:14px; display:flex; flex-direction:column; gap:10px; }
.stage-list li{
  font-size:0.94rem; color: var(--on-blueprint);
  display:flex; gap:10px; align-items:flex-start;
}
.stage-list li::before{
  content:""; width:6px; height:6px; margin-top:8px; flex-shrink:0;
  background: var(--brand); border-radius:1px; transform:rotate(45deg);
}

.stage-contents{
  margin-top:16px;
  border:1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--blueprint-2);
  padding: clamp(22px, 3vw, 34px);
}
.stage-contents .corner--tl, .stage-contents .corner--br{ border-color: var(--brand); }
.stage-contents h3{ margin-top:12px; font-size:1.25rem; color: var(--white); }
.stage-list--cols{ margin-top:18px; display:grid; grid-template-columns: 1fr 1fr; gap:12px 26px; }
.stage-list--cols strong{ color: var(--white); font-weight:600; }
.stage-check{
  margin-top:18px; padding-top:16px; border-top:1px solid var(--line-dark);
  color: var(--on-blueprint-soft); font-size:0.92rem;
}

.stage-extras{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-top:16px; }
.stage-aside{
  border:1px dashed var(--line-dark-strong);
  border-radius: var(--radius); padding: clamp(20px, 2.6vw, 28px);
}
.stage-aside em{ font-style:normal; color: var(--on-blueprint); }
.stage-aside h3{ margin-top:10px; font-size:1.15rem; color: var(--white); }
.stage-aside p{ margin-top:10px; color: var(--on-blueprint-soft); font-size:0.94rem; max-width:82ch; }

@media (max-width: 900px){
  .stage-tabs{ grid-template-columns: repeat(2, 1fr); }
  .stage-extras{ grid-template-columns: 1fr; }
  .stage-list--cols{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .stage-tabs{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Needs / podklady
   ========================================================================== */
.needs{ padding: var(--section-pad) 0; background: var(--paper-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.needs-grid{
  display:grid; grid-template-columns: repeat(5, 1fr); gap:0;
}
.needs-item{
  padding: 8px clamp(6px,2vw,20px);
  text-align:center;
  border-right: 1px dashed var(--line-strong);
  position:relative;
}
.needs-item:last-child{ border-right:none; }
.needs-item .num{ font-family:var(--font-mono); font-size:0.72rem; color: var(--ink-faint); }
.needs-item .icon-circle{
  width:56px; height:56px; border-radius:50%; background: var(--white); border:1.5px solid var(--brand);
  color: var(--brand-strong);
  display:flex; align-items:center; justify-content:center; margin: 12px auto 14px;
}
.needs-item h3{ font-size:0.98rem; font-family: var(--font-body); font-weight:600; }
.needs-item p{ font-size:0.84rem; color: var(--ink-soft); margin-top:6px; }

@media (max-width: 900px){
  .needs-grid{ grid-template-columns: repeat(2, 1fr); row-gap:32px; }
  .needs-item{ border-right:none; border-bottom:1px dashed var(--line-strong); padding-bottom:24px; }
  .needs-item:nth-child(2n){ border-right:none; }
  .needs-item:last-child{ border-bottom:none; }
}
@media (max-width: 480px){
  .needs-grid{ grid-template-columns: 1fr; }
  .needs-item:nth-child(2n){ border-bottom:1px dashed var(--line-strong); }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process{ padding: var(--section-pad) 0; background: var(--paper); }
.process-steps{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:22px; position:relative;
  margin-top: 10px;
}
/* Spojnica sa kreslí od každého kroku k nasledujúcemu, nie cez celú mriežku —
   inak nesedí so stredmi krúžkov a za posledným prečnieva do prázdna.
   56px = šírka krúžku, 22px = medzera v mriežke, stred krúžku je na 28px. */
.process-step:not(:last-child)::after{
  content:"";
  position:absolute; top:27px; left:56px;
  width: calc(100% - 6px);
  height:2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 14px);
}
@media (max-width: 1024px){
  .process-steps{ grid-template-columns: repeat(2, 1fr); row-gap:34px; }
  .process-step::after{ display:none; }
}
@media (max-width: 560px){ .process-steps{ grid-template-columns:1fr; } }

.process-step{ position:relative; padding-top: 70px; }
.process-step .step-num{
  position:absolute; top:0; left:0;
  width:56px; height:56px; border-radius:50%;
  background: var(--blueprint); color: var(--current);
  font-family: var(--font-mono); font-size:1.2rem;
  display:flex; align-items:center; justify-content:center;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--brand);
  z-index:2;
}
.process-step h3{ font-size:1.15rem; }
.process-step p{ margin-top:10px; color: var(--ink-soft); font-size:0.95rem; }

.process-note{
  margin-top: clamp(30px, 4vw, 44px);
  padding: 22px 26px;
  background: var(--blueprint); border-radius: var(--radius);
  color: var(--on-blueprint-soft); font-size:0.95rem;
}
.process-note .pn-lbl{
  font-family: var(--font-mono); font-size:0.72rem; letter-spacing:0.1em;
  text-transform:uppercase; color: var(--current);
  display:block; margin-bottom:8px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{ padding: var(--section-pad) 0; background: var(--paper-2); border-top:1px solid var(--line); }
.contact-grid{
  display:grid; grid-template-columns: 1.2fr 0.8fr; gap:40px; align-items:flex-start;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-form{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px,4vw,40px); box-shadow: var(--shadow-card); position:relative;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:18px; }
.field label{ font-size:0.85rem; font-weight:600; display:block; margin-bottom:7px; }
.field .req{ color: var(--danger); }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border-radius:9px; border:1.5px solid var(--line-strong);
  font-family: var(--font-body); font-size:0.96rem; background: var(--paper);
  color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--brand);
}
.field textarea{ resize:vertical; min-height:110px; }
.field-error{ color: var(--danger); font-size:0.8rem; margin-top:6px; display:none; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: var(--danger); }
.field.has-error .field-error{ display:block; }

/* Pasca na spam roboty. Nesmie byť display:none — časť robotov skryté polia
   preskakuje. Odsunieme ju mimo obrazovku a von z poradia tabulátora. */
.pole-navyse{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.consent{ display:flex; gap:10px; align-items:flex-start; margin-bottom:22px; }
.consent input{ margin-top:1px; width:24px; height:24px; accent-color: var(--brand-strong); flex-shrink:0; cursor:pointer; }
.consent label{ font-size:0.85rem; color: var(--ink-soft); }

.form-status{
  margin-top:16px; padding:14px 16px; border-radius:9px; font-size:0.9rem; display:none;
}
.form-status.is-visible{ display:block; }
.form-status.is-success{ background: var(--brand-tint); color: var(--brand-strong); }
.form-status.is-error{ background: var(--danger-tint); color: var(--danger); }

.contact-info{ display:flex; flex-direction:column; gap:20px; }
.info-card{
  background: var(--blueprint); color: var(--on-blueprint);
  border-radius: var(--radius); padding:28px; position:relative;
}
.info-row{ display:flex; gap:14px; align-items:flex-start; margin-bottom:18px; }
.info-row:last-child{ margin-bottom:0; }
.info-row .ic{ color: var(--brand-strong); flex-shrink:0; margin-top:2px; }
.info-row a{ color: var(--white); text-decoration:none; font-weight:600; display:inline-block; padding:2px 0; }
.info-row a:hover{ color: var(--brand-strong); }
.info-row .lbl{ font-size:0.78rem; color: var(--on-blueprint-soft); text-transform:uppercase; letter-spacing:0.06em; font-family:var(--font-mono); margin-bottom:3px; }
.info-legal{
  background: var(--blueprint); color: var(--on-blueprint);
  border-radius: var(--radius);
  padding:22px; font-size:0.85rem;
}
.info-legal .lbl{ font-family:var(--font-mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--on-blueprint-soft); display:block; margin-bottom:4px;}
.info-legal div + div{ margin-top:12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--blueprint); color: var(--on-blueprint-soft); padding: 48px 0 28px; }
.footer-top{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:24px;
  padding-bottom:32px; border-bottom:1px solid var(--line-dark);
}
.footer-top .brand-name{ color:var(--white); }
.footer-nav{ display:flex; gap:24px; flex-wrap:wrap; }
.footer-nav a{ color: var(--on-blueprint-soft); text-decoration:none; font-size:0.92rem; display:inline-block; padding:4px 0; }
.footer-nav a:hover{ color: var(--white); }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  padding-top:24px; font-size:0.8rem; font-family: var(--font-mono);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ==========================================================================
   Plávajúce tlačidlo „späť hore"
   Navy výplň drží na svetlých sekciách, teal okraj a tyrkysová šípka
   ho udržia viditeľné aj na tmavých (navy na navy by splynulo).
   ========================================================================== */
.to-top{
  position:fixed;
  right: clamp(32px, 5vw, 56px);
  bottom: clamp(32px, 5vw, 56px);
  z-index: 880;                    /* pod mobilným menu (890) */
  width:69px; height:69px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--blueprint);
  color: var(--current);
  border:1px solid var(--brand);
  box-shadow: var(--shadow-card);
  cursor:pointer;
  opacity:0; visibility:hidden; transform: translateY(10px);
  /* visibility sa prepne až PO odznení fadeu (skryté tlačidlo tak nie je
     v poradí tabulátora), pri zobrazení naopak okamžite, nech je hneď klikateľné */
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              background-color .25s var(--ease), visibility 0s linear .3s;
}
.to-top.is-visible{
  opacity:1; visibility:visible; transform:none;
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              background-color .25s var(--ease), visibility 0s linear 0s;
}
.to-top:hover{ background: var(--brand-strong); }
.to-top:active{ transform: scale(0.94); }

/* ==========================================================================
   Podstránka so zásadami ochrany údajov
   ========================================================================== */
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:1200;
  background: var(--blueprint); color: var(--on-blueprint);
  padding:12px 18px; border-radius:0 0 var(--radius-sm) 0;
  font-weight:600; text-decoration:none;
}
.skip-link:focus{ left:0; }

.legal{ padding: clamp(52px, 7vw, 96px) 0 clamp(48px, 6vw, 84px); background: var(--paper); }
.legal .container{ max-width: 820px; }
.legal h1{ font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top:14px; }
.legal-meta{
  margin-top:16px; font-family: var(--font-mono); font-size:0.76rem;
  letter-spacing:0.08em; text-transform:uppercase; color: var(--ink-faint);
}
.legal h2{ font-size:1.28rem; margin-top: clamp(34px, 4vw, 48px); }
.legal p{ margin-top:14px; color: var(--ink-soft); }
.legal ul{ margin-top:14px; display:flex; flex-direction:column; gap:9px; }
.legal li{ color: var(--ink-soft); display:flex; gap:11px; align-items:flex-start; }
.legal li::before{
  content:""; width:6px; height:6px; margin-top:9px; flex-shrink:0;
  background: var(--brand); border-radius:1px; transform:rotate(45deg);
}
.legal strong{ color: var(--ink); }
.legal a{ color: var(--brand-strong); text-underline-offset:3px; }
.legal-box{
  margin-top:22px; background: var(--blueprint); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}
.legal-box p{ margin-top:0; color: var(--on-blueprint-soft); }
.legal-box strong{ color: var(--white); }
.legal-back{ margin-top: clamp(40px, 5vw, 60px); padding-top:24px; border-top:1px solid var(--line); }
.legal-back a{ display:inline-block; padding:4px 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--brand); outline-offset: 2px;
}
