/* ==========================================================================
   Granulate — domáce financie
   Paleta: obsidián #16181D · ultrafialová #7B61FF · azúr #49D6FF · biela #EEF4FF
   ========================================================================== */

:root {
  --obsidian: #16181D;
  --obsidian-deep: #101216;
  --obsidian-raised: #1C1F27;
  --violet: #7B61FF;
  --violet-soft: #9A87FF;
  --cyan: #49D6FF;
  --frost: #EEF4FF;
  --frost-dim: rgba(238, 244, 255, 0.66);
  --frost-faint: rgba(238, 244, 255, 0.42);
  --line: rgba(238, 244, 255, 0.10);
  --line-strong: rgba(238, 244, 255, 0.18);
  --glass: rgba(238, 244, 255, 0.045);
  --glass-strong: rgba(238, 244, 255, 0.075);
  --success: #4BE3A2;
  --warn: #FFC46B;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --shadow-soft: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 60px -14px rgba(123, 97, 255, 0.55);

  --wrap: 1180px;
  --pad-x: clamp(18px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 132px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--frost);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: rgba(123, 97, 255, 0.5); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- atmosféra pozadia ---------- */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.aurora {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.5;
}
.aurora--violet {
  width: 46vw; height: 46vw; min-width: 320px; min-height: 320px;
  top: -14vw; left: -10vw;
  background: radial-gradient(circle, rgba(123,97,255,0.75), transparent 68%);
}
.aurora--cyan {
  width: 40vw; height: 40vw; min-width: 280px; min-height: 280px;
  top: 34vh; right: -14vw;
  background: radial-gradient(circle, rgba(73,214,255,0.42), transparent 68%);
}

.shell {
  position: relative;
  z-index: 1;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(52px, 7vw, 88px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.section__head { max-width: 700px; margin-bottom: clamp(34px, 5vw, 58px); }
.section__head p { color: var(--frost-dim); font-size: 1.04rem; }

.lead { font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--frost-dim); }

/* ---------- tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.btn--primary {
  background: linear-gradient(115deg, var(--violet), var(--cyan));
  color: #0C0E12;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 70px -10px rgba(73, 214, 255, 0.7); }
.btn--ghost {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--frost);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn--ghost:hover { background: var(--glass-strong); border-color: rgba(73,214,255,0.5); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 0.88rem; }

/* ---------- hlavička ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.masthead.is-stuck {
  background: rgba(16, 18, 22, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; }
.brand span small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--frost-faint);
  margin-top: -2px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--frost-dim);
  position: relative;
  padding-block: 4px;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--frost); }
.nav a:hover::after { width: 100%; }

.masthead__cta { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--frost);
  margin: 3.5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 108px) clamp(60px, 8vw, 100px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--cyan), var(--violet-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__note {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--frost-faint);
  font-family: var(--font-mono);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.metrics dt {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 600;
  color: var(--frost);
  letter-spacing: -0.03em;
}
.metrics dd {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--frost-faint);
  line-height: 1.4;
}

/* ---------- sklo ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow: var(--shadow-soft);
}

/* ---------- signature: granulátor rozpočtu ---------- */
.granulator { padding: clamp(20px, 3vw, 28px); }
.granulator__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.granulator__top h2 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.granulator__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frost-faint);
}

.dust {
  position: relative;
  height: 168px;
  border-radius: var(--radius-m);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(123,97,255,0.20), transparent 65%),
    rgba(12, 14, 18, 0.55);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 20px;
}
.dust canvas { width: 100%; height: 100%; display: block; }
.dust__legend {
  position: absolute;
  inset: auto 12px 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--frost-dim);
}
.dust__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dust__legend i {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block;
}

.field-row { margin-bottom: 15px; }
.field-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--frost-dim);
  margin-bottom: 7px;
}
.field-row output,
.field-row .val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--frost);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(238, 244, 255, 0.14);
  outline-offset: 6px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  border: 2px solid #0F1116;
  box-shadow: 0 0 14px rgba(73,214,255,0.75);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #0F1116;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(73,214,255,0.75);
  cursor: pointer;
}

