/* ==========================================================================
   KNAP — style.css
   Zdroj: inline CSS z knap-web.html, přepsáno mobile-first.
   Pořadí: tokeny → základ → hlavička/hero → sekce → komponenty → formulář
           → patička → přístupnost → breakpointy (768+, 1440+)
   ========================================================================== */

/* --- Design tokeny ------------------------------------------------------- */
:root {
  /* barvy převzaté z předlohy */
  --bg: #eef1f2;
  --card: #fff;
  --ink: #17242c;
  --mute: #4f616b;
  --line: #cdd6da;
  --slate: #1d333f;
  --copper: #a4521f;
  --copper-strong: #8a4419;
  --on: #fff;
  --patina: #2f6f66;
  --danger: #a11a0f;

  /* typografie */
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* spacing a layout */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 14px;
  --space-4: 20px;
  --space-5: 32px;
  --space-6: 56px;
  --radius: 4px;
  --radius-lg: 6px;
  --container: 1060px;
  --gutter: 20px;
  --focus: #e08a4c;
  --focus-dark: #8a4419;
}

/* --- Fonty (lokální, žádné CDN) ----------------------------------------- */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600-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: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700-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: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-var-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 Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-var-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Základ ------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
}
.w { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.05;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 8vw, 78px); }
h2 { font-size: clamp(32px, 5vw, 46px); }
h3 { font-size: 26px; }
p { margin: 0 0 var(--space-3); max-width: 65ch; }
a { color: var(--copper); }
a:hover { color: var(--copper-strong); }
img { max-width: 100%; }

/* --- Hlavička a navigace ------------------------------------------------- */
header { background: var(--slate); color: var(--on); }
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
header nav { padding-top: 16px; padding-bottom: 16px; }
.logo { font: 700 34px var(--head); letter-spacing: .08em; }
.logo small {
  display: block;
  font: 600 13px var(--body);
  letter-spacing: 0;
  opacity: .85;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  color: var(--on);
  font: 700 16px var(--body);
  padding: 8px 14px;
  cursor: pointer;
}
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--on); text-decoration: none; }
nav a:hover { color: var(--on); text-decoration: underline; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  padding-top: 32px;
  padding-bottom: 44px;
}
.hero p { font-size: 20px; opacity: .92; }
.hero-contact { margin-top: 18px; font-size: 18px; }
.hero-contact a { color: var(--on); }
.btn {
  display: inline-block;
  background: var(--copper);
  color: var(--on);
  padding: 13px 22px;
  border: 0;
  border-radius: var(--radius);
  font: 700 18px var(--body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--copper-strong); color: var(--on); }
.btn.alt {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}
.btn.alt:hover { background: rgba(255, 255, 255, .12); color: inherit; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 400px;
  justify-self: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.falcon {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  justify-self: center;
}

/* --- Sekce ---------------------------------------------------------------- */
section { padding: var(--space-6) 0; }
section.white { background: var(--card); }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: 24px;
}
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--patina);
  padding: 22px;
  border-radius: var(--radius);
}
.white .box { background: var(--bg); }
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
svg { width: 100%; height: auto; }
ol.spots { padding-left: 22px; }
ol.spots li { margin-bottom: 8px; }
.subhead { margin-top: 34px; }

.price {
  background: var(--slate);
  color: var(--on);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  margin-top: 28px;
}
.price b { font: 700 clamp(48px, 10vw, 64px)/1 var(--head); }

/* --- FAQ ----------------------------------------------------------------- */
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  max-width: 760px;
}
summary { font-weight: 700; cursor: pointer; }

/* --- Formulář ------------------------------------------------------------ */
form {
  display: grid;
  gap: var(--space-3);
  max-width: 640px;
  margin-top: var(--space-4);
}
label { display: grid; gap: var(--space-1); font-weight: 600; }
input, select, textarea {
  font: inherit;
  padding: 10px;
  border: 1px solid #76858d;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 2px;
}
.field-error {
  color: var(--danger);
  font: 600 15px/1.4 var(--body);
}
#out { display: grid; gap: 10px; max-width: 640px; margin-top: 18px; }
#out[hidden] { display: none; }
.out-actions { margin: 0; }
#stav { font-size: 16px; color: var(--mute); }
.send-status { font-weight: 600; margin: 14px 0 0; max-width: 640px; }
.send-status:empty { display: none; }
.send-status.ok { color: var(--patina); }

/* --- Patička ------------------------------------------------------------- */
footer { background: var(--slate); color: var(--on); padding: 40px 0; }
footer a { color: var(--on); }

/* --- Přístupnost --------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--focus-dark);
  outline-offset: 2px;
}
header :focus-visible,
footer :focus-visible,
.price :focus-visible,
.btn.alt:focus-visible {
  outline-color: var(--focus);
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Breakpoint 768 px --------------------------------------------------- */
@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding-top: 36px;
    padding-bottom: 56px;
  }
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .split {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-5);
  }
  .hero p { font-size: 21px; }
}

/* --- Breakpoint 1440 px -------------------------------------------------- */
@media (min-width: 1440px) {
  :root { --gutter: 24px; }
  body { font-size: 19px; }
  section { padding: 64px 0; }
}

/* --- Mobilní navigace (jen když je JS) ----------------------------------- */
@media (max-width: 767px) {
  .js .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0 4px;
  }
  .js .nav-links.open { display: flex; }
  .js .nav-links a { padding: 10px 2px; }
  .js .nav-toggle { display: inline-block; }
}

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