/* ===== Přijímačky v kapse – styly (čisté CSS, bez frameworku) ===== */
:root {
  --primary: #2f6b5e;
  --primary-dark: #224e44;
  --primary-light: #e3eee9;
  --accent: #a47864;
  --accent-light: #fbe6da;
  --peach: #ffbe98;
  --peri: #6667ab;
  --peri-dark: #4e4f8c;
  --peri-light: #e9e9f4;
  --danger: #b8473c;
  --danger-light: #f6e1dc;
  --text: #1f2a30;
  --muted: #5f6a6c;
  --bg: #faf7f2;
  --surface: #ffffff;
  --border: #e7e0d5;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(31, 42, 48, 0.08);
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary-dark); }

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

/* ----- Hlavička a navigace ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand-logo { width: 38px; height: 38px; }
.brand span { color: var(--primary); }

.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 10px;
  text-decoration: none; color: var(--text); font-weight: 600;
}
.nav-links a:hover { background: var(--primary-light); }
.nav-links a.active { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 3px; background: var(--text);
  border-radius: 3px; position: relative; margin: 0 auto; transition: 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ----- Tlačítka ----- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 14px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 0 var(--primary-dark); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary-dark); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ----- Hero ----- */
.hero { padding: 70px 0 60px; background: linear-gradient(160deg, var(--primary-light) 0%, var(--bg) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--accent-light); color: #7a5240;
  padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Telefon v hero */
.phone {
  width: 270px; margin: 0 auto; background: #1d2a33; border-radius: 38px; padding: 14px;
  box-shadow: 0 20px 50px rgba(31, 42, 48, 0.25);
}
.phone-screen { background: #fff; border-radius: 28px; padding: 20px 16px; min-height: 440px; }
.phone-top { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; }
.streak { color: var(--accent); }
.progress { height: 10px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.progress > div { height: 100%; background: var(--primary); border-radius: 99px; transition: width 0.4s; }
.phone-q { font-weight: 700; margin-bottom: 14px; font-size: 0.95rem; }
.phone-opt {
  border: 2px solid var(--border); border-radius: 12px; padding: 9px 12px;
  margin-bottom: 8px; font-size: 0.9rem;
}
.phone-opt.good { border-color: var(--primary); background: var(--primary-light); }

/* ----- Sekce ----- */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 8px; }
.section-title p { color: var(--muted); max-width: 38em; margin: 0 auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: var(--primary-light); margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

/* Statistiky */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 24px 12px; border: 1px solid var(--border); }
.stat strong { display: block; font-size: 2rem; color: var(--primary); }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* Kroky */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.step h3 { margin: 8px 0 6px; }
.step p { color: var(--muted); }

/* Odpočet */
.countdown-box {
  background: var(--text); color: #fff; border-radius: 24px; padding: 40px 28px; text-align: center;
}
.countdown-box h2 { margin-bottom: 6px; }
.countdown-box p { color: #b9c7cf; }
.countdown { display: flex; justify-content: center; gap: 14px; margin: 26px 0; flex-wrap: wrap; }
.cd-unit { background: rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 16px 10px; min-width: 96px; }
.cd-unit strong { display: block; font-size: 2.4rem; line-height: 1; color: var(--peach); font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: 0.85rem; color: #b9c7cf; }
.cd-settings { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-settings label { font-weight: 600; }
.cd-settings input {
  padding: 8px 12px; border-radius: 10px; border: 0; font-family: inherit; font-size: 1rem;
}
.cd-tip { margin-top: 16px; font-weight: 600; color: #fff !important; }

/* CTA */
.cta { text-align: center; background: var(--primary); color: #fff; border-radius: 24px; padding: 48px 24px; }
.cta h2 { margin-bottom: 10px; }
.cta p { margin-bottom: 24px; opacity: 0.9; }
.cta .btn { background: #fff; color: var(--primary-dark); box-shadow: 0 4px 0 rgba(0,0,0,0.15); }

/* ----- Podstránky ----- */
.page-head { padding: 50px 0 30px; text-align: center; background: linear-gradient(180deg, var(--primary-light), var(--bg)); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 36em; margin: 0 auto; }

/* Kvíz */
.quiz-wrap { max-width: 720px; margin: 0 auto; }
.quiz-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pill { background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.pill.hearts { color: var(--danger); }
.pill.fire { color: var(--accent); }
.subject-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 2px solid var(--border); background: #fff;
  font-weight: 700; cursor: pointer; font-family: inherit; font-size: 0.95rem; color: var(--text);
}
.chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

.quiz-card { background: var(--surface); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.q-subject { display: inline-block; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-dark); margin-bottom: 8px; }
.q-text { font-size: 1.25rem; font-weight: 700; margin-bottom: 22px; }
.options { display: grid; gap: 12px; }
.option {
  text-align: left; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--border);
  background: #fff; font-size: 1rem; cursor: pointer; font-family: inherit; color: var(--text);
  box-shadow: 0 3px 0 var(--border); transition: background 0.15s, border-color 0.15s;
}
.option:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-light); }
.option .key { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--border); margin-right: 10px; font-weight: 800; font-size: 0.85rem; }
.option.correct { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 3px 0 var(--primary); }
.option.wrong { border-color: var(--danger); background: var(--danger-light); box-shadow: 0 3px 0 var(--danger); }
.option:disabled { cursor: default; }

.feedback { margin-top: 20px; padding: 18px; border-radius: 14px; display: none; }
.feedback.show { display: block; }
.feedback.good { background: var(--primary-light); }
.feedback.bad { background: var(--danger-light); }
.feedback h4 { margin-bottom: 4px; }
.quiz-actions { margin-top: 20px; text-align: right; }

.result { text-align: center; }
.result .big { font-size: 3rem; font-weight: 800; color: var(--primary); }
.result-list { text-align: left; margin: 20px 0; display: grid; gap: 8px; }
.result-list li { list-style: none; padding: 10px 14px; border-radius: 10px; background: var(--danger-light); }
.note { font-size: 0.9rem; color: var(--muted); text-align: center; margin-top: 18px; }

/* Ceník */
.billing-toggle { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 34px; font-weight: 700; }
.switch { position: relative; width: 58px; height: 32px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--border); border-radius: 99px; cursor: pointer; transition: 0.2s; }
.slider::before { content: ""; position: absolute; width: 24px; height: 24px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(26px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--accent); }
.save-badge { background: var(--accent-light); color: #7a5240; border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--surface); border: 2px solid var(--border); border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--primary); box-shadow: 0 12px 34px rgba(47, 107, 94, 0.18); position: relative; }
.plan.featured::before {
  content: "Nejoblíbenější"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.8rem; font-weight: 800; padding: 4px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.3rem; }
.price { font-size: 2.4rem; font-weight: 800; margin: 12px 0 2px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-note { color: var(--muted); font-size: 0.9rem; min-height: 1.5em; margin-bottom: 18px; }
.plan ul { list-style: none; margin-bottom: 26px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; color: var(--muted); }
.plan .btn { text-align: center; }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare th { background: var(--primary-light); }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Formulář */
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.form-card { background: var(--surface); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--text);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fffafa; }
.field.valid input, .field.valid select, .field.valid textarea { border-color: var(--primary); }
.error { color: var(--danger); font-size: 0.88rem; font-weight: 600; min-height: 1.2em; margin-top: 4px; }
.counter { font-size: 0.85rem; color: var(--muted); text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: auto; margin-top: 5px; }
.success {
  display: none; background: var(--primary-light); border-radius: 14px; padding: 20px; margin-top: 10px;
}
.success.show { display: block; }
.info-list { list-style: none; display: grid; gap: 14px; }
.info-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.info-list strong { display: block; }

/* ----- Patička ----- */
.site-footer { background: var(--text); color: #b9c7cf; padding: 40px 0 24px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; display: grid; gap: 6px; }
.copyright { text-align: center; font-size: 0.85rem; margin-top: 30px; border-top: 1px solid #33434d; padding-top: 18px; }

/* ----- Responzivita ----- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .cards, .steps, .pricing { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 10px 20px 18px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; }
  section { padding: 50px 0; }
  .cards, .steps, .pricing { grid-template-columns: 1fr; }
  .steps { gap: 34px; }
  .cd-unit { min-width: 72px; }
  .cd-unit strong { font-size: 1.9rem; }
  .quiz-card, .form-card { padding: 22px 18px; }
  .q-text { font-size: 1.1rem; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .phone { width: 240px; }
}

/* ===== Rozcestník „V kapse“ a stránka Medicína v kapse ===== */
.dev-bar {
  background: var(--accent-light); color: #7a5240; text-align: center;
  font-weight: 600; font-size: 0.92rem; padding: 8px 16px;
}
.nav-links a.back-hub { color: var(--muted); }

.hub-hero { padding: 80px 0 40px; text-align: center; background: linear-gradient(160deg, var(--primary-light) 0%, var(--bg) 70%); }
.hub-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin-bottom: 14px; }
.hub-hero h1 em { font-style: normal; color: var(--primary); }
.hub-hero p { color: var(--muted); font-size: 1.15rem; max-width: 32em; margin: 0 auto; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 920px; margin: 0 auto; }
.service {
  --svc: var(--primary); --svc-light: var(--primary-light); --svc-dark: var(--primary-dark);
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 2px solid var(--border); border-radius: 24px;
  padding: 34px 28px 28px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.service:hover, .service:focus-visible { transform: translateY(-4px); border-color: var(--svc); box-shadow: 0 16px 40px rgba(31, 42, 48, 0.14); outline: none; }
.service.med { --svc: var(--peri); --svc-light: var(--peri-light); --svc-dark: var(--peri-dark); }
.service-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--svc-light); display: grid; place-items: center; font-size: 2rem; margin-bottom: 18px; }
.service h2 { font-size: 1.6rem; margin-bottom: 4px; }
.service h2 span { color: var(--svc); }
.service .for { font-weight: 700; color: var(--svc-dark); margin-bottom: 12px; }
.service p { color: var(--muted); margin-bottom: 16px; }
.service ul { list-style: none; margin-bottom: 24px; flex: 1; }
.service li { padding: 4px 0 4px 26px; position: relative; }
.service li::before { content: "✓"; position: absolute; left: 0; color: var(--svc); font-weight: 800; }
.service .go { font-weight: 800; color: var(--svc-dark); }
.badge-dev {
  position: absolute; top: 18px; right: 18px; background: var(--accent-light); color: #7a5240;
  font-size: 0.8rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
}

.med-theme { --primary: var(--peri); --primary-dark: var(--peri-dark); --primary-light: var(--peri-light); }
.roadmap { list-style: none; max-width: 640px; margin: 0 auto; border-left: 3px solid var(--primary-light); padding-left: 26px; }
.roadmap li { position: relative; margin-bottom: 26px; }
.roadmap li::before {
  content: ""; position: absolute; left: -36px; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
}
.roadmap li.done::before { background: var(--primary); }
.roadmap strong { display: block; }
.roadmap span { color: var(--muted); }

@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .hub-hero { padding: 56px 0 30px; }
}

/* ===== Odměny: body na slevu do Medicíny v kapse ===== */
.rewards {
  max-width: 920px; margin: 34px auto 0; background: var(--surface);
  border: 2px dashed var(--peri); border-radius: 24px; padding: 30px 28px;
}
.rewards h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 6px; text-align: center; }
.rewards > p { color: var(--muted); text-align: center; max-width: 36em; margin: 0 auto 22px; }
.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reward { display: flex; gap: 14px; align-items: flex-start; background: #f3f3f9; border-radius: 16px; padding: 18px; }
.reward-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.reward h3 { font-size: 1.05rem; margin-bottom: 4px; }
.reward p { color: var(--muted); font-size: 0.95rem; }
.rewards .small { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 16px; }
@media (max-width: 720px) {
  .reward-grid { grid-template-columns: 1fr; }
  .rewards { padding: 24px 18px; }
}

/* ===== Jednoduché čárové ikony (vkládá je js/main.js) ===== */
.ico { display: inline-flex; vertical-align: -0.15em; }
.ico svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card .icon, .service-icon, .reward-icon { color: var(--primary); }
.card .icon .ico svg { width: 26px; height: 26px; stroke-width: 1.8; }
.service-icon { color: var(--svc); }
.service-icon .ico svg { width: 30px; height: 30px; stroke-width: 1.8; }
.reward-icon { color: var(--peri); }
.reward-icon .ico svg { width: 22px; height: 22px; }
.pill.hearts .ico svg { fill: currentColor; }
.pill .ico svg { stroke-width: 2.2; }
.info-list strong .ico { color: var(--primary); margin-right: 4px; }
.streak .ico svg { fill: currentColor; stroke-width: 1.5; }
