/* ═══════════════════════════════════════════════════════════════════
   Prázdniny u babičky — "Painted Pastoral" design system
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────── 1. CSS VARIABLES ─────────────────────── */
:root {
  --ink:          #2a2520;
  --paper:        #f5efe2;
  --paper-deep:   #ebe1cc;
  --paper-darker: #d5c8ad;
  --forest:       #2f4a32;
  --forest-soft:  #5a7257;
  --forest-light: #8aab84;
  --clay:         #b85a3a;
  --clay-light:   #d4795c;
  --ochre:        #c79b3a;
  --ochre-light:  #ddb95e;
  --cobalt:       #2b3a6b;
  --lilac:        #9a86a8;
  --white:        #ffffff;

  --shadow-sm:  0 1px 4px rgba(42,37,32,.07);
  --shadow-md:  0 3px 16px rgba(42,37,32,.11);
  --shadow-lg:  0 8px 40px rgba(42,37,32,.16);
  --shadow-pol: 2px 4px 18px rgba(42,37,32,.20), 0 1px 4px rgba(42,37,32,.08);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Fraunces', Georgia, serif;
  --font-ui:      'Manrope', system-ui, sans-serif;

  --container-max: 1160px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);
  --section-pad:   clamp(3.5rem, 7vw, 6rem);
  --nav-h:         72px;

  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

/* ───────────────────────── 2. RESET / BASE ────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw + .5rem, 1.125rem);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

fieldset {
  border: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ──────────────────── 3. PAPER GRAIN TEXTURE ──────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.38'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ──────────────────────── 4. TYPOGRAPHY ───────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h2 {
  font-size: clamp(2rem, 3.5vw + 1rem, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw + .5rem, 1.75rem);
  margin-bottom: 1rem;
}

p + p {
  margin-top: 0.85em;
}

strong { font-weight: 500; }

/* eyebrow label above headings */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.6rem;
  display: block;
}

/* ───────────────────────── 5. LAYOUT ───────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-lead {
  font-size: clamp(1rem, 1.1vw + .4rem, 1.15rem);
  max-width: 640px;
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

/* ─────────────────────────── 6. NAV ────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(245,239,226,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 16px rgba(42,37,32,.09);
}

.nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--paper);
}

.site-header.is-scrolled .nav {
  color: var(--ink);
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out);
}
.nav-logo:hover img { transform: scale(1.07); }

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
}

.nav-menu a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-menu a:hover { opacity: 1; }
.nav-menu a:hover::after { transform: scaleX(1); }

/* hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav.nav-open .nav-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(47,74,50,0.97);
  padding: 1.5rem var(--container-pad) 2rem;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-scrolled .nav.nav-open .nav-menu {
  background: rgba(245,239,226,0.97);
  color: var(--ink);
}

/* ─────────────────────────── 7. HERO ───────────────────────────── */
.hero {
  background-color: var(--forest);
  color: var(--paper);
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: var(--section-pad);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(199,155,58,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(47,74,50,.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 540px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--ochre-light);
  animation: fadeRise 0.8s var(--ease-out) both;
}

.hero-heading {
  font-size: clamp(3rem, 7vw + 1rem, 6rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--paper);
  animation: fadeRise 0.9s 0.1s var(--ease-out) both;
}
.hero-heading em {
  font-style: italic;
  color: var(--ochre-light);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw + .5rem, 1.2rem);
  opacity: 0.82;
  max-width: 460px;
  margin-bottom: 2rem;
  animation: fadeRise 1s 0.2s var(--ease-out) both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ochre);
  color: var(--forest);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(199,155,58,.35);
  transition: background 0.25s, transform 0.2s var(--ease-out), box-shadow 0.25s;
  animation: fadeRise 1s 0.3s var(--ease-out) both;
}
.btn-primary:hover {
  background: var(--ochre-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199,155,58,.45);
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: center;
  animation: fadeRise 1.1s 0.15s var(--ease-out) both;
}

.matted-frame {
  background: var(--paper);
  padding: 12px 12px 44px;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: inline-block;
}

.matted-frame img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.gallery-placard {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.45;
  font-style: italic;
}

.horse-deco {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--paper);
  pointer-events: none;
}

/* ──────────────────────── 8. SECTION DIVIDERS ─────────────────── */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
  color: var(--ochre);
}

.section-divider--slim {
  padding: 0.5rem 0;
  color: var(--paper-darker);
}

/* ──────────────────── 9. O ZAKLADATELCE ───────────────────────── */
.section-onas {
  padding: var(--section-pad) 0;
  background: var(--paper);
}

