/* ============================================================
   HIRIVO Learn – homepage v3
   Přívětivý, důvěryhodný, prodejní
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #3d4a55;
  --bg-dark:   #2f3c46;
  --bg-card:   #4a5862;
  --bg-light:  #536070;
  --white:     #ffffff;
  --text:      rgba(255,255,255,0.90);
  --muted:     rgba(255,255,255,0.55);
  --faint:     rgba(255,255,255,0.12);
  --rule:      rgba(255,255,255,0.10);
  --orange:    #f57b22;
  --orange-d:  #d96a14;
  --orange-bg: rgba(245,123,34,0.12);
  --green:     #2ecc71;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.22);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ─────────────────────────────────────────────────── */
.hp-nav {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 100;
}
.hp-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1040px; margin: 0 auto; padding: 0 24px;
}
.hp-nav__logo img { height: 36px; width: auto; }
.hp-nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.hp-nav__links a {
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  padding: 7px 14px; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.hp-nav__links a:hover { color: var(--white); background: var(--faint); text-decoration: none; }
.hp-nav__cta {
  background: var(--orange) !important; color: var(--white) !important;
  font-weight: 600 !important; padding: 8px 18px !important;
}
.hp-nav__cta:hover { background: var(--orange-d) !important; }

/* ── HERO ────────────────────────────────────────────────── */
.hp-hero {
  padding: 80px 0 70px;
  text-align: center;
}
.hp-hero__pretag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-bg);
  border: 1px solid rgba(245,123,34,0.3);
  color: var(--orange);
  font-size: 0.8rem; font-weight: 600;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.hp-hero__pretag::before { content: '✓'; font-size: 0.9em; }

.hp-hero h1 {
  font-size: 3rem; font-weight: 800; line-height: 1.14;
  color: var(--white); margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hp-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #f57b22 0%, #ffa552 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-hero__sub {
  font-size: 1.15rem; color: var(--muted);
  max-width: 54ch; margin: 0 auto 36px; line-height: 1.65;
}
.hp-hero__actions {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(245,123,34,0.35);
}
.btn-primary:hover {
  background: var(--orange-d); transform: translateY(-1px);
  text-decoration: none; color: var(--white);
}
.btn-secondary {
  display: inline-flex; align-items: center;
  color: var(--muted); border: 1px solid var(--rule);
  padding: 14px 24px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}
.btn-secondary:hover {
  color: var(--white); border-color: rgba(255,255,255,0.3);
  text-decoration: none;
}

/* Social proof pod CTA */
.hp-hero__proof {
  display: flex; justify-content: center; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.hp-hero__proof-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--muted);
}
.hp-hero__proof-item .icon {
  width: 28px; height: 28px;
  background: var(--orange-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.hp-proof-sep { color: var(--faint); }

/* ── DŮVOD EXISTO­VANCE (čísla) ──────────────────────────── */
.hp-numbers {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.hp-numbers-inner {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0;
}
.hp-num-item {
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid var(--rule);
}
.hp-num-item:last-child { border-right: 0; }
.hp-num-val {
  font-size: 2.6rem; font-weight: 800;
  color: var(--white); line-height: 1; margin-bottom: 6px;
}
.hp-num-val span { color: var(--orange); }
.hp-num-label { font-size: 0.85rem; color: var(--muted); }

/* ── ŠKOLENÍ ─────────────────────────────────────────────── */
.hp-section {
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}
.hp-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 10px;
}
.hp-section h2 {
  font-size: 2rem; font-weight: 800; color: var(--white);
  line-height: 1.22; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.hp-section__sub {
  font-size: 1rem; color: var(--muted); margin-bottom: 48px;
  max-width: 58ch;
}

/* Karty školení */
.hp-courses {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(295px,1fr));
  gap: 20px;
}
.hp-course-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative; overflow: hidden;
}
.hp-course-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), #ffa552);
  opacity: 0; transition: opacity 0.18s;
}
.hp-course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(245,123,34,0.25);
}
.hp-course-card:hover::before { opacity: 1; }

.hp-course-icon {
  font-size: 2rem; margin-bottom: 16px; line-height: 1;
}
.hp-course-title {
  font-size: 1.05rem; font-weight: 700; color: var(--white);
  margin-bottom: 8px; line-height: 1.3;
}
.hp-course-desc {
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: 20px; line-height: 1.6;
}
.hp-course-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.hp-course-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; color: var(--muted);
  background: var(--faint); border-radius: 20px;
  padding: 4px 10px;
}
.hp-course-cert {
  font-size: 0.75rem; font-weight: 600; color: var(--orange);
  display: flex; align-items: center; gap: 4px;
}

