/* ============================================================
   Tvoja Firma — štýly
   Premenné nájdeš nižšie — meň farby, fonty a rádiusy na jednom mieste.
   ============================================================ */

:root {
  /* Farby — uprav podľa svojej značky */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-text: #1a2233;
  --color-muted: #5b6678;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-border: #e5e9f0;
  --color-dark: #0f172a;

  /* Typografia */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rozmery */
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

/* Atribút hidden musí vždy vyhrať nad layout pravidlami (napr. display:flex) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.6rem;
}

/* ============ Tlačidlá ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ============ Hlavička ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--color-muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--color-text); }
.nav-links .btn { color: #fff; }
.nav-links .btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.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); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 24px 1rem;
  border-top: 1px solid var(--color-border);
  background: #fff;
}
.mobile-menu a {
  padding: 0.8rem 0;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============ Hero ============ */
.hero {
  background: radial-gradient(1200px 500px at 50% -10%, #e8efff 0%, transparent 60%), var(--color-bg);
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.lead { font-size: 1.15rem; color: var(--color-muted); max-width: 620px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.8rem; font-weight: 800; color: var(--color-primary); }
.stat span { color: var(--color-muted); font-size: 0.92rem; }

/* ============ Sekcie ============ */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--color-muted); font-size: 1.05rem; }

/* ============ Karty služieb ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eef3ff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card p { color: var(--color-muted); margin: 0; }

/* ============ Technológie ============ */
.tech-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.tech-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chips li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.chips li:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ============ O nás ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p { color: var(--color-muted); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--color-text);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.about-illustration {
  margin: 0;
  display: grid;
  place-items: center;
}
.about-illustration img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 440px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============ Postup ============ */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--color-bg);
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step p { color: var(--color-muted); margin: 0; }

/* ============ Cenník ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.price-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.price-card--highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  position: relative;
}
.price-label { font-weight: 600; color: var(--color-muted); margin: 0 0 0.6rem; }
.price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0 0 0.3rem; }
.price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text); }
.price-unit { font-size: 1rem; font-weight: 600; color: var(--color-muted); }
.price-note { font-size: 0.85rem; color: var(--color-muted); margin: 0 0 1.2rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.price-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.pricing-foot {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 2rem auto 0;
  max-width: 540px;
}

/* ============ Kontakt ============ */
.section-cta { background: var(--color-bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-text p { color: var(--color-muted); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.contact-list a:hover { color: var(--color-primary); }

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field textarea { resize: vertical; }
.form-note { margin: 0.8rem 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-note.ok { color: #15803d; }
.form-note.err { color: #b91c1c; }

/* ============ Pätička ============ */
.site-footer { background: var(--color-dark); color: #cbd5e1; padding: 2.5rem 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 600; }
.footer-copy { margin: 0; font-size: 0.9rem; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: #cbd5e1; font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* ============ Responzivita ============ */
/* Mobilné menu sa zobrazuje len pod hranicou 860px (a len keď nie je hidden) */
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-illustration { order: -1; }
}

/* Jemný nábeh sekcií pri scrollovaní */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