.onas-grid {
  display: grid;
  gap: 3rem;
}

.onas-text h2 {
  font-size: clamp(2.2rem, 4vw + .8rem, 3.2rem);
}

.onas-text p {
  max-width: 520px;
}

.polaroid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 1rem;
}

.polaroid {
  background: var(--white);
  padding: 8px 8px 28px;
  box-shadow: var(--shadow-pol);
  margin: 0;
  line-height: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.polaroid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.polaroid--a { transform: rotate(-2.4deg); }
.polaroid--b { transform: rotate(1.8deg) translateY(-8px); }
.polaroid--c { transform: rotate(-1.2deg) translateY(6px); }
.polaroid--d { transform: rotate(2.6deg); }

.polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 4px 8px 28px rgba(42,37,32,.22);
  z-index: 2;
  position: relative;
}

/* ──────────────────────── 10. STÁJ A OKOLÍ ────────────────────── */
.section-staj {
  padding: var(--section-pad) 0;
  background: var(--paper-deep);
}

.staj-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.staj-text h2 {
  font-size: clamp(2rem, 3.5vw + .8rem, 3rem);
}

.address-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-style: normal;
  background: var(--paper);
  border: 1.5px solid var(--paper-darker);
  border-left: 3px solid var(--forest-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.6;
}

.address-card svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--forest-soft);
}

.address-note {
  display: block;
  font-size: 0.8rem;
  opacity: 0.65;
  font-style: italic;
  margin-top: 0.2rem;
}

.pull-quote {
  border-left: 2px solid var(--ochre);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw + .4rem, 1.35rem);
  font-style: italic;
  color: var(--forest);
}
.pull-quote p { margin: 0; }

.map-sketch {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  display: block;
}

/* ───────────────────────── 11. TURNUSY ────────────────────────── */
.section-turnusy {
  padding: var(--section-pad) 0;
  background: var(--paper);
}

.section-turnusy .eyebrow { margin-bottom: 0.4rem; }
.section-turnusy h2 { margin-bottom: 2.5rem; }

.tickets-wrap {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.ticket {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--paper-darker);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.ticket:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ticket-stub {
  background: var(--forest);
  color: var(--paper);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  position: relative;
}

/* perforated edge below stub */
.ticket-stub::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 20px;
  background: radial-gradient(circle at 50% 0, var(--paper) 0 9px, transparent 9px) 0 0 / 24px 20px;
  pointer-events: none;
}

.ticket-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ochre-light);
}

.ticket-stub-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.ticket-body {
  padding: 1.5rem 1.5rem 1rem;
  flex: 1;
}

.ticket-type {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-soft);
  margin-bottom: 0.4rem;
}

.ticket-date {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw + .5rem, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.ticket-details {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.ticket-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.ticket-price strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clay);
}
.ticket-price-note {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  opacity: 0.65;
}

.ticket-cta {
  padding: 0 1.5rem 1.5rem;
}

.btn-ticket {
  display: inline-block;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.65rem 1.35rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.btn-ticket:hover {
  background: var(--forest-soft);
  transform: translateX(3px);
}

/* ─────────────────────── 12. PROGRAM TIMELINE ─────────────────── */
.program-wrap {
  margin-bottom: 3.5rem;
  max-width: 680px;
}

.program-title {
  font-size: clamp(1.2rem, 2vw + .5rem, 1.5rem);
  margin-bottom: 1.25rem;
  color: var(--forest);
}

.program-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.program-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--paper-deep);
}
.program-list li:last-child { border-bottom: none; }

.program-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2C6.13 2 3 5.13 3 9c0 2 .81 3.8 2.12 5.1l1.42-1.42A4.94 4.94 0 0 1 5 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.38-.56 2.63-1.46 3.54l1.41 1.41A7 7 0 0 0 17 9c0-3.87-3.13-7-7-7zM7 16v2h2v-2H7zm4 0v2h2v-2h-2z' fill='%232f4a32' opacity='.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.prog-activity {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ─────────────────────── 13. PACKING LIST ─────────────────────── */
.packing-wrap {
  max-width: 640px;
}

.packing-title {
  font-size: clamp(1.2rem, 2vw + .5rem, 1.5rem);
  margin-bottom: 1.25rem;
  color: var(--forest);
}

.packing-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .packing-list { grid-template-columns: 1fr; }
}

.pack-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  user-select: none;
}
.pack-item:hover { border-color: var(--paper-deeper, var(--paper-darker)); }

