/* ==========================================================================
   KIWI Reality Invest — designový systém
   Podle kapitoly 4 zadání. Mobile-first.

   Pořadí: proměnné → reset → typografie → layout → komponenty →
           sekce → administrace → přístupnost
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Proměnné — barevná paleta z kap. 4.1
   -------------------------------------------------------------------------- */
:root {
  --navy:        #0E2B3D;   /* primární, barva jistoty */
  --navy-2:      #17405A;   /* doplňková modrá */
  --gold:        #C9A227;   /* akcent, prémiovost */
  --gold-dark:   #B8931F;   /* hover, ztmavení o 8 % */
  --gold-deep:   #8A6F13;   /* zlatá na bílé pro běžný text — kontrast 4.5:1 */
  --green:       #16795C;   /* sekce prodávajícího, potvrzení */
  --green-dark:  #126349;
  --red:         #C0392B;   /* chyby, neúspěšná platba */
  --red-soft:    #FDECEA;
  --grey-text:   #6B7A88;   /* doprovodné texty */
  --bg-light:    #F5F8FA;   /* střídání sekcí */
  --white:       #FFFFFF;
  --line:        #DFE7ED;

  --radius:      10px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 2px rgba(14, 43, 61, .06), 0 2px 8px rgba(14, 43, 61, .06);
  --shadow-md:   0 4px 12px rgba(14, 43, 61, .10);
  --shadow-lg:   0 12px 32px rgba(14, 43, 61, .16);

  --container:   1280px;    /* kap. 13.2 — obsah omezen a vycentrován */
  --gutter:      20px;

  /* Písma. Soubory patří do /assets/fonts a načítají se lokálně (kap. 13.1),
     dokud nejsou nasazené, použije se systémový fallback. */
  --font-head: "Poppins", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;              /* mobil */
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  font-variant-numeric: tabular-nums;   /* ceny ve výpisech neposkakují */
}

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   3. Typografie — velikostní stupnice z kap. 4.2
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.muted   { color: var(--grey-text); font-size: 14px; }
.small   { font-size: 13px; }
code     { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em;
           background: var(--bg-light); padding: 2px 6px; border-radius: 4px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 8px;
}
.eyebrow--center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

.section { padding: 48px 0; }
.section--alt { background: var(--bg-light); }
.section__h { text-align: center; margin-bottom: 8px; }
.section__lead {
  text-align: center; color: var(--grey-text);
  max-width: 62ch; margin: 0 auto 28px;   /* odstavec max. 70 znaků (kap. 4.2) */
}

.grid-2 { display: grid; gap: 0 16px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }
.inline-form { display: inline; }

.page__h { margin-bottom: 4px; }
.page__sub { color: var(--grey-text); margin-bottom: 24px; }

.prose { max-width: 62ch; }

/* --------------------------------------------------------------------------
   5. Hlavička a navigace
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--white);
  transition: padding .2s ease, box-shadow .2s ease;
}
.hdr.is-scrolled { box-shadow: var(--shadow-md); }

.hdr__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.hdr.is-scrolled .hdr__in { min-height: 56px; }

.logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--white); }
.logo__mark { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.logo__sub  { font-size: 10px; letter-spacing: .18em; color: var(--gold); }

.nav { display: none; margin-inline: auto; gap: 4px; }
.nav__a {
  color: rgba(255,255,255,.86); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav__a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav__a.is-active { color: var(--gold); }

.hdr__actions { display: none; align-items: center; gap: 8px; margin-left: auto; }

.burger {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* rozbalené mobilní menu */
.nav.is-open {
  display: flex; flex-direction: column; gap: 2px;
  position: absolute; inset: 64px 0 auto; padding: 12px var(--gutter) 20px;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.1);
}
.nav.is-open .nav__a { padding: 12px; font-size: 16px; }

/* --------------------------------------------------------------------------
   6. Tlačítka — kap. 4.3
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 52px;                        /* mobil 52 px, desktop 48 px */
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1;
  text-decoration: none; text-align: center;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-dark); color: var(--navy); }

.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); color: var(--white); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: #EDF3F7; color: var(--navy); }

.btn--outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--outline-dark { color: var(--navy); }
.btn--outline-dark:hover { background: rgba(14,43,61,.06); color: var(--navy); }

.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.2); color: var(--white); }

.btn--link {
  background: none; color: inherit; min-height: 44px; padding: 0 10px;
  text-decoration: underline; font-weight: 600;
}

