/* ==========================================================================
   Pátráme po střelci — patramepostrelci.cz
   ========================================================================== */

/* Písma hostujeme lokálně — žádný požadavek na Google Fonts (GDPR).
   Variabilní woff2, latin + latin-ext (české diakritice stačí latin-ext). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/source-serif-4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:         #FAF9F7;
  --bg-alt:     #F4F2ED;
  --bg-card:    #FFFFFF;
  --bg-soft:    #FDFBF9;
  --ph:         #EFEDE7;

  --ink:        #1C1B19;
  --ink-soft:   #3A3833;
  --muted:      #5C5952;

  --line:       #E3DFD8;
  --line-soft:  #EDE9E2;
  --line-mid:   #C9C3B7;

  --accent:     #8A2A1F;
  --accent-dk:  #6B1F16;
  --accent-bg:  #FBF4F2;

  --warn-bg:    #FFF8E6;
  --warn-ink:   #8A6D1F;
  --warn-body:  #5C4A18;

  --err-bg:     #FDF0EE;
  --ok-bg:      #F1F5EE;
  --ok-ink:     #3F5C2E;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad-x: clamp(24px, 5vw, 80px);
  --pad-y: clamp(56px, 7vw, 96px);
  --col:  680px;
  --wide: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dk); }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  overflow-wrap: break-word;
  text-wrap: pretty;
  margin: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--bg);
  padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--bg); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 249, 247, .94);
  backdrop-filter: blur(8px);
}
.brand { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; letter-spacing: .02em; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { color: var(--bg); }
.nav .btn:hover { color: var(--bg); background: var(--accent-dk); }
@media (max-width: 620px) { .nav__item { display: none; } }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  background: var(--accent); color: var(--bg);
  border: none; font: inherit; font-size: 17px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dk); color: var(--bg); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--md { min-height: 52px; padding: 0 28px; }
.btn--block { width: 100%; margin-top: 6px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 16px; color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: border-color .15s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-ghost svg { flex: none; }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  width: 100%; max-width: var(--col);
}
.cta-row--center { justify-content: center; max-width: none; }
.cta-row__note { font-size: 16px; color: var(--muted); }

/* --- Layout --------------------------------------------------------------- */

.section {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--line);
  display: flex; justify-content: center;
}
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(48px, 6vw, 80px) var(--pad-x); }
.section--flush { border-top: none; }

.stack {
  width: 100%; max-width: var(--wide);
  display: flex; flex-direction: column; gap: 40px; align-items: center;
}
.stack--gap-sm { gap: 24px; }
.stack--gap-md { gap: 32px; }
.col { width: 100%; max-width: var(--col); }
.col-stack { width: 100%; max-width: var(--col); display: flex; flex-direction: column; gap: 26px; }

.h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -.01em; }
.h2--sm { font-size: clamp(24px, 2.4vw, 30px); }
.h2--xs { font-size: clamp(22px, 2.2vw, 28px); color: var(--ink-soft); }

.grid-2 { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.hero__body {
  padding: clamp(48px, 6vw, 104px) var(--pad-x);
  display: flex; flex-direction: column; justify-content: center;
  gap: 26px; max-width: 760px;
}
.kicker { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__title { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.14; letter-spacing: -.015em; }
.hero__lead { margin: 0; max-width: 560px; font-size: 20px; color: var(--ink-soft); text-wrap: pretty; }
.hero__actions { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; align-items: flex-start; }
.hero__alt { margin: 0; font-size: 17px; color: var(--muted); max-width: 480px; }
.hero__figure {
  margin: 0; min-height: 420px; position: relative;
  border-left: 1px solid var(--line); overflow: hidden; background: var(--ph);
}
.hero__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 860px) { .hero__figure { min-height: 320px; border-left: none; border-top: 1px solid var(--line); } }

/* --- Reward --------------------------------------------------------------- */

.reward-wrap { padding: clamp(40px, 5vw, 72px) var(--pad-x); display: flex; justify-content: center; }
.reward {
  width: 100%; max-width: var(--wide);
  border-top: 3px solid var(--accent);
  background: var(--bg-soft);
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.reward__label { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.reward__amount { font-family: var(--serif); font-size: clamp(48px, 6vw, 64px); line-height: 1; letter-spacing: -.02em; }
.reward__text { margin: 20px 0 0; color: var(--ink-soft); max-width: 460px; text-wrap: pretty; }
.reward__note { margin: 16px 0 0; font-size: 16px; font-style: italic; color: var(--muted); }
.reward__contacts { display: flex; flex-direction: column; gap: 12px; align-self: center; }

.contact-line {
  display: flex; align-items: baseline; gap: 14px;
  min-height: 44px; padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: var(--ink);
}
.contact-line:hover { color: var(--accent); }
.contact-line__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); width: 62px; flex: none; }
.contact-line__value { font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.contact-hint { margin: 2px 0 0; font-size: 15px; color: var(--muted); }

/* --- Figures -------------------------------------------------------------- */

figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 16px; font-style: italic; color: var(--muted); }
.photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ph); }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--pos-35 { object-position: 50% 35%; }
.photo--pos-62 { object-position: 50% 62%; }

.pullquote { max-width: var(--col); width: 100%; border-left: 3px solid var(--accent); padding-left: 24px; }
.pullquote p { margin: 0; font-size: 20px; text-wrap: pretty; }

/* --- Facts ---------------------------------------------------------------- */

