/* =========================================================
   Rovnaká mzda – rovnakamzda.sk
   Statická verzia (bez frameworku)
   ========================================================= */

/* ---------- 1. Dizajnové premenné ---------- */
:root {
  --background:        #f5f7fa;
  --foreground:        #19222e;
  --card:              #ffffff;
  --primary:           #155dc1;
  --primary-dark:      #114b9c;
  --primary-foreground:#ffffff;
  --accent:            #30a692;
  --accent-dark:       #27897a;
  --secondary:         #e9edf1;
  --muted:             #edf0f3;
  --muted-foreground:  #6c7889;
  --section-alt:       #f0f2f5;
  --border:            #dbe0e6;
  --ring:              #155dc1;

  --gradient:          linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);

  --radius:            .75rem;
  --radius-sm:         .5rem;
  --radius-lg:         1rem;

  --shadow-sm:         0 1px 2px rgba(25,34,46,.05);
  --shadow:            0 2px 8px rgba(25,34,46,.06);
  --shadow-md:         0 4px 16px rgba(25,34,46,.08);
  --shadow-lg:         0 12px 32px rgba(25,34,46,.10);

  --header-h:          66px;
  --container:         1216px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 800px; }

.section { padding: 64px 0; }
.section-alt { background: var(--section-alt); }

.section-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head h2 { font-size: 32px; }
.section-head p {
  color: var(--muted-foreground);
  font-size: 17px;
  margin: 0;
}

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--gradient);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: rgba(21,93,193,.06); }

.btn-lg { padding: 15px 30px; font-size: 17px; border-radius: var(--radius); }
.btn-block { width: 100%; padding: 14px 24px; font-size: 17px; }