.btn--sm  { --btn-h: 40px; padding: 0 14px; font-size: 14px; }
.btn--lg  { --btn-h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   7. Formulářová pole — kap. 4.3
   -------------------------------------------------------------------------- */
.form { display: block; }
.field { margin-bottom: 18px; }

.field__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field__req   { color: var(--red); }
.field__hint  { color: var(--grey-text); font-size: 13px; margin: 0 0 6px; }

.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover { border-color: #C3D0DA; }
.input:focus {
  outline: none; border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(23, 64, 90, .15);
}
.input--area { min-height: 140px; resize: vertical; line-height: 1.6; }
.input--select { appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7A88' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

/* chyba je vždy i slovní, nikdy jen červený rámeček */
.field--error .input { border-color: var(--red); background: var(--red-soft); }
.field__error {
  display: flex; gap: 6px; margin: 6px 0 0;
  color: var(--red); font-size: 13px; font-weight: 600;
}
.field__error::before { content: "!"; font-weight: 800; }

.checks { display: grid; gap: 12px; margin: 20px 0 24px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-2); flex: none; }

/* honeypot — neviditelná ochrana proti robotům */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Karty, štítky, upozornění
   -------------------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.card--form { margin-bottom: 24px; }
.card--center { text-align: center; }
.card__h  { font-size: 24px; margin-bottom: 6px; }
.card__h2 { font-size: 18px; margin: 24px 0 12px; }
.card__h2:first-child { margin-top: 0; }
.card__sub { color: var(--grey-text); margin-bottom: 20px; }
.card__links {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--grey-text);
}

.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 12px;
  border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px;
}
.chip--gold  { background: rgba(201,162,39,.16); color: var(--gold-deep); }
.chip--green { background: rgba(22,121,92,.14); color: var(--green); }
.chip--blue  { background: rgba(23,64,90,.12); color: var(--navy-2); }
.chip--red   { background: var(--red-soft); color: var(--red); }

.notice { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.notice--gold { background: rgba(201,162,39,.12); border-left: 4px solid var(--gold); }
.notice--blue { background: rgba(23,64,90,.08); border-left: 4px solid var(--navy-2); }
.notice--green{ background: rgba(22,121,92,.10); border-left: 4px solid var(--green); }

/* pruh stavu členství — kap. 5.4 */
.statusbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px;
  font-size: 14px; font-weight: 600;
}
.statusbar p { margin: 0; flex: 1 1 260px; }
.statusbar--ok   { background: rgba(22,121,92,.12); color: var(--green); }
.statusbar--gold { background: rgba(201,162,39,.16); color: var(--gold-deep); }
.statusbar--err  { background: var(--red-soft); color: var(--red); }
.statusbar--warn { background: var(--bg-light); color: var(--navy); }

/* flash zprávy */
.flash-stack { display: grid; gap: 10px; padding-top: 16px; }
.flash {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius); font-size: 14px;
}
.flash p { margin: 0; flex: 1; }
.flash__icon {
  flex: none; width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-content: center; font-weight: 800; font-size: 13px;
}
.flash__close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; opacity: .6; padding: 0 4px; }
.flash__close:hover { opacity: 1; }
.flash--success { background: rgba(22,121,92,.12); color: var(--green); }
.flash--success .flash__icon { background: var(--green); color: var(--white); }
.flash--error   { background: var(--red-soft); color: var(--red); }
.flash--error .flash__icon { background: var(--red); color: var(--white); }
.flash--info    { background: rgba(23,64,90,.10); color: var(--navy-2); }
.flash--info .flash__icon { background: var(--navy-2); color: var(--white); }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(201,162,39,.20), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy) 62%);
}
.hero__in { position: relative; padding: 44px 20px 52px; }
.hero__h1 { font-size: 32px; margin-bottom: 14px; }
.hero__p  { color: rgba(255,255,255,.84); max-width: 60ch; margin-bottom: 24px; }
.hero__cta { display: grid; gap: 12px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none;
  margin: 22px 0 0; padding: 0; font-size: 13px; color: rgba(255,255,255,.8);
}
.hero__trust li::before { content: "✓ "; color: var(--gold); font-weight: 800; }

/* světlá varianta pro prodávající — klidnější tón (kap. 5.3) */
.hero--light { background: var(--bg-light); color: var(--navy); }
.hero--light .hero__bg {
  background: radial-gradient(800px 400px at 85% -20%, rgba(22,121,92,.14), transparent 60%);
}
.hero__h1--dark { color: var(--navy); }
.hero__p--dark  { color: var(--grey-text); }
.hero__trust--dark { color: var(--grey-text); }
.hero__trust--dark li::before { color: var(--green); }

.metriccard {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  padding: 20px 24px; box-shadow: var(--shadow-md); margin-top: 28px; text-align: center;
}
.metriccard__l { font-size: 13px; color: var(--grey-text); margin: 0 0 4px; }
.metriccard__n { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--green); margin: 0; }
.metriccard__s { font-size: 13px; color: var(--grey-text); margin: 4px 0 0; }

/* --------------------------------------------------------------------------
   10. Důvěryhodnostní pruh
   -------------------------------------------------------------------------- */
.trustbar { background: var(--navy-2); color: var(--white); }
.trustbar__in {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  padding-block: 26px; text-align: center;
}
.stat__n { display: block; font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--gold); }
.stat__l { font-size: 12px; color: rgba(255,255,255,.78); }

