/* =========================================================================
   Svijanské NEALKO nové generace — microsite pro hodnocení vývojových várek
   Vizuálně vychází ze stolního stojánku (Pivovar Svijany).
   Barvy navzorkovány přímo z tiskové grafiky.
   ========================================================================= */

:root {
  /* --- Značkové barvy (navzorkováno z letáku) --- */
  --navy:        #014c7e;   /* svijanská tmavě modrá — NEALKO, nadpisy, primární */
  --navy-deep:   #013a61;   /* tmavší odstín pro gradienty / text na kontrast */
  --navy-ink:    #06263f;
  --gold:        #c49747;   /* tlumená zlatá — script, ozdobné linky, CTA */
  --gold-deep:   #a67e35;
  --gold-soft:   #d8b877;
  --red:         #dd0925;   /* logo červená — jen drobné akcenty */
  --beer:        #e0a52a;   /* pivní zlatá */

  /* --- Papír / pozadí --- */
  --cream:       #f7f2e6;   /* hlavní krémový podklad */
  --cream-2:     #f1e9d6;   /* alternativní plocha */
  --paper:       #fffdf8;   /* karty, vstupní pole */
  --line:        #e3d9c1;   /* jemné linky */

  /* --- Text --- */
  --ink:         #262019;   /* teplá téměř-černá pro čtený text */
  --ink-soft:    #6a6152;   /* sekundární text */
  --ink-mute:    #6e6656;   /* popisky, nápovědy (WCAG AA na krémové) */

  /* --- Rozměry --- */
  --wrap: 500px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(1, 38, 63, .28);
  --shadow-sm: 0 4px 14px -8px rgba(1, 38, 63, .30);

  /* --- Písma --- */
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-script:  "Kaushan Script", "Segoe Script", cursive;
  --f-ui:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset / základ ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-ui);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(60% 45% at 82% 8%,  rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(70% 50% at 10% 30%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(80% 60% at 50% 100%, rgba(1,76,126,.05) 0%, rgba(1,76,126,0) 60%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--navy); }

/* ---------- layout ---------- */
.app {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* jemný faux-watermark svijanský "vlnovkový" motiv v pozadí obsahu */
.app::before {
  content: "";
  position: fixed;
  inset: 0;
  max-width: var(--wrap);
  margin: 0 auto;
  pointer-events: none;
  background:
    radial-gradient(38% 22% at 78% 18%, rgba(1,76,126,.045), transparent 70%),
    radial-gradient(30% 18% at 20% 72%, rgba(196,151,71,.06), transparent 70%);
  z-index: 0;
}
.app > * { position: relative; z-index: 1; }

/* ---------- horní lišta s logem ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px 6px;
}
.topbar img { height: 90px; width: auto; filter: drop-shadow(0 4px 12px rgba(1,38,63,.16)); }

/* ---------- ukazatel kroků ---------- */
.steps {
  display: flex;
  gap: 7px;
  justify-content: center;
  padding: 10px 24px 4px;
}
.steps .dot {
  height: 5px; flex: 1 1 0; max-width: 64px;
  border-radius: 3px;
  background: var(--line);
  transition: background .3s ease;
}
.steps .dot.done { background: var(--gold); }
.steps .dot.active { background: var(--navy); }

/* ---------- obrazovky ---------- */
.screen { display: none; padding: 8px 22px 40px; animation: fade .35s ease; }
.screen.active { display: block; z-index: 4; }  /* nad patičkou kvůli rozbalenému comboboxu */
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- typografie ---------- */
.eyebrow {
  font-family: var(--f-script);
  color: var(--gold-deep);
  font-size: 1.9rem;
  line-height: .9;
  margin: 0;
}
.wordmark {
  font-family: var(--f-display);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .005em;
  font-size: clamp(2.35rem, 11.4vw, 3.1rem);
  line-height: .9;
  margin: 2px 0 0;
  text-transform: uppercase;
}
.subscript {
  font-family: var(--f-script);
  color: var(--gold-deep);
  font-size: 1.75rem;
  line-height: .9;
  margin: 2px 0 0;
  position: relative;
  display: inline-block;
}
.subscript::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 2px;
  border-radius: 2px;
}

h1, h2, h3 { font-family: var(--f-display); color: var(--navy); font-weight: 800; }
.h-caps {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .015em;
  color: var(--gold-deep);
  line-height: 1.12;
  font-size: 1.42rem;
  margin: 0 0 14px;
}
.lead { font-family: var(--f-display); color: var(--navy); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.body { color: var(--ink); font-size: 1.02rem; }
.body p { margin: 0 0 14px; }
.muted { color: var(--ink-soft); }
.tiny { font-size: .82rem; color: var(--ink-mute); }

/* ozdobná zlatá tečkovaná linka jako na stojánku */
.dotline {
  border: none;
  border-top: 2px dotted var(--gold);
  opacity: .7;
  margin: 22px 0;
}
.rule-gold { height: 3px; width: 54px; background: var(--gold); border-radius: 2px; margin: 16px 0; }

/* ---------- HERO (úvodní obrazovka) ---------- */
.hero {
  position: relative;
  min-height: 188px;
  padding-top: 6px;
}
.hero-copy { width: 53%; }
.hero-glass {
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 20px rgba(1,38,63,.22));
}
.hero-tag {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-size: 1.24rem;
  line-height: 1.16;
  letter-spacing: .015em;
  margin: 16px 0 0;
}
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.badge {
  font-size: .78rem; font-weight: 600;
  color: var(--navy);
  background: rgba(1,76,126,.07);
  border: 1px solid rgba(1,76,126,.15);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ---------- karty ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
}
.card.pad-lg { padding: 22px 20px; }

/* ---------- formulářová pole ---------- */
.field { margin: 0 0 18px; }
.field > label { display: block; font-weight: 600; color: var(--navy-deep); margin-bottom: 6px; font-size: 1rem; }
.field .hint { font-size: .82rem; color: var(--ink-mute); margin: -2px 0 8px; }
.req { color: var(--red); font-weight: 700; }

input[type="text"], input[type="number"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(1,76,126,.14);
}
input::placeholder, textarea::placeholder { color: #b9b09b; }
textarea { resize: vertical; min-height: 92px; }

/* combobox výběru hospody (vždy rozbalitelný, s filtrováním) */
.combo { position: relative; }
.combo input { padding-right: 46px; }
.combo-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 44px;
  background: none; border: none; color: var(--navy);
  display: grid; place-items: center; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  -webkit-tap-highlight-color: transparent;
}
.combo-toggle svg { transition: transform .2s; }
.combo input[aria-expanded="true"] ~ .combo-toggle svg { transform: rotate(180deg); }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); max-height: 274px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.combo-list[hidden] { display: none; }
.combo-list li[role="option"] {
  padding: 12px 12px; border-radius: 8px; cursor: pointer;
  font-size: .98rem; color: var(--ink); line-height: 1.25;
}
.combo-list li[role="option"]:hover,
.combo-list li[role="option"].active { background: rgba(1,76,126,.09); }
.combo-list li[role="option"] .city { color: var(--ink-soft); }
.combo-empty { padding: 12px; color: var(--ink-mute); font-size: .9rem; }

