/* Odběr novinek — sdílené styly formulářů (homepage, Výstavy, pruh nad patičkou).
   Barvy natvrdo jako na statických stránkách (ne všechny mají :root proměnné). */

/* ── Velký blok (homepage #odber, konec stránky Výstavy) ── */
.odber-section { background: #f3ebda; padding: 6rem 3.5rem; scroll-margin-top: 80px; }
.odber-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.odber-eyebrow {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 9px; letter-spacing: 0.28em;
  text-transform: uppercase; color: #5a4f44; margin: 0 0 0.625rem;
}
.odber-title {
  font-family: 'Cormorant SC', serif; font-weight: 500; font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08; color: #2a2520; margin: 0 0 1.5rem;
}
.odber-text {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 16px; line-height: 1.85;
  color: #5a4f44; margin: 0 auto 2.25rem; max-width: 34em;
}

/* ── Formulář (společný) ── */
.odber-form { display: flex; gap: 0.6rem; max-width: 520px; margin: 0 auto; position: relative; }
.odber-form input[type="email"] {
  flex: 1 1 auto; min-width: 0; font-family: 'Jost', sans-serif; font-size: 16px; font-weight: 400;
  color: #2a2520; background: #faf5ec; border: 1.5px solid #d9cbb0; border-radius: 100px;
  padding: 0.85rem 1.4rem; outline: none; transition: border-color 200ms;
}
.odber-form input[type="email"]::placeholder { color: #8a7e70; }
.odber-form input[type="email"]:focus { border-color: #a8643d; }
.odber-btn {
  flex: 0 0 auto; font-family: 'Jost', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; background: #a8643d; border: none; border-radius: 100px;
  padding: 0.85rem 1.75rem; cursor: pointer; transition: background 200ms, opacity 200ms;
}
.odber-btn:hover { background: #8a4d2a; }
.odber-btn:disabled { opacity: 0.6; cursor: wait; }
.odber-btn:focus-visible, .odber-form input:focus-visible { outline: 2px solid #a8643d; outline-offset: 2px; }

/* skryté pole proti robotům + skrytý popisek pro čtečky */
.odber-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.odber-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.odber-msg {
  font-family: 'Jost', sans-serif; font-size: 14px; line-height: 1.6; min-height: 1.6em;
  margin: 0.9rem 0 0; color: #5a4f44;
}
.odber-msg.is-error { color: #a33a2a; }
.odber-msg.is-ok { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 21px; color: #2a2520; }
.odber-note {
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 12px; line-height: 1.7; color: #5a4f44; margin: 0.4rem 0 0;
}
.odber-note a { color: inherit; border-bottom: 1px solid rgba(90,79,68,0.4); text-decoration: none; }
.odber-note a:hover { color: #a8643d; border-bottom-color: #a8643d; }
.odber-done .odber-form, .odber-done .odber-note { display: none; }

/* ── Pruh nad patičkou (ostatní stránky) ── */
.odber-band { border-top: 1px solid #d9cbb0; background: #f3ebda; padding: 2.5rem 3rem; }
.odber-band-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 0.5rem 3rem; align-items: center; }
.odber-band-text {
  font-family: 'Cormorant SC', serif; font-weight: 500; font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2; color: #2a2520; margin: 0;
}
.odber-band .odber-form { margin: 0; max-width: none; }
.odber-band .odber-msg, .odber-band .odber-note { grid-column: 2; margin-top: 0; }
.odber-band .odber-msg:empty { display: none; }

/* ── Tlačítko v úvodním obrázku ── */
.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

@media (max-width: 900px) {
  .odber-section { padding: 4.5rem 1.5rem; }
  .odber-band { padding: 2rem 1.5rem; }
  .odber-band-inner { grid-template-columns: 1fr; text-align: center; }
  .odber-band .odber-msg, .odber-band .odber-note { grid-column: 1; }
}
@media (max-width: 520px) {
  .odber-section { padding: 4rem 1.25rem; }
  .odber-form { flex-direction: column; }
  .odber-btn { padding: 0.95rem 1.75rem; }
}