/* --------------------------------------------------------------------------
   11. Rozcestník dvou cest
   -------------------------------------------------------------------------- */
.split { display: grid; gap: 20px; }

.pathcard {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
  border-top: 4px solid var(--gold);
}
.pathcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pathcard--seller { border-top-color: var(--green); }
.pathcard__tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-text); margin: 0 0 6px; }
.pathcard__h { font-size: 22px; margin-bottom: 16px; }

.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--gold-deep); font-weight: 800; flex: none; }
.ticks--green li::before { color: var(--green); }

/* --------------------------------------------------------------------------
   12. Kroky, přínosy, nástroje
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: krok; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.step__n {
  display: grid; place-content: center; width: 36px; height: 36px; margin-bottom: 12px;
  background: var(--gold); color: var(--navy); border-radius: 999px;
  font-family: var(--font-head); font-weight: 800;
}
.step--green .step__n { background: var(--green); color: var(--white); }
.step__h { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--grey-text); font-size: 14px; margin: 0; }

.benefits { display: grid; gap: 16px; }
.benefit {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; border-left: 3px solid var(--gold);
}
.benefits--green .benefit { border-left-color: var(--green); }
.benefit h3 { font-size: 17px; margin-bottom: 6px; }
.benefit p  { color: var(--grey-text); font-size: 14px; margin: 0; }

.toolgrid { display: grid; gap: 16px; }
.tool {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.tool__h { font-size: 18px; margin-bottom: 6px; }
.tool p { color: var(--grey-text); font-size: 14px; }
.tool__more { display: inline-block; margin-top: 10px; color: var(--gold-deep); font-weight: 700; font-size: 14px; }

/* --------------------------------------------------------------------------
   13. Cena, argument, FAQ, callout, CTA
   -------------------------------------------------------------------------- */
.pricecard {
  position: relative; background: var(--white); border: 2px solid var(--gold);
  border-radius: var(--radius-lg); padding: 30px 24px 26px;
  box-shadow: var(--shadow-md); text-align: center; margin-top: 12px;
}
.pricecard__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); margin: 0; }
.pricecard__price { font-family: var(--font-head); font-size: 24px; margin: 8px 0 4px; }
.pricecard__price strong { font-size: 48px; font-weight: 800; }
.pricecard__price span { font-size: 16px; color: var(--grey-text); font-weight: 500; }
.pricecard__sub { color: var(--grey-text); font-size: 14px; margin-bottom: 20px; }
.pricecard .ticks { text-align: left; }
.pricecard__note { font-size: 13px; color: var(--grey-text); margin: 12px 0 0; }

.argument {
  max-width: 60ch; margin: 26px auto 0; text-align: center;
  font-size: 17px; font-style: italic; color: var(--navy-2);
}

.faq { display: grid; gap: 10px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__item summary {
  padding: 16px 46px 16px 18px; font-weight: 700; cursor: pointer; position: relative; list-style: none;
  min-height: 44px; display: flex; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 18px; font-size: 22px; font-weight: 400; color: var(--gold-deep);
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 18px 18px; color: var(--grey-text); font-size: 15px; }

.callout {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); text-align: center; border-top: 4px solid var(--gold);
}
.callout--green { border-top-color: var(--green); }
.callout__h { font-size: 22px; }
.callout p { color: var(--grey-text); margin-bottom: 18px; }

.cta { background: var(--navy); color: var(--white); }
.cta--green { background: var(--green); }
.cta__in { padding: 44px 20px; text-align: center; }
.cta__h { font-size: 26px; margin-bottom: 8px; }
.cta__p { color: rgba(255,255,255,.84); margin-bottom: 22px; }
.cta__btns { display: grid; gap: 12px; }