/* volitelné vyhledání hospody podle polohy */
.btn-locate {
  margin-top: 10px;
  background: rgba(1,76,126,.06);
  border: 1.5px solid rgba(1,76,126,.22);
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 7px;
  -webkit-tap-highlight-color: transparent;
}
.btn-locate:active { transform: scale(.98); }
.btn-locate[disabled] { opacity: .55; }
.locate-status { margin: 8px 0 0; min-height: 1.1em; }
.locate-status.ok  { color: var(--gold-deep); font-weight: 600; }
.locate-status.err { color: var(--red); }

/* velké prominentní pole pro číslo várky */
.batch-field input {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--navy);
  text-align: center;
  padding: 14px;
}

/* ---------- hodnotící škála 1–10 ---------- */
.rate { margin: 0 0 22px; }
.rate-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.rate-title {
  font-family: var(--f-display);
  font-weight: 800; text-transform: uppercase;
  color: var(--navy); font-size: 1.02rem; letter-spacing: .01em;
}
.rate-val {
  font-family: var(--f-display); font-weight: 800;
  color: var(--gold-deep); font-size: 1.2rem; min-width: 2.4ch; text-align: right;
}
.rate-val.empty { color: var(--ink-mute); font-weight: 600; font-size: .9rem; }
.scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}
.scale button {
  min-height: 46px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  padding: 0;
  transition: transform .1s, background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.scale button:hover { border-color: var(--gold); }
.scale button:active { transform: scale(.92); }
.scale button.sel {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(1,76,126,.6);
}
.scale-ends { display: flex; justify-content: space-between; margin-top: 6px; }
.scale-ends span { font-size: .8rem; color: var(--ink-mute); }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .01em;
  transition: transform .12s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(1,76,126,.65);
}
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(1,76,126,.7); }
.btn-primary:active { transform: translateY(1px) scale(.995); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  color: #3a2c07;
  box-shadow: 0 12px 24px -12px rgba(166,126,53,.7);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(1,76,126,.35);
}
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; gap: 12px; margin-top: 8px; }
.btn-row .btn { width: auto; flex: 1; }
.btn-back {
  background: none; border: none; color: var(--navy);
  font-weight: 600; padding: 12px 12px; min-height: 44px; width: auto;
  margin: 0 0 0 -12px;
  display: inline-flex; align-items: center; gap: 6px; font-size: .95rem;
}

/* ---------- chyby / upozornění ---------- */
.error-msg {
  color: var(--red); font-size: .85rem; font-weight: 600; margin-top: 6px; display: none;
}
.error-msg.show { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.notice {
  background: rgba(221,9,37,.06);
  border: 1px solid rgba(221,9,37,.25);
  color: #9a1220;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .92rem;
  margin: 0 0 16px;
}

/* ---------- poděkování ---------- */
.thanks { text-align: center; padding-top: 12px; }
.mug-wrap { position: relative; width: 210px; margin: 14px auto 2px; display: grid; place-items: center; }
.mug-wrap::before {
  content: ""; position: absolute; width: 178px; height: 178px;
  border-radius: 50%; border: 1.5px solid var(--gold); opacity: .45;
}
.thanks img.mug { width: 154px; position: relative; filter: drop-shadow(0 14px 20px rgba(1,38,63,.20)); }
.thanks h2 { font-size: 2.1rem; margin: 8px 0 6px; }
.check {
  width: 64px; height: 64px; margin: 0 auto 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  display: grid; place-items: center;
  box-shadow: 0 10px 22px -10px rgba(166,126,53,.8);
}
.check svg { width: 32px; height: 32px; }
/* ---------- patička ---------- */
.foot {
  margin-top: auto;
  text-align: center;
  padding: 20px 22px 26px;
  color: var(--ink-mute);
  font-size: .78rem;
}
.foot a { color: #7a5f22; text-decoration: underline; }
.foot .sep { margin: 0 6px; opacity: .5; }

/* ---------- pomocné ---------- */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.stack > * + * { margin-top: 10px; }

/* větší mobily / malé tablety */
@media (min-width: 460px) {
  .topbar img { height: 102px; }
  .hero { min-height: 210px; }
  .hero-glass { width: 172px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