/* ---------- 5. Hlavička ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  font-size: 21px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.logo-footer { font-size: 20px; display: inline-block; margin-bottom: 6px; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--muted-foreground);
  font-size: 15px;
  transition: color .15s ease;
}
.nav a:hover, .nav a.active { color: var(--primary); text-decoration: none; }
.nav-cta { display: none; }

.btn-header { font-size: 15px; padding: 9px 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s 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); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 12% 8%, rgba(21,93,193,.07), transparent 60%),
    radial-gradient(760px 420px at 92% 22%, rgba(48,166,146,.08), transparent 60%),
    linear-gradient(180deg, #eef1f6 0%, #f7f8fa 62%, var(--background) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  margin-bottom: 20px;
}

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 17px;
  color: var(--muted-foreground);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted-foreground);
  max-width: 40em;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- 7. Karty ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { color: var(--muted-foreground); font-size: 15px; margin: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  flex: none;
}
.icon-badge svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge-soft { background: linear-gradient(135deg, rgba(21,93,193,.12), rgba(48,166,146,.16)); }
.icon-badge-soft svg { stroke: var(--accent); }

/* Termín / upozornenie */
.deadline {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 32px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.deadline .icon-badge { margin-bottom: 0; border-radius: 50%; }
.deadline h3 { font-size: 19px; margin-bottom: 8px; }
.deadline p { color: var(--muted-foreground); margin: 0; }

/* ---------- 7b. Riziko pokút a sporov ---------- */
.section-risk {
  background:
    radial-gradient(760px 420px at 88% 12%, rgba(21,93,193,.05), transparent 62%),
    linear-gradient(180deg, #fbfcfd 0%, #f7f9fb 100%);
  border-block: 1px solid var(--border);
}

.sanctions { grid-template-columns: repeat(2, 1fr); }

.sanction {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sanction p { color: var(--muted-foreground); font-size: 15px; margin: 0; }

.sanction-amount {
  display: block;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sanction-source {
  font-size: 15px !important;
  font-weight: 500;
  color: var(--foreground) !important;
  margin-bottom: 12px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sanction-note { white-space: nowrap; }

/* zvýraznená karta – hlavná sankcia */
.sanction-major {
  background: linear-gradient(145deg, #16204a 0%, #1c3a63 55%, #235a63 100%);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.sanction-major .sanction-amount {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #ffffff;
}
.sanction-major .sanction-source {
  color: #ffffff !important;
  border-bottom-color: rgba(255,255,255,.22);
}
.sanction-major p { color: rgba(255,255,255,.82); }

/* upozornenie – obrátené dôkazné bremeno */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.callout .icon-badge { margin-bottom: 0; border-radius: 50%; }
.callout h3 { font-size: 18px; margin-bottom: 8px; }
.callout p { color: var(--muted-foreground); margin: 0 0 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout-final { font-weight: 500; color: var(--foreground) !important; }

/* ---------- 8. Kroky ---------- */
.steps { display: grid; gap: 20px; }

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step:nth-child(even) { margin-left: auto; }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.step-body h3 { font-size: 18px; margin-bottom: 6px; }
.step-body p { color: var(--muted-foreground); font-size: 15px; margin: 0; }

.chip {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(48,166,146,.12);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: middle;
}

/* ---------- 9. Čo získate ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.benefits-grid h2 { font-size: 32px; margin-bottom: 24px; }

.check-list { display: grid; gap: 16px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16.5px;
}
.check-list svg {
  flex: none;
  width: 21px; height: 21px;
  margin-top: 3px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.mini-card svg {
  width: 26px; height: 26px;
  margin: 0 auto 12px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}
.mini-card strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.mini-card span { display: block; font-size: 13px; color: var(--muted-foreground); }

/* ---------- 10. Balíčky ---------- */
.pricing { align-items: stretch; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
}
.plan h3 { font-size: 19px; margin-bottom: 4px; }
.plan-tag { color: var(--accent); font-size: 14.5px; font-weight: 500; margin-bottom: 10px; }
.plan-desc { color: var(--muted-foreground); font-size: 14.5px; margin-bottom: 20px; }

.plan-list { display: grid; gap: 10px; margin-bottom: 24px; }
.plan-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.5;
}
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan .btn { margin-top: auto; }

.plan-featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- 11. FAQ ---------- */
.accordion { display: grid; gap: 12px; }

.acc-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
}
.acc-trigger:hover { color: var(--primary); }

.acc-chevron {
  flex: none;
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--muted-foreground);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.acc-trigger[aria-expanded="true"] .acc-chevron { transform: rotate(180deg); }

.acc-panel { padding: 0 24px 20px; }
.acc-panel p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 15.5px;
}

/* ---------- 12. Formulár ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14.5px;
  font-weight: 500;
}
.req { color: var(--primary); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  color: var(--foreground);
  padding: 11px 14px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7889' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.field input::placeholder,
.field textarea::placeholder { color: #9aa3b0; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,93,193,.14);
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid { border-color: #dc2626; }

.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted-foreground); }
.error { margin: 6px 0 0; font-size: 13px; color: #dc2626; display: none; }
.error.show { display: block; }

.field-consent { margin: 24px 0; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 14.5px;
  cursor: pointer;
}
.consent input {
  width: 18px; height: 18px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.consent a { text-decoration: underline; }

/* honeypot – neviditeľné pre ľudí, viditeľné pre roboty */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok    { background: rgba(48,166,146,.12); color: var(--accent-dark); }
.form-status.err   { background: rgba(220,38,38,.10);  color: #b91c1c; }

.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- 13. Pätička ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}
.footer-top p { margin: 0; font-size: 15px; }
.footer-top a { color: var(--muted-foreground); }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { color: var(--muted-foreground); font-size: 15px; }
.footer-nav a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted-foreground);
}

/* ---------- 14. Animácia pri scrollovaní ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 15. Responzívne ---------- */
@media (min-width: 769px) {
  .section { padding: 96px 0; }
  .hero { padding: calc(var(--header-h) + 80px) 0 96px; }
  .section-head h2, .benefits-grid h2 { font-size: 38px; }
  .step { width: 92%; }
  .step:nth-child(even) { width: 92%; }
}

@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav a { font-size: 14.5px; }
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 36px; }
  .nav { gap: 15px; }
  .btn-header { padding: 9px 14px; font-size: 14px; }
}

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav, .btn-header { display: none; }
  .nav-toggle { display: flex; }

  .site-header.menu-open .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 20px;
  }
  .site-header.menu-open .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .site-header.menu-open .nav .nav-cta {
    display: inline-flex;
    margin-top: 16px;
    padding: 13px 22px;
    border-bottom: 0;
    color: #fff;
  }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero .lead { font-size: 16px; }
  .btn-lg { width: 100%; }
  .deadline,
  .callout { flex-direction: column; gap: 16px; padding: 24px; }
  .sanctions { grid-template-columns: 1fr; }
  .sanction { padding: 22px; }
  .step { padding: 20px; gap: 14px; }
  .form-card { padding: 22px 18px; }
  .footer-top { flex-direction: column; gap: 20px; }
}

@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .mini-cards { grid-template-columns: 1fr; }
  .section-head h2, .benefits-grid h2 { font-size: 27px; }
  .container { padding-inline: 18px; }
  .acc-trigger { padding: 16px 18px; font-size: 15.5px; }
  .acc-panel { padding: 0 18px 18px; }
  .chip { display: inline-block; margin: 6px 0 0; }
}

/* ---------- 16. Tlač / prístupnosť ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