/* přilepená spodní lišta na mobilu — zobrazí se po odrolování 400 px */
.stickybar {
  position: fixed; inset: auto 0 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.stickybar[hidden] { display: none; }

/* --------------------------------------------------------------------------
   14. Účet, dlaždice, seznamy
   -------------------------------------------------------------------------- */
.authpage { padding: 32px 0 56px; background: var(--bg-light); min-height: 60vh; }

.tilegrid { display: grid; gap: 16px; }
.tile {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.tile h2 { font-size: 18px; margin-bottom: 4px; }
.tile p  { color: var(--grey-text); font-size: 14px; margin: 0; }

.numlist { padding-left: 20px; margin: 0 0 20px; display: grid; gap: 8px; font-size: 15px; }

.qrbox { background: var(--bg-light); border-radius: var(--radius); padding: 20px; text-align: center; margin-bottom: 24px; }
.qrbox__label  { font-size: 13px; color: var(--grey-text); margin-bottom: 8px; }
.qrbox__secret { margin-bottom: 14px; }
.qrbox__secret code { font-size: 16px; letter-spacing: .08em; background: var(--white); }

.errcode { font-family: var(--font-head); font-size: 56px; font-weight: 800; color: var(--gold); margin: 0 0 4px; }

/* --------------------------------------------------------------------------
   15. Patička
   -------------------------------------------------------------------------- */
.ftr { background: var(--navy); color: rgba(255,255,255,.78); padding: 40px 0 24px; font-size: 14px; }
.ftr__grid { display: grid; gap: 28px; }
.ftr__brand .logo { margin-bottom: 12px; }
.ftr__claim { max-width: 42ch; }
.ftr__h { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 12px; }
.ftr__col { display: grid; gap: 8px; align-content: start; }
.ftr__col a { color: rgba(255,255,255,.78); text-decoration: none; min-height: 24px; }
.ftr__col a:hover { color: var(--gold); }
.ftr__link-btn {
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
  color: rgba(255,255,255,.78); text-decoration: underline;
}
.ftr__link-btn:hover { color: var(--gold); }
.ftr__contact { font-style: normal; }
.ftr__legal {
  margin: 28px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: rgba(255,255,255,.6);
}

/* --------------------------------------------------------------------------
   16. Administrace
   -------------------------------------------------------------------------- */
.admin { background: var(--bg-light); }
.ahdr { background: var(--navy); color: var(--white); }
.ahdr__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  max-width: 1440px; margin-inline: auto; padding: 12px 20px;
}
.ahdr__logo { color: var(--white); text-decoration: none; font-size: 15px; }
.ahdr__logo strong { color: var(--gold); }
.ahdr__nav { display: flex; flex-wrap: wrap; gap: 4px; margin-inline: auto; }
.ahdr__nav a { color: rgba(255,255,255,.8); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.ahdr__nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.ahdr__nav a.is-active { background: rgba(255,255,255,.14); color: var(--white); }
.ahdr__user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.7); }

.amain { padding: 24px 0 60px; }
.acontainer { max-width: 1440px; margin-inline: auto; padding-inline: 20px; }

.metricgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.metric {
  display: block; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy-2);
  border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit;
}
.metric--warn { border-left-color: var(--gold); }
.metric--err  { border-left-color: var(--red); }
.metric--ok   { border-left-color: var(--green); }
.metric__n { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; }
.metric__l { font-size: 13px; color: var(--grey-text); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.panel__h { font-size: 18px; }

.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.checklist li { display: flex; gap: 10px; color: var(--grey-text); }
.checklist li::before { content: "○"; flex: none; }
.checklist li.is-done { color: var(--green); font-weight: 600; }
.checklist li.is-done::before { content: "✓"; }

/* --------------------------------------------------------------------------
   17. Přístupnost — kap. 13.3
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   18. Responzivita — kap. 13.2
   -------------------------------------------------------------------------- */

/* Tablet: 768–1023 px — dva sloupce, menu stále sbalené */
@media (min-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  .section { padding: 72px 0; }
  .grid-2  { grid-template-columns: 1fr 1fr; }

  .hero__in { padding: 72px 20px 80px; }
  .hero__h1 { font-size: 44px; }
  .hero__cta { display: flex; flex-wrap: wrap; }
  .hero__cta .btn { flex: 0 1 auto; }

  .trustbar__in { grid-template-columns: repeat(4, 1fr); }
  .stat__n { font-size: 34px; }

  .split      { grid-template-columns: 1fr 1fr; }
  .steps      { grid-template-columns: repeat(2, 1fr); }
  .benefits   { grid-template-columns: repeat(2, 1fr); }
  .toolgrid   { grid-template-columns: repeat(3, 1fr); }
  .tilegrid   { grid-template-columns: repeat(2, 1fr); }
  .cta__btns  { display: flex; justify-content: center; }

  .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; }
}