.facts { margin: 0; width: 100%; max-width: var(--col); display: grid; grid-template-columns: 220px 1fr; column-gap: 32px; }
.facts dt { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 0 6px; border-top: 1px solid var(--line); }
.facts dd { margin: 0; padding: 16px 0 6px; border-top: 1px solid var(--line); text-wrap: pretty; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; column-gap: 0; }
  .facts dt { padding-bottom: 0; }
  .facts dd { border-top: none; padding-top: 2px; padding-bottom: 16px; }
  .facts dt:last-of-type { border-bottom: none; }
}

/* --- Notice --------------------------------------------------------------- */

.notice {
  max-width: var(--col); width: 100%;
  background: var(--warn-bg); padding: 20px 24px;
  display: flex; gap: 16px;
}
.notice__icon {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--warn-ink); color: var(--warn-bg);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-top: 4px;
}
.notice__title { font-weight: 600; color: var(--warn-ink); margin-bottom: 6px; }
.notice p { margin: 0; font-size: 17px; color: var(--warn-body); text-wrap: pretty; }

.callout {
  border-left: 3px solid var(--accent); background: var(--accent-bg);
  padding: 16px 22px;
}
.callout p { margin: 0; font-size: 17px; color: var(--accent-dk); text-wrap: pretty; }

/* --- Maps ----------------------------------------------------------------- */

.map-btn {
  display: block; width: 100%; padding: 0;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #EFEDE6 0 10px, #E7E3DA 10px 20px);
  cursor: zoom-in;
}
.map-btn img { display: block; width: 100%; height: auto; }

.lightbox {
  position: fixed; inset: 0; background: rgba(28, 27, 25, .92);
  z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 48px; height: 48px;
  border: 1px solid rgba(250, 249, 247, .4);
  background: transparent; color: var(--bg);
  font-size: 22px; cursor: pointer;
}

/* --- Cards ---------------------------------------------------------------- */

.cards { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(28, 27, 25, .04);
  padding: 28px 24px 30px;
}
.card__head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  font-family: var(--serif); font-size: 26px; line-height: 1;
  color: var(--accent); margin-bottom: 16px;
}
.card__head svg { flex: none; }
.card p { margin: 0; font-size: 17px; color: var(--ink-soft); text-wrap: pretty; }

.share { width: 100%; max-width: var(--col); display: flex; flex-direction: column; gap: 14px; }
.share__row { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Form ----------------------------------------------------------------- */

.form {
  display: flex; flex-direction: column; gap: 22px;
  background: var(--bg); padding: clamp(22px, 3vw, 36px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field > .label { font-size: 16px; font-weight: 500; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.field-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

.input, .textarea, .file {
  font: inherit; font-size: 17px;
  border: 1px solid var(--line-mid); background: var(--bg-card); color: var(--ink);
  width: 100%;
}
.input { padding: 12px 14px; }
.textarea { padding: 14px; resize: vertical; }
.file { padding: 12px; border-style: dashed; font-size: 16px; }
.input:focus, .textarea:focus, .file:focus { border-color: var(--accent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--accent); background: var(--err-bg); }

.req { color: var(--accent); }
.hint { margin: 0; font-size: 15px; color: var(--muted); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.check--sm { font-size: 16px; }
.check__sub { color: var(--muted); font-size: 15px; display: block; }

.form__submit { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form__submit span { font-size: 15px; color: var(--muted); }
.form__intro { margin: 0; font-style: italic; color: var(--muted); text-wrap: pretty; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--err-bg); }
.alert p { margin: 0 0 8px; font-weight: 500; color: var(--accent-dk); }
.alert ul { margin: 0; padding-left: 20px; font-size: 17px; color: var(--accent-dk); }
.alert--ok { border-left-color: var(--ok-ink); background: var(--ok-bg); }
.alert--ok p { color: var(--ok-ink); margin: 0; }

.terms { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; color: var(--muted); }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding: clamp(48px, 6vw, 72px) var(--pad-x) 64px;
  border-top: 1px solid var(--line); background: var(--bg-alt);
  display: flex; justify-content: center;
}
.site-footer__inner {
  width: 100%; max-width: var(--wide);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand > div:first-child { font-family: var(--serif); font-size: 20px; }
.site-footer__links { display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.site-footer__copy { font-size: 15px; color: var(--muted); margin-top: 8px; }
.legal { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.legal__title { font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.legal p { margin: 0 0 10px; text-wrap: pretty; }
.legal p:last-child { margin-bottom: 0; }

/* --- Sticky bar ----------------------------------------------------------- */

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 56px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: stretch; z-index: 50;
}
.sticky-bar[hidden] { display: none; }
.sticky-bar a { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--bg); text-decoration: none; font-weight: 500; font-size: 16px; }
.sticky-bar a + a { flex: none; width: 170px; font-weight: 400; border-left: 1px solid rgba(250, 249, 247, .2); }
.sticky-bar button {
  width: 56px; background: transparent; border: none;
  border-left: 1px solid rgba(250, 249, 247, .2);
  color: var(--bg); font-size: 20px; cursor: pointer;
}
body.has-sticky { padding-bottom: 56px; }
@media (min-width: 900px) { .sticky-bar { display: none !important; } body.has-sticky { padding-bottom: 0; } }

/* --- Simple pages --------------------------------------------------------- */

.page { padding: var(--pad-y) var(--pad-x); display: flex; justify-content: center; }
.page__inner { width: 100%; max-width: var(--col); display: flex; flex-direction: column; gap: 22px; }
.page h1 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.2; }
.page h2 { font-size: clamp(20px, 2vw, 24px); margin-top: 14px; }
.page p, .page li { text-wrap: pretty; }
.page ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

@media print {
  .site-header, .sticky-bar, .lightbox, .share, .btn, .btn-ghost { display: none !important; }
  body { font-size: 12pt; }
}
