:root {
  /* Blogic brand paleta (odvozeno z blogic.cz) */
  --orange: #FE5000;      /* signature akcent + CTA */
  --orange-2: #ff8044;
  --aubergine: #2A013D;   /* tmavý základ / sekce */
  --aubergine-2: #1B102D; /* text, near-black */
  --purple: #503088;      /* sekundární */
  --purple-2: #9400F2;    /* vivid */
  --lavender: #BAA9D7;    /* soft akcent */
  --lavender-soft: #EEE9F6;
  --ink: #1B102D;
  --muted: #6b6577;
  --line: #ece8f1;
  --card: #ffffff;
  --bg: #ffffff;

  --grad-orange: linear-gradient(135deg, #FE5000 0%, #ff8044 100%);
  --grad-aubergine: linear-gradient(160deg, #2A013D 0%, #1B102D 100%);
  --grad-purple: linear-gradient(135deg, #503088 0%, #9400F2 100%);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px 0 rgb(27 16 45 / .05), 0 6px 20px -16px rgb(27 16 45 / .3);
  --shadow-elevated: 0 20px 45px -22px rgb(27 16 45 / .35);
  --maxw: 900px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header / Footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  max-width: 1240px; margin: 0 auto; width: 100%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.header-tag {
  font-size: .78rem; font-weight: 600; color: var(--purple);
  background: var(--lavender-soft); border: 1px solid #e2d9ef;
  padding: .35rem .85rem; border-radius: 999px;
}
.site-footer {
  margin-top: auto;
  background: var(--grad-aubergine); color: #fff;
  display: flex; gap: .6rem; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 2.5rem 1rem; font-size: .85rem;
}
.site-footer a { color: var(--lavender); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .dot { opacity: .4; }

main { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  border: 0; border-radius: 999px; padding: .85rem 1.7rem;
  transition: transform .12s ease, box-shadow .12s ease, background .12s, opacity .12s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-orange); color: #fff; box-shadow: 0 12px 26px -10px rgba(254,80,0,.55); }
.btn-primary:hover { box-shadow: 0 16px 34px -10px rgba(254,80,0,.7); }
.btn-ghost { background: #fff; color: var(--aubergine); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }

/* ---------- Intro ---------- */
.hero { text-align: center; padding: clamp(2rem, 7vw, 4.5rem) 0 1rem; }
.hero .eyebrow, .eyebrow {
  display: inline-block; font-weight: 600; font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange);
  background: #fff5f0; border: 1px solid #ffd9c4; padding: .35rem .9rem; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4rem); line-height: 1.02; margin: 1.3rem 0 .7rem;
  letter-spacing: -.03em; font-weight: 700;
}
.hero h1 .grad { color: var(--orange); }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }
.hero .meta { color: var(--muted); font-size: .9rem; margin-top: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 2.8rem 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-card); text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.card .icn { color: var(--orange); margin-bottom: 1rem; line-height: 0; }
.card .icn svg { width: 46px; height: 46px; display: block; }
.card h3 { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

.domains-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; box-shadow: var(--shadow-card); margin: 2rem 0; }
.domains-list h3 { margin: 0 0 1rem; font-weight: 600; }
.domain-row { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.domain-row:last-child { border-bottom: 0; }
.domain-row .name { font-weight: 500; }
.domain-row .w { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--orange); background: #fff5f0; padding: .12rem .6rem; border-radius: 999px; font-size: .85rem; }

/* ---------- Test ---------- */
.progress-wrap { position: sticky; top: 58px; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); padding: 1rem 0 .85rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.progress-head .step-name { font-weight: 700; font-size: 1.05rem; }
.progress-head .count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.progress-bar { height: 8px; background: var(--lavender-soft); border-radius: 999px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--grad-orange); border-radius: 999px; transition: width .3s ease; }
.step-dots { display: flex; gap: .35rem; margin-top: .7rem; flex-wrap: wrap; }
.step-dots .d { flex: 1; height: 5px; min-width: 14px; border-radius: 999px; background: #e3dbec; }
.step-dots .d.done { background: var(--purple); }
.step-dots .d.active { background: var(--orange); }

.test-intro { color: var(--muted); font-size: .95rem; margin: .3rem 0 1.5rem; }
.test-intro p { margin: 0; }

.q-group { margin-bottom: 1.8rem; }
.q-group-head {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.02rem; color: var(--aubergine);
  margin: 0 0 .7rem; padding-bottom: .5rem; border-bottom: 2px solid var(--lavender-soft);
}
.q-group-head::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad-orange); }

.question {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin-bottom: .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.question:hover { border-color: #ded5ec; box-shadow: var(--shadow-card); }
.question.missing { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(254,80,0,.12); }
.question .q-id {
  display: inline-block; font-size: .68rem; font-weight: 700; color: var(--orange);
  letter-spacing: .06em; text-transform: uppercase;
  background: #fff5f0; padding: .18rem .55rem; border-radius: 6px;
}
.question .q-text { font-weight: 600; margin: .25rem 0 1rem; font-size: 1.05rem; }
.options { display: grid; gap: .5rem; }
.opt {
  display: flex; align-items: center; gap: .7rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem;
  transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--lavender); background: #faf8fd; }
.opt input { display: none; }
.opt .bullet { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cdc3da; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #fff; }
.opt .txt { font-size: .95rem; }
.opt.selected { border-color: var(--orange); background: #fff5f0; }
.opt.selected .bullet { background: var(--orange); border-color: var(--orange); }
.opt.selected .lvl { color: var(--orange); }

.q-ask { margin-top: .9rem; font-size: .82rem; color: var(--muted); }
.q-ask b { color: var(--ink); font-weight: 600; }

.test-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 1rem; }
.unanswered-note { text-align: center; color: var(--orange); font-size: .85rem; margin-bottom: .5rem; min-height: 1.2em; font-weight: 500; }

/* ---------- Results ---------- */
.result-hero { text-align: center; padding: 2rem 0 1rem; }
.gauge { position: relative; width: 220px; height: 220px; margin: 1.2rem auto; }
.gauge svg { transform: rotate(-90deg); }
.gauge .score { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .score .num { font-size: 3.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.gauge .score .of { color: var(--muted); font-size: .85rem; }
.level-badge { display: inline-block; font-weight: 700; padding: .55rem 1.3rem; border-radius: 999px; color: #fff; font-size: 1.1rem; margin-top: .5rem; }
.level-desc { color: var(--muted); max-width: 580px; margin: .9rem auto 0; }

.section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; box-shadow: var(--shadow-card); margin: 1.5rem 0; }
.section h2 { margin: 0 0 .3rem; font-size: 1.3rem; font-weight: 600; }
.section .sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.2rem; }

.bar-row { margin-bottom: 1rem; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .35rem; }
.bar-head .nm { font-weight: 600; font-size: .95rem; }
.bar-head .vals { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); }
.bar-head .vals b { color: var(--ink); font-size: 1rem; }
.bar-track { height: 12px; background: var(--lavender-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.bar-weight { font-size: .72rem; color: var(--muted); margin-left: .4rem; font-weight: 400; }

.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sw-box { border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; border: 1px solid var(--line); }
.sw-box.strong { background: linear-gradient(180deg,#f3eefa,#fff); border-color: #e2d9ef; }
.sw-box.weak { background: linear-gradient(180deg,#fff5f0,#fff); border-color: #ffddc9; }
.sw-box h4 { margin: 0 0 .7rem; font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.sw-box ul { margin: 0; padding-left: 1.1rem; }
.sw-box li { margin-bottom: .35rem; font-size: .92rem; }
.sw-box li .pct { color: var(--muted); font-variant-numeric: tabular-nums; }

.steps-list { display: grid; gap: .8rem; }
.step-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fdfcff; }
.step-item .n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-orange); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.step-item .body { font-size: .93rem; }
.step-item .body b { display: block; margin-bottom: .15rem; }
.step-item .body .who { color: var(--muted); font-size: .82rem; margin-top: .25rem; }

.maxed-note { text-align: center; padding: 1.5rem 1.2rem; border: 1px dashed #ffd9c4; background: #fff5f0; border-radius: var(--radius-sm); }
.maxed-note .maxed-icon { font-size: 2rem; line-height: 1; margin-bottom: .5rem; }
.maxed-note h3 { margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 600; color: var(--aubergine); }
.maxed-note p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: .95rem; }
.maxed-note b { color: var(--aubergine); }

.result-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 1rem; }

.cta-band { text-align: center; background: var(--grad-aubergine); color: #fff; border-radius: var(--radius); padding: 2.4rem 1.5rem; margin: 1.5rem 0; }
.cta-band h2 { margin: 0 0 .5rem; color: #fff; font-weight: 600; }
.cta-band p { margin: 0 0 1.3rem; opacity: .85; max-width: 520px; margin-inline: auto; }

/* ---------- Kontaktní formulář ---------- */
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin: 1.5rem 0 .5rem; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.back-link:hover { color: var(--orange); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.8rem); box-shadow: var(--shadow-card);
  max-width: 780px; margin: .5rem auto 2rem;
}
.form-head { text-align: center; margin-bottom: 1.8rem; }
.form-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; margin: .9rem 0 .5rem; }
.form-head p { color: var(--muted); margin: 0; font-size: .98rem; }

.field { margin-bottom: 1.05rem; }
.field-label { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--aubergine); }
.field-label svg { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card select {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfafc; transition: border-color .12s, box-shadow .12s, background .12s;
}
.form-card input::placeholder { color: #a8a2b5; }
.form-card input:focus, .form-card select:focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 3px rgba(254,80,0,.12);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.form-card select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer; }
.form-card select:invalid { color: #a8a2b5; }

.req-note { font-size: .82rem; color: var(--muted); margin: -.4rem 0 1.05rem; }
.req-note b { color: var(--aubergine); }

.consent { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; margin: .4rem 0 1.2rem; font-size: .88rem; color: var(--ink); }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent .box {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #cdc3da; display: grid; place-items: center; margin-top: .05rem;
  transition: border-color .12s, background .12s;
}
.consent .box::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .12s; }
.consent input:checked + .box { background: var(--orange); border-color: var(--orange); }
.consent input:checked + .box::after { transform: scale(1); }
.consent input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(254,80,0,.2); }
.consent-txt { line-height: 1.45; }

.form-error { color: #d93636; font-size: .87rem; margin-bottom: .9rem; font-weight: 500; }
.btn-block { width: 100%; justify-content: center; }

.thanks { text-align: center; }
.thanks-icon { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; background: #fff5f0; color: var(--orange); display: grid; place-items: center; }
.thanks-icon svg { width: 32px; height: 32px; }
.thanks h1 { font-size: 1.8rem; font-weight: 700; margin: 0 0 .6rem; }
.thanks p { color: var(--muted); margin: 0 auto 1.6rem; max-width: 420px; }
.thanks-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Stavy embed formuláře */
.form-note { background: #fff5f0; border: 1px solid #ffddc9; border-radius: var(--radius-sm); padding: 1rem 1.1rem; color: var(--aubergine); font-size: .9rem; line-height: 1.55; }
.form-note code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: .05rem .35rem; font-size: .85em; }
.form-note a { color: var(--orange); }
.form-loading { color: var(--muted); text-align: center; padding: 1.5rem; font-size: .95rem; }

/* HubSpot form skin — sladění nativního formuláře s brandem */
#hs-form-target, #hs-form-target .hs-form-frame, #hs-form-target form { width: 100%; max-width: 100%; }
#hs-form-target .hs-form-field { margin-bottom: 1.05rem; }
#hs-form-target label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--aubergine); }
#hs-form-target .inputs-list { list-style: none; padding: 0; margin: 0; }
#hs-form-target input[type=text], #hs-form-target input[type=email],
#hs-form-target input[type=tel], #hs-form-target input[type=number],
#hs-form-target textarea, #hs-form-target select {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfafc; transition: border-color .12s, box-shadow .12s, background .12s;
}
#hs-form-target input:focus, #hs-form-target textarea:focus, #hs-form-target select:focus {
  outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px rgba(254,80,0,.12);
}
#hs-form-target .hs-form-booleancheckbox label,
#hs-form-target .legal-consent-container label {
  display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; font-size: .86rem; color: var(--ink); line-height: 1.45;
}
#hs-form-target .hs-form-booleancheckbox input,
#hs-form-target .legal-consent-container input[type=checkbox] { margin-top: .2rem; accent-color: var(--orange); width: 18px; height: 18px; flex: 0 0 auto; }
#hs-form-target .legal-consent-container { margin: .4rem 0 1rem; font-size: .85rem; color: var(--muted); }
#hs-form-target .hs-error-msgs { list-style: none; padding: 0; margin: .3rem 0 0; }
#hs-form-target .hs-error-msgs label, #hs-form-target label.hs-error-msg { color: #d93636; font-weight: 500; font-size: .82rem; margin: 0; }
#hs-form-target .hs_error_rollup { color: #d93636; font-size: .85rem; margin-top: .6rem; }
#hs-form-target .hs-button, #hs-form-target input[type=submit] {
  width: 100%; font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer;
  border: 0; border-radius: 999px; padding: 1rem 2rem; color: #fff; margin-top: .3rem;
  background: var(--grad-orange); box-shadow: 0 12px 26px -10px rgba(254,80,0,.55);
  transition: box-shadow .12s, transform .12s;
}
#hs-form-target .hs-button:hover { box-shadow: 0 16px 34px -10px rgba(254,80,0,.7); }
#hs-form-target .hs-button:active { transform: translateY(1px); }

@media (max-width: 620px) {
  .sw-grid { grid-template-columns: 1fr; }
  .test-nav .btn { flex: 1; justify-content: center; }
  .progress-wrap { top: 54px; }
}
/* Tiskové prvky (jen v PDF/tisku) */
.print-only { display: none; }
.print-brand { text-align: center; margin-bottom: 1rem; }
.print-brand .print-logo { height: 34px; width: auto; }
.print-brand .print-title { display: block; margin-top: .4rem; font-weight: 600; color: var(--muted); font-size: .9rem; letter-spacing: .02em; }
.print-contact { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--line); }
.print-contact .print-logo { height: 30px; width: auto; }
.print-contact-txt { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.print-contact-txt b { color: var(--aubergine); }

@media print {
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .site-footer, .result-actions, .cta-band, .progress-wrap, .back-link { display: none !important; }
  .print-only { display: flex; }
  .print-brand { display: block; }
  .section, .form-card { box-shadow: none; break-inside: avoid; }
}
