:root {
  --bg-dark: #0c1222;
  --bg-dark-soft: #141b2d;
  --bg-light: #f5f7fb;
  --bg-white: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-light: #cbd5e1;
  --accent: #12aeea;
  --accent-dark: #0a8fc3;
  --accent-soft: #eefbff;
  --line: #d7dce5;
  --line-dark: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  --max-w: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 18, 34, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-desktop a.active { color: var(--accent); }

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}

.header-cta:hover { background: var(--accent-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle svg { display: block; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg-dark);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  z-index: 99;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: var(--text-light);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 1rem;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-mobile .header-cta {
  margin-top: 16px;
  justify-content: center;
  width: 100%;
}

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .header-inner > .header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-soft) 50%, #1a2540 100%);
  color: #fff;
  padding: 80px 24px 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(18, 174, 234, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 820px;
  font-weight: 700;
}

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light);
  max-width: 720px;
  margin: 0 0 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-compact { padding: 64px 24px 72px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--bg-dark);
  color: #fff;
}

.btn-dark:hover { background: var(--bg-dark-soft); }

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover { background: #d1d5db; }

/* Sections */
.section {
  padding: 72px 24px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-white { background: var(--bg-white); }
.section-light { background: var(--bg-light); }
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.section-dark .section-label { color: var(--accent); }

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 0 0 16px;
  color: inherit;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }
.section-dark .text-muted { color: var(--text-light); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(18, 174, 234, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 1.25rem;
}

.card h3 { color: var(--text); }

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-soft) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.cta-band-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-light); margin-bottom: 28px; }

/* Contact block */
.contact-block {
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  padding: 64px 24px;
}

.contact-block-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-block-inner { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-item strong { display: block; margin-bottom: 2px; }

/* Forms */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.required { color: #b91c1c; }

.note-box,
.note {
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  margin: 24px 0;
  color: #1e3a8a;
}

/* FAQ */
.faq-list { display: grid; gap: 16px; }

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Quiz */
.quiz-progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

.quiz-question { display: none; }
.quiz-question.active { display: block; }

.quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.quiz-option:hover { border-color: var(--accent); }

.quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.quiz-option input { margin: 0; accent-color: var(--accent); }

.quiz-result {
  display: none;
  text-align: center;
  padding: 32px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.quiz-result.visible { display: block; }

.result-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dotazník – formulárové prvky z referencie, farby zo škály webu */
.survey-form .card {
  margin: 18px 0;
  padding: 24px;
}

.survey-form .card h2 {
  font-size: 20px;
  margin: 0 0 14px;
  color: #0f172a;
}

.survey-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  min-height: 86px;
  resize: vertical;
}

.survey-form input[type="text"],
.survey-form input[type="email"],
.survey-form input[type="tel"],
.survey-form input[type="number"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}

.survey-form label {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.survey-form .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.question {
  border-top: 1px solid #eef2f7;
  padding: 14px 0;
}

.question:first-of-type { border-top: 0; }

.qtext { font-weight: 700; margin-bottom: 8px; }

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  padding: 7px 10px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.choice input { margin: 0; accent-color: var(--accent); }

.inline-note { margin-top: 8px; }

.actions {
  position: sticky;
  bottom: 0;
  background: rgba(245, 247, 251, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 14px 0 4px;
  margin-top: 20px;
  z-index: 2;
}

.action-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.output {
  display: none;
  margin-top: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 14px;
}

.output textarea {
  min-height: 230px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  background: #fffdf9;
}

.small { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* Articles */
.article-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.article-featured-image {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-soft) 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 3rem;
}

.article-featured-content { padding: 32px; }

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-right: 8px;
}

.article-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.article-card:hover { box-shadow: var(--shadow-lg); }

.article-card-image {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-dark-soft) 0%, var(--bg-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.8;
}

.article-card-body { padding: 24px; }

@media (max-width: 768px) {
  .article-featured { grid-template-columns: 1fr; }
  .survey-form .grid { grid-template-columns: 1fr; }
  .action-card { display: block; }
  .action-card .btn { width: 100%; margin-top: 8px; }
}

/* Article full */
.prose { max-width: 720px; }
.prose h2 { margin-top: 40px; }
.prose p { margin-bottom: 20px; }

/* Site footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}
