/* =========================================================
   EDUKAS o.z. — dizajnový systém
   Štýl: moderný, dôveryhodný, ľudský
   ========================================================= */

:root {
  /* Farby — navy podľa loga EDUKAS + azúrový akcent */
  --teal-900: #14123d;  /* najtmavšia navy (footer, deep sekcie) */
  --teal-700: #1f1c63;  /* navy loga (primary dark) */
  --teal-600: #2a2785;  /* primary */
  --teal-500: #3f3aa6;  /* svetlejšia navy */
  --teal-50:  #ebecf8;  /* jemný navy tint */

  --amber-600: #2f5fe0; /* azúr tmavší */
  --amber-500: #4f7cff; /* azúr akcent */
  --amber-100: #dde6ff;

  --ink:    #181646;
  --muted:  #5b5e7e;
  --line:   #e6e7f2;
  --sand:   #f5f6fc;
  --surface:#ffffff;
  --surface-2:#eceef7;

  /* Typografia */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Rozmery */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20,18,61,.06), 0 4px 14px rgba(20,18,61,.07);
  --shadow-md: 0 10px 30px rgba(20,18,61,.12);
  --shadow-lg: 0 24px 60px rgba(20,18,61,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.menubuttonsfixed{
  margin-bottom: 16px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; }
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.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--teal-700); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--sand { background: var(--sand); }
.section--surface { background: var(--surface); }
.section--deep { background: linear-gradient(160deg, var(--teal-900), var(--teal-700)); color: #eafaf5; }
.section--deep h2, .section--deep h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: white; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber-500); border-radius: 2px; }
.section--deep .eyebrow { color: var(--amber-500); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section--deep .lead { color: #cfd5fb; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-600); color: #fff; box-shadow: 0 8px 20px rgba(42,39,133,.32); }
.btn--primary:hover { background: var(--teal-700); box-shadow: 0 12px 26px rgba(42,39,133,.42); }
.btn--accent { background: var(--amber-500); color: #fff; box-shadow: 0 8px 20px rgba(79,124,255,.36); }
.btn--accent:hover { background: var(--amber-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-600); color: var(--teal-700); }
.btn--light { background: #fff; color: var(--teal-700); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,247,240,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand__mark {
  width: 50px; height: 46px; flex: 0 0 auto;
  background: url("logo-mark.svg") center/contain no-repeat;
  font-size: 0; color: transparent; /* skryje pôvodné "E" */
}
.footer .brand__mark { filter: brightness(0) invert(1); } /* biele logo na tmavom pozadí */
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--ink);
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav__links a.active { background: var(--teal-600); color: #fff; }
.nav__cta { margin-left: 10px; }
.nav__links a.btn--primary,
.nav__links a.btn--primary:hover { color: #fff; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

@media (max-width: 920px) {
  .nav__toggle { display: block; z-index: 61; position: relative; }
  .nav__links {
    position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(250,247,240,.97); backdrop-filter: saturate(160%) blur(28px); -webkit-backdrop-filter: saturate(160%) blur(28px);
    border-bottom: 1px solid var(--line);
    padding: 24px 24px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
    overflow-y: auto; z-index: 59;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 12px 14px; margin: 16px 0; }
  .nav__cta { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 88% 10%, rgba(79,124,255,.18), transparent 60%),
    radial-gradient(55% 60% at 6% 90%, rgba(42,39,133,.16), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--teal-600); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero__trust div { font-family: var(--font-head); }
.hero__trust b { display: block; font-size: 1.7rem; color: var(--teal-700); }
.hero__trust small { color: var(--muted); font-size: .9rem; }

.hero__visual { position: relative; }
.hero__card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero__card h3 { display: flex; align-items: center; gap: 10px; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 14px 0 14px 52px; counter-increment: step;
  border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); font-family: var(--font-head); font-weight: 700;
}
.steps b { display: block; font-family: var(--font-head); }
.steps small { color: var(--muted); }
.hero__badge {
  position: absolute; bottom: -18px; right: -10px;
  background: var(--amber-500); color: #fff; font-family: var(--font-head); font-weight: 700;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-md); font-size: .95rem;
}

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-50); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__num { font-family: var(--font-head); font-weight: 700; color: var(--amber-500); font-size: .9rem; letter-spacing: .1em; }
.card p { color: var(--muted); margin-bottom: 0; }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Audience chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split--reverse .split__media { order: 0; } }
.split__media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  background: linear-gradient(150deg, var(--teal-600), var(--teal-900)); aspect-ratio: 4/3;
  display: grid; place-items: center; color: #eafaf5; padding: 30px; text-align: center;
}
.split__media .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem,4vw,3rem); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
@media (max-width: 620px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stats b { font-family: var(--font-head); font-size: clamp(2rem,4vw,2.8rem); display: block; color: #fff; }
.stats span { color: #cfd5fb; font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); position: relative;
}
.quote::before { content: "\201C"; font-family: Georgia, serif; font-size: 4rem; color: var(--amber-500); line-height: .6; position: absolute; top: 22px; right: 24px; opacity: .35; }
.quote p { font-size: 1.05rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.quote .who b { font-family: var(--font-head); display: block; }
.quote .who small { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--teal-700), var(--teal-900));
  border-radius: 26px; padding: 56px; color: #fff; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(50% 80% at 90% 0%, rgba(79,124,255,.32), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .btn { margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex: 0 0 auto; }
.info-item b { font-family: var(--font-head); }
.info-item a { color: var(--ink); }
.info-item small { color: var(--muted); display: block; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .92rem; display: block; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--sand); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Blog ---------- */
.post {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__img { aspect-ratio: 16/9; background: linear-gradient(150deg,var(--teal-500),var(--teal-900)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; padding: 20px; text-align: center; }
.post__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post__tag { font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-600); font-weight: 600; }
.post__body h3 { margin: 8px 0 10px; }
.post__body p { color: var(--muted); flex: 1; }
.post__meta { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 64px 0 50px; background: linear-gradient(160deg, var(--surface-2), var(--sand)); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--teal-900); color: #cfd4f5; padding: 64px 0 28px; }
.footer a { color: #cfd4f5; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 860px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px){ .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer .brand { color: #fff; }
.footer .brand small { color: #a6abd6; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #a6abd6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ html.js .reveal { transition: none; } }