  :root{
    --orange:#E86A44;
    --orange-dark:#D45A36;
    --blue:#0093D0;
    --blue-dark:#0078AB;
    --ink:#2E3238;
    --muted:#65707B;
    --bg:#F4F7F8;
    --card:#FFFFFF;
    --line:rgba(46,50,56,0.10);
    --shadow-sm:0 1px 3px rgba(20,30,40,0.06), 0 6px 18px rgba(20,30,40,0.05);
    --shadow-md:0 2px 6px rgba(20,30,40,0.08), 0 14px 34px rgba(20,30,40,0.08);
    --radius:20px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  html,body{margin:0;padding:0;}
  body{
    font-family:'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
      radial-gradient(1200px 600px at 100% -10%, rgba(0,147,208,0.07), transparent 60%),
      radial-gradient(1000px 500px at -10% 110%, rgba(232,106,68,0.08), transparent 60%),
      var(--bg);
    color:var(--ink);
    min-height:100vh;
    -webkit-font-smoothing:antialiased;
  }

  /* ---------- site header (piaristi.sk look) ---------- */
  .site-topbar{
    background:#fff; border-bottom:1px solid var(--line); font-size:11.5px;
  }
  .site-topbar-inner{
    max-width:1080px; margin:0 auto; padding:8px 20px;
    display:flex; justify-content:space-between; align-items:center; gap:16px;
  }
  .site-topbar-links{display:flex; flex-wrap:wrap; gap:2px; color:var(--muted);}
  .site-topbar-links a{
    color:#9AA6AF; text-decoration:none; font-weight:700; letter-spacing:.01em; font-size:10px;
    text-transform:uppercase; padding:2px 8px; border-right:1px solid var(--line);
  }
  .site-topbar-links a:hover{color:var(--orange);}
  .site-topbar-links a:first-child{padding-left:0;}
  .site-topbar-links a:last-child{border-right:none;}
  .site-topbar-links a:hover{color:var(--blue);}
  .site-topbar-social{display:flex; gap:10px;}
  .site-topbar-social a{
    width:20px; height:20px; display:flex; align-items:center; justify-content:center;
    color:var(--muted);
  }
  .site-topbar-social svg{width:14px; height:14px; fill:currentColor;}
  .site-topbar-social a:hover{color:var(--orange);}

  .site-header{
    background:#fff; border-bottom:1px solid var(--line);
  }
  .site-header-inner{
    max-width:1080px; margin:0 auto; padding:14px 20px;
    display:flex; align-items:center; justify-content:space-between; gap:20px;
  }
  .site-logo img{height:38px; display:block;}
  .site-nav{display:flex; align-items:center; gap:13px;}
  .site-nav a{
    color:#444; text-decoration:none; font-size:13.5px; font-weight:500; white-space:nowrap;
    padding:26px 4px; border-bottom:2px solid transparent; transition:color .15s, border-color .15s;
  }
  .site-nav a:hover{color:var(--orange);}
  .site-nav a.current{color:var(--orange); font-weight:700;}
  .menu-toggle{
    display:none; background:none; border:none; cursor:pointer; padding:6px;
    flex-direction:column; gap:4px;
  }
  .menu-toggle span{
    width:22px; height:2px; background:var(--ink); border-radius:2px;
    transition:transform .2s ease, opacity .15s ease;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg);}
  .menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
  .menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

  /* ---------- nav dropdowns ---------- */
  .nav-item{position:relative;}
  .nav-item>a{padding-right:18px;}
  .dropdown-toggle{
    position:absolute; right:-2px; top:50%; transform:translateY(-50%);
    background:none; border:none; padding:6px; margin:0; cursor:pointer; color:#9aa3a8;
    display:flex; align-items:center; justify-content:center; line-height:0;
  }
  .dropdown-toggle svg{width:9px; height:9px; transition:transform .2s ease; display:block;}
  .dropdown{
    position:absolute; top:100%; left:0; min-width:240px; background:#fff;
    list-style:none; margin:0; padding:8px 0; z-index:95;
    border-top:3px solid var(--orange); border-radius:0 0 10px 10px;
    box-shadow:0 12px 28px rgba(20,30,40,0.14);
    opacity:0; visibility:hidden; transform:translateY(6px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .dropdown a{
    display:block; width:auto; padding:9px 18px !important; font-size:13.5px; font-weight:500;
    color:#555 !important; border:none !important; white-space:nowrap;
  }
  .dropdown a:hover{background:var(--bg); color:var(--orange) !important;}
  .nav-item:hover .dropdown,
  .nav-item.dd-open .dropdown{opacity:1; visibility:visible; transform:translateY(0);}
  .nav-item:hover .dropdown-toggle svg,
  .nav-item.dd-open .dropdown-toggle svg{transform:rotate(180deg);}

  @media (max-width:860px){
    .site-topbar{display:none;}
    .site-nav{
      position:absolute; top:100%; left:0; right:0; background:#fff; z-index:90;
      flex-direction:column; align-items:flex-start; gap:0;
      border-bottom:1px solid var(--line); box-shadow:0 16px 32px rgba(20,30,40,0.12);
      max-height:0; overflow-y:auto; transition:max-height .3s ease;
    }
    .site-nav.open{max-height:calc(100vh - 70px);}
    .site-nav a{display:block; width:100%; padding:14px 20px; border-bottom:1px solid var(--line); border-left:3px solid transparent; box-sizing:border-box;}
    .site-nav a:hover, .site-nav a.current{border-color:transparent; border-left-color:var(--orange); background:var(--bg); font-weight:700;}
    .site-header-inner{position:relative;}
    .menu-toggle{display:flex;}

    .nav-item{width:100%;}
    .nav-item>a{padding-right:44px;}
    .dropdown-toggle{right:4px; top:2px; transform:none; padding:14px 12px;}
    .dropdown{
      position:static; min-width:0; box-shadow:none; border-top:none; border-radius:0;
      padding:0; margin:0; background:var(--bg);
      opacity:1; visibility:visible; transform:none;
      max-height:0; overflow:hidden; transition:max-height .25s ease;
    }
    .nav-item.dd-open .dropdown{max-height:600px;}
    .dropdown a{padding:11px 20px 11px 34px !important; font-size:13px; border-bottom:1px solid var(--line) !important;}
    .dropdown a:last-child{border-bottom:none !important;}
  }

  /* ---------- progress bar ---------- */
  .progress-wrap{
    position:sticky; top:0; left:0; right:0; z-index:50;
    background:rgba(244,247,248,0.85);
    backdrop-filter:blur(6px);
    border-bottom:1px solid var(--line);
  }
  .progress-track{
    height:5px; width:100%; background:rgba(46,50,56,0.08);
    position:relative; overflow:hidden;
  }
  .progress-fill{
    position:absolute; top:0; left:0; height:100%; width:0%;
    background:linear-gradient(90deg, var(--orange), var(--blue));
    transition:width .5s cubic-bezier(.4,0,.2,1);
    border-radius:0 4px 4px 0;
  }
  .progress-label{
    max-width:720px; margin:0 auto; padding:8px 20px 6px;
    font-size:12.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
    color:var(--muted); display:flex; justify-content:space-between;
  }
  .progress-label .step-name{color:var(--orange);}
  .stepper{
    display:flex; gap:6px; justify-content:center; max-width:720px; margin:0 auto;
    padding:0 20px 8px;
  }
  .stepper .dot{
    height:7px; width:7px; border-radius:4px; background:rgba(46,50,56,0.16);
    transition:all .3s cubic-bezier(.4,0,.2,1);
  }
  .stepper .dot.done{background:var(--orange); width:7px;}
  .stepper .dot.current{background:var(--blue); width:22px;}

  /* ---------- shell ---------- */
  .shell{
    max-width:720px; margin:0 auto; padding:36px 20px 80px;
    min-height:60vh; display:flex; flex-direction:column; justify-content:center;
  }
  .screen{display:none;}
  .screen.active{display:block; animation:fadeUp .45s cubic-bezier(.16,1,.3,1);}
  @keyframes fadeUp{from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);}}

  /* ---------- intro ---------- */
  .emblem{
    width:84px; height:84px; margin:0 auto 20px; display:block; object-fit:contain;
  }
  .intro-card{
    background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow-md);
    padding:44px 36px; text-align:center; border:1px solid var(--line);
  }
  .eyebrow{
    font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
    color:var(--blue); margin:0 0 10px;
  }
  h1{
    font-size:28px; line-height:1.25; font-weight:800; margin:0 0 16px; color:var(--ink);
    letter-spacing:-.01em;
  }
  .intro-text{
    font-size:15.5px; line-height:1.65; color:var(--muted); margin:0 auto 30px; max-width:560px;
  }
  .field-row{display:flex; gap:14px; margin-bottom:14px; flex-wrap:wrap;}
  .field{flex:1 1 200px; text-align:left;}
  label.field-label{
    display:block; font-size:12.5px; font-weight:700; color:var(--ink); margin:0 0 6px;
  }
  input[type=email], input[type=number], input[type=text]{
    width:100%; padding:13px 15px; font-size:15px; font-family:inherit;
    border:1.5px solid var(--line); border-radius:12px; background:#fbfcfd;
    color:var(--ink); transition:border-color .15s, box-shadow .15s;
  }
  input:focus{
    outline:none; border-color:var(--blue); box-shadow:0 0 0 4px rgba(0,147,208,0.12);
    background:#fff;
  }
  input.input-error{border-color:#D64545; background:#fff6f6;}
  input.input-error:focus{box-shadow:0 0 0 4px rgba(214,69,69,0.14);}
  .field-error{
    display:none; font-size:12px; font-weight:600; color:#D64545; margin-top:6px; text-align:left;
  }
  .field-error.show{display:block;}
  .required-mark{color:#D64545;}

  /* ---------- buttons ---------- */
  .btn{
    appearance:none; border:none; cursor:pointer; font-family:inherit;
    font-size:15.5px; font-weight:700; padding:14px 26px; border-radius:14px;
    transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
  }
  .btn-primary{
    background:linear-gradient(135deg, var(--orange), var(--orange-dark));
    color:#fff; box-shadow:0 8px 20px rgba(232,106,68,0.32);
  }
  .btn-primary:hover:not(:disabled){transform:translateY(-2px); box-shadow:0 12px 26px rgba(232,106,68,0.4);}
  .btn-primary:disabled{opacity:.4; cursor:not-allowed; box-shadow:none;}
  .btn-primary.is-incomplete{opacity:.55; box-shadow:none;}
  .btn-primary.is-incomplete:hover{transform:none; box-shadow:none;}
  .btn-ghost{
    background:transparent; color:var(--muted); border:1.5px solid var(--line);
  }
  .btn-ghost:hover{border-color:var(--blue); color:var(--blue); transform:translateY(-2px);}
  .btn-wide{width:100%;}
  .btn:focus-visible, .scale-btn:focus-visible{
    outline:3px solid var(--blue); outline-offset:2px;
  }
  .cta-row{display:flex; justify-content:center; margin-top:6px;}
  .nav-row{
    display:flex; flex-direction:column; gap:8px; margin-top:28px;
  }
  .nav-row .btn-line{display:flex; justify-content:space-between; align-items:center; gap:12px;}
  .nav-hint{
    font-size:12.5px; font-weight:600; color:var(--orange-dark); text-align:right; min-height:16px;
  }

  /* ---------- section header ---------- */
  .section-header{margin-bottom:26px; text-align:left;}
  .section-kicker{
    font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
    color:var(--orange); margin:0 0 6px;
  }
  .section-title{font-size:21px; font-weight:800; margin:0; color:var(--ink);}

  /* ---------- question card ---------- */
  .qcard{
    background:var(--card); border:1px solid var(--line); border-radius:16px;
    padding:24px 22px 22px; margin-bottom:16px; box-shadow:var(--shadow-sm);
    opacity:0; animation:qIn .5s ease forwards;
    animation-delay:calc(var(--i,0) * 70ms);
  }
  @keyframes qIn{from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);}}
  .qcard.shake{animation:qShake .4s ease; border-color:var(--orange);}
  @keyframes qShake{
    0%,100%{transform:translateX(0);} 20%{transform:translateX(-6px);}
    40%{transform:translateX(6px);} 60%{transform:translateX(-4px);} 80%{transform:translateX(4px);}
  }
  .qtext{font-size:15.5px; line-height:1.55; font-weight:600; color:var(--ink); margin:0 0 18px;}
  .scale-labels{
    display:flex; justify-content:space-between; font-size:11px; font-weight:700;
    color:var(--muted); text-transform:uppercase; letter-spacing:.03em; margin-bottom:9px;
  }
  .scale-labels .lo{color:var(--orange-dark);}
  .scale-labels .hi{color:var(--blue-dark); text-align:right;}
  .scale-row{
    display:flex; justify-content:space-between; gap:6px;
  }
  .scale-btn{
    flex:1 1 0; aspect-ratio:1/1; max-width:46px;
    border-radius:50%; border:2px solid var(--line); background:#fff;
    display:flex; align-items:center; justify-content:center;
    font-size:13.5px; font-weight:700; color:var(--muted); cursor:pointer;
    transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  }
  .scale-btn:hover{transform:translateY(-2px); border-color:var(--sbcolor, var(--orange));}
  .scale-btn.selected{
    background:var(--sbcolor); border-color:var(--sbcolor); color:#fff;
    transform:scale(1.14); box-shadow:0 6px 16px var(--sbshadow);
  }

  /* ---------- thank you ---------- */
  .done-wrap{text-align:center;}
  .done-badge{
    width:78px; height:78px; border-radius:50%; margin:0 auto 20px;
    background:linear-gradient(135deg, var(--orange), var(--blue));
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 12px 30px rgba(0,147,208,0.28);
    animation:pulseIn .6s cubic-bezier(.34,1.56,.64,1);
  }
  @keyframes pulseIn{from{transform:scale(0.5); opacity:0;} to{transform:scale(1); opacity:1;}}
  .done-badge svg{width:36px; height:36px;}
  .summary-toggle{
    background:none; border:none; color:var(--blue); font-weight:700; font-size:14px;
    cursor:pointer; margin-top:22px; text-decoration:underline; text-underline-offset:3px;
  }
  .summary{
    display:none; text-align:left; margin-top:18px; border-top:1px solid var(--line); padding-top:18px;
  }
  .summary.open{display:block;}
  .summary-item{
    display:flex; justify-content:space-between; gap:14px; padding:9px 0;
    border-bottom:1px dashed var(--line); font-size:13.5px;
  }
  .summary-item .sq{color:var(--ink); flex:1;}
  .summary-item .sa{color:var(--white); background:var(--blue); font-weight:800; border-radius:8px;
    padding:2px 9px; min-width:20px; text-align:center; flex-shrink:0;}
  .note-box{
    margin-top:22px; background:rgba(0,147,208,0.06); border:1px dashed rgba(0,147,208,0.35);
    border-radius:12px; padding:14px 16px; font-size:12.5px; color:var(--blue-dark); text-align:left;
    line-height:1.5;
  }
  .note-box.note-pending{
    background:rgba(101,112,123,0.07); border-color:rgba(101,112,123,0.3); color:var(--muted);
  }
  .note-box.note-success{
    background:rgba(46,166,105,0.08); border:1px solid rgba(46,166,105,0.35); border-style:solid;
    color:#1F8A54; font-weight:700; text-align:center;
  }
  .note-box.note-error{
    background:rgba(214,69,69,0.06); border:1px solid rgba(214,69,69,0.3); border-style:solid;
    color:#B23A3A;
  }
  .copy-row{margin-top:18px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap;}

  footer.brand-footer{
    text-align:center; margin-top:34px; font-size:12px; color:var(--muted); opacity:.75;
  }

  /* ---------- full site footer ---------- */
  .site-footer{
    background:#EFF3F4; border-top:1px solid var(--line); margin-top:44px;
    padding:36px 20px 20px;
    width:100vw; margin-left:calc(-50vw + 50%); margin-right:calc(-50vw + 50%);
  }
  .site-footer-inner{
    max-width:720px; margin:0 auto; display:flex; flex-wrap:wrap; gap:28px;
    justify-content:space-between; text-align:left;
  }
  .site-footer-col h4{
    font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em;
    color:var(--blue-dark); margin:0 0 10px;
  }
  .site-footer-col p{margin:0; font-size:13.5px; line-height:1.7; color:var(--muted);}
  .site-footer-col a{color:var(--muted); text-decoration:none;}
  .site-footer-col a:hover{color:var(--orange);}
  .site-footer-social{display:flex; gap:10px; margin-top:12px;}
  .site-footer-social a{
    width:32px; height:32px; border-radius:50%; background:#fff; border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center; color:var(--muted); transition:all .15s;
  }
  .site-footer-social a:hover{color:#fff; background:var(--orange); border-color:var(--orange); transform:translateY(-2px);}
  .site-footer-social svg{width:15px; height:15px; fill:currentColor;}
  .site-footer-bottom{
    max-width:720px; margin:22px auto 0; padding-top:16px; border-top:1px solid var(--line);
    font-size:11.5px; color:var(--muted); text-align:center;
  }
  @media (max-width:480px){
    .site-footer-inner{gap:22px;}
  }

  /* ---------- mobile ---------- */
  @media (max-width:600px){
    .shell{padding:24px 12px 118px;}
    .progress-label{padding:7px 14px 5px; font-size:11px;}
    .section-header{margin-bottom:18px;}
    .section-title{font-size:18px;}
    .nav-row{
      position:fixed; left:0; right:0; bottom:0; z-index:40; gap:6px;
      margin-top:0; background:rgba(244,247,248,0.94); backdrop-filter:blur(10px);
      border-top:1px solid var(--line); padding:10px 14px calc(10px + env(safe-area-inset-bottom));
      box-shadow:0 -8px 24px rgba(20,30,40,0.06);
    }
    .nav-row .btn{flex:1 1 0; padding:13px 14px; font-size:14px; text-align:center;}
    .nav-hint{text-align:center;}
  }
  @media (max-width:480px){
    .intro-card{padding:30px 18px;}
    h1{font-size:22px;}
    .intro-text{font-size:14px;}
    .field-row{gap:10px;}
    .qcard{padding:18px 14px 16px; border-radius:14px;}
    .qtext{font-size:14.5px; margin-bottom:14px;}
    .scale-row{gap:4px;}
    .scale-btn{font-size:12px; border-width:1.5px;}
    .scale-labels{font-size:10px;}
    .done-badge{width:64px; height:64px;}
    .done-badge svg{width:28px; height:28px;}
    .summary-item{font-size:12.5px; gap:10px;}
  }
  @media (max-width:360px){
    .scale-row{gap:3px;}
    .scale-btn{font-size:11px; max-width:38px;}
    .field-row{flex-direction:column;}
  }
  @media (hover:none) and (pointer:coarse){
    .scale-btn:active{transform:scale(1.1);}
    .btn:active{transform:translateY(0); opacity:.85;}
  }