/* ── JAK TO FUNGUJE ─────────────────────────────────────── */
.hp-steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
}
.hp-step {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.hp-step:last-child { border-right: 0; }
.hp-step__num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--orange-bg); border: 1px solid rgba(245,123,34,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: var(--orange);
  margin-bottom: 20px;
}
.hp-step__title {
  font-size: 1.05rem; font-weight: 700; color: var(--white);
  margin-bottom: 10px;
}
.hp-step__desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ── PROČ MY ─────────────────────────────────────────────── */
.hp-why {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.hp-why__list { display: flex; flex-direction: column; gap: 20px; }
.hp-why__item { display: flex; gap: 16px; align-items: flex-start; }
.hp-why__bullet {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--orange-bg); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.hp-why__text strong {
  display: block; font-size: 0.95rem; font-weight: 700;
  color: var(--white); margin-bottom: 3px;
}
.hp-why__text span { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

.hp-why__visual {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--rule); padding: 28px;
}
.hp-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.hp-stat-row:last-child { border-bottom: 0; }
.hp-stat-name { font-size: 0.88rem; color: var(--muted); }
.hp-stat-val { font-size: 0.88rem; font-weight: 600; color: var(--white); }
.hp-stat-bar-wrap { flex: 1; margin: 0 16px; height: 6px; background: var(--faint); border-radius: 3px; }
.hp-stat-bar { height: 100%; background: var(--orange); border-radius: 3px; }

/* ── CENÍK ───────────────────────────────────────────────── */
.hp-pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
}
.hp-price-card {
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: border-color 0.18s;
  background: var(--bg-card);
}
.hp-price-card:hover { border-color: rgba(245,123,34,0.3); }
.hp-price-card--featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow);
  position: relative;
}
.hp-price-card--featured::before {
  content: 'Nejoblíbenější';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 3px 12px; border-radius: 20px; white-space: nowrap;
  letter-spacing: 0.04em;
}
.hp-price-type { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 16px; }
.hp-price-amount { font-size: 2.6rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 4px; }
.hp-price-amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.hp-price-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; }
.hp-price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.hp-price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.hp-price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.hp-price-features li.dim { opacity: 0.45; }
.hp-price-features li.dim::before { content: '–'; color: var(--muted); }

.btn-orange {
  display: block; text-align: center;
  background: var(--orange); color: #fff;
  padding: 12px; border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 700;
  transition: background 0.15s;
}
.btn-orange:hover { background: var(--orange-d); text-decoration: none; color: #fff; }
.btn-outline {
  display: block; text-align: center;
  border: 1px solid var(--rule); color: var(--muted);
  padding: 12px; border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); color: var(--white); text-decoration: none; }

/* Kalkulačka */
.hp-calc {
  background: var(--bg-dark);
  border-radius: var(--radius-lg); border: 1px solid var(--rule);
  padding: 32px; margin-top: 32px;
}
.hp-calc h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.hp-calc-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hp-calc label { font-size: 0.88rem; color: var(--muted); }
.hp-calc-input-wrap { display: flex; align-items: center; gap: 8px; }
.hp-calc input[type=number] {
  width: 90px; padding: 10px 12px;
  background: var(--faint); border: 1px solid var(--rule);
  border-radius: var(--radius); color: var(--white);
  font-size: 1.1rem; font-weight: 700;
  text-align: center; font-family: inherit; outline: none;
}
.hp-calc input[type=number]:focus { border-color: var(--orange); }
.hp-calc-equals { font-size: 1.2rem; color: var(--muted); }
.hp-calc-result { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hp-calc-sub { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* ── FAQ ────────────────────────────────────────────────── */
.hp-faq { max-width: 720px; }
details {
  border-bottom: 1px solid var(--rule);
}
details:first-of-type { border-top: 1px solid var(--rule); }
summary {
  padding: 20px 0;
  font-size: 0.95rem; font-weight: 600; color: var(--white);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--muted); margin-left: 16px; flex-shrink: 0; }
details[open] summary::after { content: '−'; }
details > div { padding: 0 0 20px; font-size: 0.88rem; color: var(--muted); line-height: 1.7; max-width: 60ch; }

/* ── CTA BANNER ─────────────────────────────────────────── */
.hp-cta-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a3840 100%);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 56px 48px; text-align: center;
  margin: 72px 0;
}
.hp-cta-banner h2 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.hp-cta-banner p { font-size: 1rem; color: var(--muted); margin-bottom: 28px; }

/* ── FOOTER ─────────────────────────────────────────────── */
.hp-footer {
  border-top: 1px solid var(--rule); padding: 32px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.hp-footer__copy { font-size: 0.8rem; color: var(--muted); }
.hp-footer__links { display: flex; gap: 20px; list-style: none; }
.hp-footer__links a { font-size: 0.8rem; color: var(--muted); transition: color 0.15s; }
.hp-footer__links a:hover { color: var(--white); text-decoration: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .hp-hero h1 { font-size: 2.2rem; }
  .hp-hero { padding: 56px 0 48px; }
  .hp-numbers-inner { grid-template-columns: 1fr; }
  .hp-num-item { border-right: 0; border-bottom: 1px solid var(--rule); }
  .hp-num-item:last-child { border-bottom: 0; }
  .hp-steps { grid-template-columns: 1fr; }
  .hp-step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .hp-step:last-child { border-bottom: 0; }
  .hp-why { grid-template-columns: 1fr; }
  .hp-pricing-grid { grid-template-columns: 1fr; }
  .hp-cta-banner { padding: 40px 24px; }
  .hp-nav__links { display: none; }
  .hp-footer { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hp-hero h1 { font-size: 1.9rem; }
  .hp-hero__actions { flex-direction: column; }
  .hp-hero__actions a { width: 100%; justify-content: center; }
  .hp-courses { grid-template-columns: 1fr; }
  .hp-calc-row { flex-direction: column; align-items: flex-start; }
  .wrap, .wrap-sm { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