.pack-category {
  grid-column: 1 / -1;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-soft);
  padding: 0.9rem 0 0.35rem;
  border-bottom: 1px solid var(--paper-darker);
  margin-top: 0.25rem;
}
.pack-category:first-child { margin-top: 0; padding-top: 0; }

.pack-safety {
  color: var(--ochre);
  font-weight: 400;
  opacity: 0.8;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
}

.pack-note {
  font-size: 0.78em;
  opacity: 0.55;
  font-style: italic;
  display: block;
  line-height: 1.3;
  margin-top: 1px;
}

.pack-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--forest-soft);
  border-radius: 2px;
  background: var(--paper);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.pack-item input:checked ~ .checkmark {
  background: var(--forest);
  border-color: var(--forest);
}

.pack-item input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: 2px solid var(--paper);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.pack-item input:focus-visible ~ .checkmark {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--forest-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
  transition: color 0.2s;
}
.download-link:hover { color: var(--forest); }

/* ──────────────────────── 14. PŘIHLÁŠKA ───────────────────────── */
.section-prihlaska {
  padding: var(--section-pad) 0;
  background: var(--paper-deep);
}

.section-prihlaska .eyebrow { margin-bottom: 0.4rem; }
.section-prihlaska h2 { margin-bottom: 0.5rem; }

.form-card {
  background: var(--paper);
  border: 1.5px solid var(--paper-darker);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 760px;
}

/* form message */
.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.form-message--success {
  background: rgba(47,74,50,.08);
  border: 1.5px solid var(--forest-soft);
  color: var(--forest);
}
.form-message--error {
  background: rgba(184,90,58,.08);
  border: 1.5px solid var(--clay);
  color: var(--clay);
}
.form-message--demo {
  background: rgba(199,155,58,.1);
  border: 1.5px solid var(--ochre);
  color: var(--ochre);
}

/* fieldsets */
.form-group {
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.form-legend {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
  border-bottom: 1.5px solid var(--paper-deeper, var(--paper-darker));
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  display: block;
}

.form-note {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  opacity: 0.6;
  margin-bottom: 1rem;
  font-style: italic;
}

/* fields */
.field {
  margin-bottom: 1.1rem;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 540px) {
  .field-row-2 { grid-template-columns: 1fr; }
}

.field-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.required {
  color: var(--clay);
  text-decoration: none;
  border: none;
  font-size: inherit;
}

abbr.required[title] {
  cursor: default;
  text-decoration: none;
}

.field-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--paper-darker);
  border-radius: 0;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.field-input:focus {
  border-bottom-color: var(--forest-soft);
}
.field-input::placeholder {
  opacity: 0.4;
  font-size: 0.875rem;
}
.field-input.is-invalid {
  border-bottom-color: var(--clay);
}

/* radio */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--forest-soft);
  border-radius: 50%;
  background: var(--paper);
  position: relative;
  transition: border-color 0.2s;
}

.radio-label input:checked ~ .radio-custom {
  border-color: var(--forest);
}
.radio-label input:checked ~ .radio-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--forest);
  border-radius: 50%;
}

.radio-label input:focus-visible ~ .radio-custom {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.field-hint {
  font-size: 0.82em;
  opacity: 0.6;
}

/* checkbox */
.checkbox-wrap {
  margin-bottom: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--forest-soft);
  border-radius: 2px;
  background: var(--paper);
  position: relative;
  margin-top: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--forest);
  border-color: var(--forest);
}
.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: 2px solid var(--paper);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.checkbox-label input:focus-visible ~ .checkbox-custom {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.checkbox-label a {
  color: var(--forest-soft);
  font-weight: 500;
}
.checkbox-label a:hover { color: var(--forest); }

/* field errors */
.field-error {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--clay);
  margin-top: 0.3rem;
  min-height: 0;
}
.field-error:empty { display: none; }

/* form submit */
.form-submit-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--paper-deep);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 1rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 12px rgba(47,74,50,.25);
  transition: background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  width: 100%;
  max-width: 360px;
}
.btn-submit:hover:not(:disabled) {
  background: var(--forest-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47,74,50,.3);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* bank details */
.bank-details {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--paper-darker);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.75;
}
.bank-details p { margin-bottom: 0.2rem; }
.bank-note {
  margin-top: 0.5rem;
  font-size: 0.76rem;
  font-style: italic;
  opacity: 0.8;
}
.bank-details .download-link {
  margin-top: 0.75rem;
  opacity: 1;
}

/* ─────────────────────────── 15. FOOTER ───────────────────────── */
.site-footer {
  background: var(--forest);
  color: var(--paper);
  padding: var(--section-pad) 0 2rem;
}