.granulator__result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.result-cell span {
  display: block;
  font-size: 0.74rem;
  color: var(--frost-faint);
  letter-spacing: 0.04em;
}
.result-cell strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.result-cell strong.is-positive { color: var(--success); }
.result-cell strong.is-negative { color: var(--warn); }
.granulator__hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--frost-faint);
  line-height: 1.55;
}

/* ---------- pás dôvery ---------- */
.trust {
  border-block: 1px solid var(--line);
  padding-block: 26px;
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 34px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frost-faint);
}
.trust__inner span { display: inline-flex; align-items: center; gap: 9px; }
.trust__inner svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }

/* ---------- karty funkcií ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}
.card {
  padding: 26px;
  border-radius: var(--radius-l);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 97, 255, 0.45);
  background: var(--glass-strong);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(123,97,255,0.28), rgba(73,214,255,0.18));
  border: 1px solid rgba(123,97,255,0.35);
}
.card__icon svg { width: 21px; height: 21px; color: var(--cyan); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--frost-dim); font-size: 0.94rem; margin: 0; }

/* ---------- postup ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(238,244,255,0.05), rgba(238,244,255,0.015));
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--violet-soft);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 7px; }
.step p { font-size: 0.9rem; color: var(--frost-dim); margin: 0; }

/* ---------- rozdelený blok s obrázkom ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}
.split--flip .split__media { order: -1; }
.split__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.82);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.split__media:hover img { transform: scale(1.045); }
.split__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(123,97,255,0.32), transparent 45%, rgba(22,24,29,0.75));
  pointer-events: none;
}
.split__media figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frost-dim);
}

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--frost-dim);
}
.ticks svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--cyan); }

/* ---------- cenník ---------- */
.billing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  margin-bottom: 34px;
}
.billing button {
  border: 0;
  background: transparent;
  color: var(--frost-dim);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.22s ease, color 0.22s ease;
}
.billing button.is-active {
  background: linear-gradient(115deg, var(--violet), var(--cyan));
  color: #0C0E12;
  font-weight: 600;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px;
  align-items: start;
}
.plan {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--featured {
  border-color: rgba(123, 97, 255, 0.6);
  background: linear-gradient(180deg, rgba(123,97,255,0.14), rgba(238,244,255,0.04));
  box-shadow: var(--shadow-glow);
}
.plan__badge {
  position: absolute;
  top: -12px; left: 26px;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(115deg, var(--violet), var(--cyan));
  color: #0C0E12;
  font-weight: 700;
}
.plan h3 { margin-bottom: 4px; }
.plan__for { font-size: 0.85rem; color: var(--frost-faint); margin-bottom: 20px; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.plan__price b {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.plan__price i {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--frost-faint);
  font-family: var(--font-body);
}
.plan__vat {
  font-size: 0.76rem;
  color: var(--frost-faint);
  margin-bottom: 22px;
  font-family: var(--font-mono);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 11px;
  font-size: 0.91rem;
  color: var(--frost-dim);
}
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--cyan); }
.plan .btn { margin-top: auto; }

.pricing-note {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--radius-m);
  border: 1px dashed var(--line-strong);
  font-size: 0.88rem;
  color: var(--frost-dim);
}
.pricing-note strong { color: var(--frost); }