/* Notebook: 1024 px a výš — plné menu, tři sloupce */
@media (min-width: 1024px) {
  .btn { --btn-h: 48px; }
  .btn--lg { --btn-h: 54px; }

  .nav, .hdr__actions { display: flex; }
  .burger { display: none; }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps--five { grid-template-columns: repeat(5, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .tilegrid { grid-template-columns: repeat(4, 1fr); }

  .hero__in--split {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  }
  .signup { color: var(--navy); }
  .signup__h { font-size: 20px; margin-bottom: 4px; }
  .signup__sub { color: var(--grey-text); font-size: 14px; margin-bottom: 20px; }
  .signup__note { font-size: 13px; color: var(--grey-text); text-align: center; margin: 12px 0 0; }

  .hero--light .hero__in {
    display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center;
  }
  .metriccard { margin-top: 0; }

  /* přilepená lišta je jen pro mobil */
  .stickybar { display: none !important; }
}

/* mimo desktop je hero formulář prostě karta pod textem */
@media (max-width: 1023px) {
  .signup { margin-top: 28px; }
  .signup__h { font-size: 20px; margin-bottom: 4px; }
  .signup__sub { color: var(--grey-text); font-size: 14px; margin-bottom: 20px; }
  .signup__note { font-size: 13px; color: var(--grey-text); text-align: center; margin: 12px 0 0; }
}

/* Velký displej: obsah vycentrovaný, řádky nejsou nečitelně dlouhé */
@media (min-width: 1440px) {
  .hero__in { padding-block: 96px 104px; }
}

@media print {
  .hdr, .ftr, .stickybar, .burger { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   ETAPA 2 — veřejný náhled, paywall, cookie lišta, právní stránky
   ========================================================================== */

/* --------------------------------------------------------------------------
   19. Drobečková navigace
   -------------------------------------------------------------------------- */
.breadcrumb {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 13px;
  color: var(--grey-text);
}
.breadcrumb a { color: var(--navy-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* --------------------------------------------------------------------------
   20. Karta nabídky ve výpisu
   -------------------------------------------------------------------------- */
.cardgrid { display: grid; gap: 20px; }

.propcard {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.propcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }

.propcard__media { position: relative; aspect-ratio: 3 / 2; background: var(--bg-light); overflow: hidden; }
.propcard__img { width: 100%; height: 100%; object-fit: cover; }
.propcard__img--empty {
  background: linear-gradient(135deg, #DCE6EC, #C3D3DD);
}
.propcard__lock {
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; display: grid; place-content: center;
  background: rgba(14, 43, 61, .82); border-radius: 999px; font-size: 15px;
}
.propcard__body { padding: 18px; }
.propcard__h { font-size: 17px; margin-bottom: 4px; }
.propcard__meta { font-size: 13px; color: var(--grey-text); margin: 0 0 10px; }
.propcard__cta { font-size: 14px; font-weight: 700; color: var(--gold-deep); }

.center-note { text-align: center; margin-top: 28px; color: var(--grey-text); }

/* --------------------------------------------------------------------------
   21. Veřejný náhled nabídky
   -------------------------------------------------------------------------- */
.preview { padding: 32px 0 56px; }
.preview__grid { display: grid; gap: 32px; }

/* Rozostřená fotka. Rozostření je vypálené v souboru na serveru —
   CSS filtr by šel obejít vypnutím stylů i stažením originálu. */
.blurbox {
  position: relative; margin: 0 0 24px; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-light); aspect-ratio: 3 / 2;
}
.blurbox img { width: 100%; height: 100%; object-fit: cover; }
.blurbox__empty { width: 100%; height: 100%; background: linear-gradient(135deg, #DCE6EC, #B9CCD8); }
.blurbox__over {
  position: absolute; inset: auto 0 0; display: grid; gap: 2px; justify-items: center;
  padding: 28px 16px 18px; text-align: center; color: var(--white);
  background: linear-gradient(transparent, rgba(14, 43, 61, .88));
}
.blurbox__lock { font-size: 22px; }
.blurbox__over strong { font-size: 16px; }
.blurbox__over span { font-size: 13px; opacity: .88; }

.preview__h1 { font-size: 28px; margin-bottom: 4px; }
.preview__no { color: var(--grey-text); font-size: 13px; margin-bottom: 14px; }
.preview__h2 { font-size: 19px; margin: 28px 0 14px; }
.preview__strategy {
  display: inline-block; margin-top: 16px; padding: 8px 14px;
  background: rgba(22, 121, 92, .1); color: var(--green);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
}

.paramgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; margin: 0; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.param { background: var(--white); padding: 14px 16px; }
.param dt { font-size: 12px; color: var(--grey-text); margin-bottom: 2px; }
.param dd { margin: 0; font-weight: 600; }

/* --------------------------------------------------------------------------
   22. Paywall
   -------------------------------------------------------------------------- */
.paywall__card {
  background: var(--white); border: 2px solid var(--gold);
  border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-md);
}
.paywall__h { font-size: 21px; margin-bottom: 16px; }

.locklist { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.locklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--grey-text); }
.locklist span { flex: none; opacity: .7; }

.paywall__price { font-family: var(--font-head); font-size: 20px; margin: 0 0 2px; }
.paywall__price strong { font-size: 40px; font-weight: 800; }
.paywall__price span { font-size: 15px; color: var(--grey-text); font-weight: 500; }
.paywall__trial { font-size: 14px; color: var(--grey-text); margin-bottom: 18px; }
.paywall__login { font-size: 13px; color: var(--grey-text); text-align: center; margin: 14px 0 0; }

.paywall__note {
  margin-top: 18px; padding: 18px; background: var(--bg-light);
  border-radius: var(--radius); font-size: 14px; color: var(--grey-text);
}

/* --------------------------------------------------------------------------
   23. Cookie lišta
   -------------------------------------------------------------------------- */
.cookiebar {
  position: fixed; inset: auto 0 0; z-index: 60;
  background: var(--white); border-top: 2px solid var(--navy);
  box-shadow: 0 -6px 24px rgba(14, 43, 61, .16);
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
}
.cookiebar[hidden] { display: none; }
.cookiebar__in { max-width: var(--container); margin-inline: auto; display: grid; gap: 14px; }
.cookiebar__h { font-size: 17px; margin-bottom: 4px; }
.cookiebar__p { font-size: 14px; color: var(--grey-text); margin: 0; }

/* Tři rovnocenná tlačítka — odmítnutí nesmí být schované (kap. 14.2) */
.cookiebar__actions { display: grid; gap: 8px; }
.cookiebar__actions .btn { width: 100%; }

.cookiebar__detail {
  display: grid; gap: 14px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cookiebar__detail[hidden] { display: none; }
.check--locked { opacity: .75; cursor: default; }
.check--locked input { cursor: default; }

/* --------------------------------------------------------------------------
   24. Právní stránky
   -------------------------------------------------------------------------- */
.prose h2 { font-size: 20px; margin: 32px 0 10px; }
.prose p  { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.prose li { line-height: 1.6; }

.tablewrap { overflow-x: auto; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
.datatable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.datatable th, .datatable td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.datatable th { background: var(--bg-light); font-weight: 700; font-size: 13px; }
.datatable tr:last-child td { border-bottom: 0; }

.btnrow--center { justify-content: center; }

/* --------------------------------------------------------------------------
   25. Responzivita etapy 2
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .cardgrid { grid-template-columns: repeat(2, 1fr); }
  .preview__h1 { font-size: 34px; }

  .cookiebar__in {
    grid-template-columns: 1fr auto;
    align-items: center; gap: 24px;
  }
  .cookiebar__actions { display: flex; gap: 10px; }
  .cookiebar__actions .btn { width: auto; }
  .cookiebar__detail { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .cardgrid { grid-template-columns: repeat(3, 1fr); }

  .preview__grid { grid-template-columns: 1fr 380px; align-items: start; }
  /* Paywall zůstává na očích při rolování */
  .paywall { position: sticky; top: 84px; }
}

/* ==========================================================================
   ETAPA 3 — formulář nemovitosti, uploader, účet prodávajícího
   ========================================================================== */

.container--form { max-width: 780px; }

/* --------------------------------------------------------------------------
   26. Hlavička formuláře — postup a úplnost
   -------------------------------------------------------------------------- */
.formhead { background: var(--bg-light); padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.formhead__h { font-size: 24px; margin-bottom: 18px; }

.postup {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.postup__i {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 8px 12px; border-radius: var(--radius);
  font-size: 13px; color: var(--grey-text);
}
.postup__i a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.postup__i a:hover { color: var(--navy); }
.postup__n {
  width: 26px; height: 26px; flex: none; display: grid; place-content: center;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: 13px;
}
.postup__t { white-space: nowrap; }
.postup__i.is-current { background: var(--white); color: var(--navy); font-weight: 700; box-shadow: var(--shadow-sm); }
.postup__i.is-current .postup__n { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.postup__i.is-done .postup__n { background: var(--green); border-color: var(--green); color: var(--white); }
.postup__i.is-done .postup__n::before { content: "✓"; }
.postup__i.is-done .postup__n { font-size: 0; }
.postup__i.is-done .postup__n::before { font-size: 13px; }

.uplnost { display: grid; gap: 6px; }
.uplnost--maly { margin: 10px 0 0; max-width: 260px; }
.uplnost__bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.uplnost__fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .3s ease; }
.uplnost__t { font-size: 13px; color: var(--grey-text); margin: 0; }
.uplnost__stav { margin-left: 8px; font-size: 12px; }
.uplnost__stav.is-ok  { color: var(--green); }
.uplnost__stav.is-err { color: var(--red); }

/* --------------------------------------------------------------------------
   27. Tělo formuláře
   -------------------------------------------------------------------------- */
.form__h { font-size: 19px; margin: 32px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.form__h:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.field__counter { font-size: 13px; color: var(--grey-text); margin: 6px 0 0; text-align: right; }
.field--ok .input { border-color: var(--green); }
.field--ok .field__counter { color: var(--green); font-weight: 600; }

.checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 20px; }

.formnav {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.formnav__right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* --------------------------------------------------------------------------
   28. Nahrávání fotografií
   -------------------------------------------------------------------------- */
.uploader { margin-bottom: 32px; }

.uploader__drop {
  border: 2px dashed var(--line); border-radius: var(--radius-lg);
  padding: 40px 20px; text-align: center; cursor: pointer;
  background: var(--bg-light); transition: border-color .15s ease, background-color .15s ease;
}
.uploader__drop:hover, .uploader__drop.is-over {
  border-color: var(--gold); background: rgba(201, 162, 39, .06);
}
.uploader__drop--maly { padding: 24px 20px; }
.uploader__ikona { font-size: 34px; margin: 0 0 8px; }
.uploader__h { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.uploader__p { margin: 0 0 6px; color: var(--grey-text); font-size: 14px; }
.uploader__hint { font-size: 13px; color: var(--grey-text); margin: 0; }

.uploader__stav { margin-top: 14px; }
.uploader__stav[hidden] { display: none; }
.uploader__bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.uploader__fill { height: 100%; width: 0; background: var(--gold); transition: width .2s ease; }
.uploader__stav p { font-size: 13px; color: var(--grey-text); margin: 0; }

.uploader__chyba {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--red-soft); color: var(--red); font-size: 14px; font-weight: 600;
}
.uploader__chyba[hidden] { display: none; }

.uploader__pocet { font-size: 14px; color: var(--grey-text); margin-top: 14px; }

.fotogrid {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.fotka {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-light); aspect-ratio: 3 / 2; cursor: grab;
  border: 2px solid transparent;
}
.fotka img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.fotka.is-dragged { opacity: .4; }
.fotka.is-cover { border-color: var(--gold); }

.fotka__odznak {
  position: absolute; top: 6px; left: 6px; display: none;
  padding: 3px 8px; background: var(--gold); color: var(--navy);
  border-radius: 999px; font-size: 11px; font-weight: 800;
}
.fotka.is-cover .fotka__odznak { display: block; }

.fotka__akce {
  position: absolute; top: 6px; right: 6px; display: flex; gap: 4px;
  opacity: 0; transition: opacity .15s ease;
}
.fotka:hover .fotka__akce, .fotka:focus-within .fotka__akce { opacity: 1; }
.fotka__btn {
  width: 30px; height: 30px; display: grid; place-content: center;
  background: rgba(14, 43, 61, .82); color: var(--white);
  border: 0; border-radius: 999px; cursor: pointer; font-size: 15px; line-height: 1;
}
.fotka__btn:hover { background: var(--navy); }
.fotka__btn--del:hover { background: var(--red); }

/* Na dotykovém displeji nejde najet myší — tlačítka jsou vidět vždy */
@media (hover: none) {
  .fotka__akce { opacity: 1; }
}

.fotogrid--nahled .fotka { cursor: default; }

.pudorys { display: grid; gap: 12px; justify-items: start; }
.pudorys img { border-radius: var(--radius); border: 1px solid var(--line); max-width: 400px; }

/* --------------------------------------------------------------------------
   29. Rekapitulace v posledním kroku
   -------------------------------------------------------------------------- */
.rekap { display: grid; gap: 16px; margin-bottom: 28px; }
.rekap__blok { background: var(--bg-light); border-radius: var(--radius); padding: 18px 20px; }
.rekap__blok h3 { font-size: 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rekap__edit { font-size: 13px; font-weight: 500; color: var(--navy-2); }
.rekap__blok dl { margin: 0; display: grid; gap: 8px; }
.rekap__blok dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 14px; }
.rekap__blok dt { color: var(--grey-text); }
.rekap__blok dd { margin: 0; font-weight: 600; }
.rekap__skryte { font-weight: 400; font-size: 12px; font-style: italic; }

/* --------------------------------------------------------------------------
   30. Účet prodávajícího
   -------------------------------------------------------------------------- */
.pagehead {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: flex-start; margin-bottom: 24px;
}

.nablist { display: grid; gap: 16px; }

.nabrow {
  display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm);
}
.nabrow__media { border-radius: var(--radius); overflow: hidden; background: var(--bg-light); aspect-ratio: 3 / 2; }
.nabrow__media img { width: 100%; height: 100%; object-fit: cover; }
.nabrow__empty { width: 100%; height: 100%; display: grid; place-content: center; font-size: 28px; opacity: .35; }
.nabrow__h { font-size: 18px; margin: 6px 0 4px; }
.nabrow__meta { font-size: 14px; color: var(--grey-text); margin: 0 0 6px; }
.nabrow__hint { font-size: 13px; color: var(--grey-text); margin: 0; }
.nabrow__duvod {
  margin: 10px 0 0; padding: 10px 12px; background: var(--red-soft);
  border-radius: var(--radius); font-size: 14px; color: var(--red);
}
.nabrow__cisla { font-size: 14px; margin: 10px 0 0; }
.nabrow__akce { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.stavchip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; margin: 0;
}
.stavchip--ok   { background: rgba(22,121,92,.14); color: var(--green); }
.stavchip--warn { background: rgba(201,162,39,.18); color: var(--gold-deep); }
.stavchip--err  { background: var(--red-soft); color: var(--red); }
.stavchip--info { background: rgba(23,64,90,.12); color: var(--navy-2); }

/* --------------------------------------------------------------------------
   31. Responzivita etapy 3
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .formhead__h { font-size: 30px; }
  .nabrow { grid-template-columns: 180px 1fr auto; align-items: start; }
  .nabrow__akce { flex-direction: column; align-items: stretch; }
  .rekap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  /* Na mobilu je hlavní tlačítko první a přes celou šířku */
  .formnav { flex-direction: column-reverse; align-items: stretch; }
  .formnav__right { flex-direction: column-reverse; align-items: stretch; }
  .formnav .btn { width: 100%; }
  .rekap__blok dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   ETAPA 4 — schvalovací fronta a administrace nabídek
   ========================================================================== */

/* --------------------------------------------------------------------------
   32. Záložky podle stavu
   -------------------------------------------------------------------------- */
.zalozky {
  display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.zalozka {
  display: flex; align-items: center; gap: 6px; flex: none;
  padding: 9px 14px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  color: var(--grey-text); text-decoration: none; font-size: 14px; white-space: nowrap;
}
.zalozka:hover { color: var(--navy); border-color: #C3D0DA; }
.zalozka.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 700; }
.zalozka__pocet {
  min-width: 20px; padding: 1px 6px; border-radius: 999px;
  background: var(--bg-light); color: var(--navy); font-size: 12px; font-weight: 700; text-align: center;
}
.zalozka.is-active .zalozka__pocet { background: var(--gold); color: var(--navy); }

/* --------------------------------------------------------------------------
   33. Fronta ke schválení
   -------------------------------------------------------------------------- */
.frontlist { display: grid; gap: 12px; }

.frontrow {
  display: grid; gap: 14px; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
/* Nabídka čekající přes slíbených 24 hodin je vidět na první pohled */
.frontrow.is-urgent { border-left-color: var(--red); }

.frontrow__media { width: 140px; border-radius: var(--radius); overflow: hidden; background: var(--bg-light); aspect-ratio: 3 / 2; }
.frontrow__media img { width: 100%; height: 100%; object-fit: cover; }
.frontrow__empty { width: 100%; height: 100%; display: grid; place-content: center; font-size: 22px; opacity: .3; }

.frontrow__h { font-size: 17px; margin: 0 0 4px; }
.frontrow__h a { color: inherit; text-decoration: none; }
.frontrow__h a:hover { color: var(--navy-2); text-decoration: underline; }
.frontrow__meta { font-size: 14px; color: var(--grey-text); margin: 0 0 4px; }
.frontrow__kdo { font-size: 13px; margin: 0; }

.frontrow__cas { display: grid; gap: 8px; justify-items: start; }
.frontrow__ceka { font-size: 14px; font-weight: 700; margin: 0; color: var(--grey-text); }
.frontrow__ceka.is-urgent { color: var(--red); }
.frontrow__slib { font-size: 12px; color: var(--red); margin: 0; }

/* --------------------------------------------------------------------------
   34. Detail nabídky v administraci
   -------------------------------------------------------------------------- */
.admincols { display: grid; gap: 20px; }
.admincols__main { display: grid; gap: 20px; align-content: start; }
.admincols__side { display: grid; gap: 20px; align-content: start; }

.panel--center { text-align: center; padding: 40px 20px; }
.panel--akce { border-top: 3px solid var(--gold); }

.oddel { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* --------------------------------------------------------------------------
   35. Nálezy automatické kontroly
   -------------------------------------------------------------------------- */
.nalezy { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.nalez {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius); font-size: 14px;
}
.nalez__znak {
  flex: none; width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-content: center; font-weight: 800; font-size: 13px;
}
.nalez__text { margin: 0; font-weight: 600; }
.nalez__rada { margin: 3px 0 0; font-size: 13px; opacity: .85; font-weight: 400; }

.nalez--zavazne { background: var(--red-soft); color: var(--red); }
.nalez--zavazne .nalez__znak { background: var(--red); color: var(--white); }
.nalez--varujici { background: rgba(201,162,39,.14); color: var(--gold-deep); }
.nalez--varujici .nalez__znak { background: var(--gold); color: var(--navy); }
.nalez--poznamka { background: var(--bg-light); color: var(--grey-text); }
.nalez--poznamka .nalez__znak { background: var(--navy-2); color: var(--white); }

/* --------------------------------------------------------------------------
   36. Historie a drobné seznamy
   -------------------------------------------------------------------------- */
.historie { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.historie__i {
  display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.historie__i:last-child { border-bottom: 0; }
.historie__cas { font-size: 12px; color: var(--grey-text); }
.historie__akce { font-weight: 700; }
.historie__kdo { font-size: 13px; color: var(--grey-text); }
.historie__duvod {
  margin: 6px 0 0; padding: 8px 10px; background: var(--bg-light);
  border-radius: 6px; font-size: 13px;
}
.historie__zmeny { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--grey-text); }
.historie__zmeny s { opacity: .6; }

.minidl { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.minidl > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.minidl dt { color: var(--grey-text); }
.minidl dd { margin: 0; font-weight: 600; word-break: break-word; }

.zajlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 14px; }
.zajlist li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.zajlist li:last-child { border-bottom: 0; padding-bottom: 0; }

.zamitnout summary {
  cursor: pointer; font-size: 14px; color: var(--grey-text);
  padding: 8px 0; min-height: 44px; display: flex; align-items: center;
}
.zamitnout summary:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   37. Responzivita etapy 4
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .frontrow { grid-template-columns: 140px 1fr auto; }
  .frontrow__cas { justify-items: end; text-align: right; }
}

@media (min-width: 1100px) {
  .admincols { grid-template-columns: 1fr 340px; align-items: start; }
  .admincols__side { position: sticky; top: 20px; }
}