.footer-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ochre-light);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: background 0.2s;
}
.contact-card:hover { background: rgba(255,255,255,.08); }

.contact-role {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre-light);
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

.contact-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-phone,
.contact-email,
.contact-address {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  opacity: 0.8;
  text-decoration: none;
  line-height: 1.7;
  transition: opacity 0.2s;
}
.contact-phone:hover, .contact-email:hover { opacity: 1; text-decoration: underline; }

.map-embed {
  margin-top: 1rem;
  position: relative;
}

.map-embed iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: var(--radius-sm);
  filter: sepia(0.2) contrast(0.95);
}

.map-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--ochre-light);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s;
}
.map-link:hover { opacity: 1; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  opacity: 0.5;
  line-height: 1.6;
}

/* ─────────────────────── 16. SCROLL REVEALS ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

/* stagger siblings */
.reveal:nth-child(2).in-view { transition-delay: 0.1s; }
.reveal:nth-child(3).in-view { transition-delay: 0.2s; }
.reveal:nth-child(4).in-view { transition-delay: 0.3s; }

/* ──────────────────────── 17. ANIMATIONS ──────────────────────── */
@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────── 18. RESPONSIVE ───────────────────────── */

/* ── 720px: tablet ── */
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; }
  .nav.nav-open .nav-menu {
    /* override mobile open state */
    position: static;
    background: none;
    flex-direction: row;
    padding: 0;
    gap: 2rem;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hero-content { flex: 1 1 auto; max-width: 500px; }
  .hero-visual { flex: 0 0 auto; max-width: 42%; }
  .matted-frame img { max-height: 520px; }

  .onas-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .staj-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .map-sketch { max-width: 100%; }

  .tickets-wrap { grid-template-columns: 1fr 1fr; }

  .ticket {
    flex-direction: column;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 1080px: desktop ── */
@media (min-width: 1080px) {
  .hero {
    padding-top: calc(var(--nav-h) + 3rem);
    min-height: 100svh;
  }

  .hero-visual { max-width: 44%; }
  .matted-frame img { max-height: 600px; }

  .polaroid img { height: 200px; }

  .footer-grid { grid-template-columns: 1fr 1fr 2fr; }
}

/* ─────────────────── 19. PREFERS REDUCED MOTION ───────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-eyebrow,
  .hero-heading,
  .hero-sub,
  .btn-primary,
  .hero-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-photo {
    transform: none !important;
  }
}

/* ──────────────────────── 20. COOKIE BANNER ───────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 2.5rem);
  max-width: 720px;
  background: var(--paper);
  border: 1.5px solid var(--paper-darker);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(42,37,32,.18);
  padding: 1.25rem 1.5rem;
  animation: cookieSlideUp 0.4s var(--ease-out) both;
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text { flex: 1 1 260px; }

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--forest);
}

.cookie-banner__body {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.55;
  opacity: 0.72;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s var(--ease-out);
  white-space: nowrap;
}
.cookie-btn:hover { transform: translateY(-1px); }

.cookie-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--paper-darker);
  color: var(--ink);
  opacity: 0.7;
}
.cookie-btn--ghost:hover {
  border-color: var(--forest-soft);
  opacity: 1;
}

.cookie-btn--solid {
  background: var(--forest);
  border: 1.5px solid var(--forest);
  color: var(--paper);
}
.cookie-btn--solid:hover { background: var(--forest-soft); border-color: var(--forest-soft); }

@media (max-width: 480px) {
  .cookie-banner { bottom: 0; left: 0; right: 0; width: 100%; transform: none; border-radius: var(--radius-md) var(--radius-md) 0 0; border-bottom: none; }
  .cookie-banner[hidden] { display: none; }
  @keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* ───────────────────────── 21. PRINT ──────────────────────────── */
@media print {
  body::after { display: none; }
  .site-header,
  .horse-deco,
  .section-divider,
  .matted-frame,
  .hero-visual,
  .onas-gallery,
  .staj-map,
  .map-embed,
  .packing-wrap,
  .tickets-wrap,
  .program-wrap,
  .btn-primary,
  .btn-ticket,
  .btn-submit {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 1.5rem 0;
    background: none;
    color: var(--ink);
  }

  .section-prihlaska {
    padding: 1rem 0;
  }

  .form-card {
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 0;
  }

  .field-input {
    border-bottom: 1px solid #ccc;
  }

  .radio-custom,
  .checkbox-custom {
    border: 1.5px solid #666;
  }

  a::after { content: none !important; }

  .container { max-width: 100%; padding: 0; }
}