/* ---------- recenzie ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.quote {
  padding: 26px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.quote p { font-size: 0.95rem; color: var(--frost-dim); }
.quote__who { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.quote__who img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}
.quote__who b { display: block; font-size: 0.9rem; font-family: var(--font-display); }
.quote__who small { color: var(--frost-faint); font-size: 0.78rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--glass);
  padding: 4px 22px;
  transition: border-color 0.24s ease, background 0.24s ease;
}
.faq details[open] { border-color: rgba(73, 214, 255, 0.42); background: var(--glass-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 34px 17px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p {
  margin: 0 0 18px;
  font-size: 0.93rem;
  color: var(--frost-dim);
  max-width: 68ch;
}

/* ---------- kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}
.form-card { padding: clamp(24px, 3vw, 34px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.f-label {
  display: block;
  font-size: 0.82rem;
  color: var(--frost-dim);
  margin-bottom: 7px;
}
.f-label .req { color: var(--violet-soft); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-s);
  background: rgba(12, 14, 18, 0.6);
  border: 1px solid var(--line);
  color: var(--frost);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { resize: vertical; min-height: 118px; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 13px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(73, 214, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(73, 214, 255, 0.14);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--warn); }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--frost-dim);
  line-height: 1.55;
}
.consent input { margin-top: 3px; accent-color: var(--violet); width: 17px; height: 17px; flex: none; }
.consent a { color: var(--cyan); }

.form-msg {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  font-size: 0.88rem;
  display: none;
}
.form-msg.is-ok { display: block; background: rgba(75, 227, 162, 0.12); border: 1px solid rgba(75, 227, 162, 0.4); color: var(--success); }
.form-msg.is-err { display: block; background: rgba(255, 196, 107, 0.1); border: 1px solid rgba(255, 196, 107, 0.4); color: var(--warn); }

.contact-info { display: grid; gap: 16px; }
.info-tile {
  padding: 22px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--glass);
}
.info-tile h3 {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frost-faint);
  margin-bottom: 9px;
  font-weight: 400;
}
.info-tile p, .info-tile a {
  font-size: 0.98rem;
  color: var(--frost);
  text-decoration: none;
  line-height: 1.55;
}
.info-tile a:hover { color: var(--cyan); }
.info-tile address { font-style: normal; }

/* ---------- päta ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 34px;
  background: linear-gradient(180deg, transparent, rgba(12, 14, 18, 0.7));
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer p { font-size: 0.88rem; color: var(--frost-faint); max-width: 42ch; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frost-faint);
  font-weight: 400;
  margin: 0 0 15px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a {
  text-decoration: none;
  font-size: 0.89rem;
  color: var(--frost-dim);
  transition: color 0.2s ease;
}
.footer ul a:hover { color: var(--cyan); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.8rem;
  color: var(--frost-faint);
}

/* ---------- cookie lišta ---------- */
.cookiebar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 160%);
  width: min(940px, calc(100% - 32px));
  z-index: 90;
  padding: 22px 24px;
  border-radius: var(--radius-l);
  background: rgba(20, 22, 28, 0.9);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 30px 70px -30px #000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookiebar.is-open { transform: translate(-50%, 0); }
.cookiebar h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1rem; }
.cookiebar p { font-size: 0.85rem; color: var(--frost-dim); margin: 0; }
.cookiebar a { color: var(--cyan); }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cookie-prefs {
  grid-column: 1 / -1;
  display: none;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cookie-prefs.is-open { display: grid; }
.cookie-prefs label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.84rem;
  color: var(--frost-dim);
}
.cookie-prefs input { accent-color: var(--violet); width: 17px; height: 17px; margin-top: 3px; flex: none; }

/* ---------- právne stránky ---------- */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal__inner { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 10px; }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--frost-faint);
  margin-bottom: 38px;
}
.legal h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-top: 42px; }
.legal h3 { font-size: 1.05rem; margin-top: 26px; }
.legal p, .legal li { color: var(--frost-dim); font-size: 0.96rem; }
.legal ul, .legal ol { padding-left: 20px; display: grid; gap: 9px; margin-bottom: 1.2em; }
.legal .box {
  padding: 22px 24px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--glass);
  margin: 26px 0;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.9rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--frost-dim);
}
.legal th { color: var(--frost); font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--cyan);
  text-decoration: none;
  margin-bottom: 26px;
}
.back-link:hover { text-decoration: underline; }

/* ---------- odhaľovanie pri scrolle ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responzivita ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 0; }
}

@media (max-width: 780px) {
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--pad-x) 26px;
    background: rgba(16, 18, 22, 0.96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .masthead__cta .btn { display: none; }
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .cookiebar { grid-template-columns: 1fr; padding: 20px; }
  .cookiebar__actions .btn { flex: 1 1 auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .granulator__result { grid-template-columns: 1fr; }
  .trust__inner { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
