/* /vanoce — vánoční poukaz. Hrdinou stránky je samotný poukaz: mění se podle výběru ve formuláři.
   Barvy: smrk (poukaz, patička), teplý papír (pozadí), mosaz (jen písmo na poukazu), cesmína (jen tlačítko koupit). */

.vanoce {
  --smrk: #1E3B32;
  --smrk-soft: #E6EEE9;
  --mraz: #F5F4EE;
  --paper: #FFFCF7;
  --ink: #17211D;
  --muted: #62665C;
  --line: #E3DACE;
  --mosaz: #C9A46A;
  --cesmina: #A52F35;
  --cesmina-dark: #84232A;
  --radius: 14px;
  --display: Georgia, serif;
  --text: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  margin: 0;
  background-color: var(--mraz);
  background-image: radial-gradient(ellipse at 0 0, #DCE6DC 0, transparent 48%), radial-gradient(ellipse at 100% 8%, #EAE0CF 0, transparent 40%);
  background-repeat: no-repeat;
  background-size: 100% 1100px;
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.vanoce a { color: inherit; }
.vanoce a:focus-visible,
.vanoce button:focus-visible,
.vanoce summary:focus-visible {
  outline: 2px solid var(--smrk);
  outline-offset: 3px;
}

.vanoce h1,
.vanoce h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.vanoce h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.v-season-bar { background: #244C3C; color: #FFF8E9; text-align: center; padding: 10px 16px; font-size: 12px; letter-spacing: .08em; }
.v-season-bar span { color: #DEC398; padding: 0 12px; }

/* Horní lišta */
.v-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vanoce .v-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-color, var(--smrk));
  font-family: var(--text);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -.04em;
}

.v-top__mark {
  display: block;
  flex: none;
  width: 36px;
  height: 44px;
  background: currentColor;
  -webkit-mask: url('/img/logo-mono.svg') center / contain no-repeat;
  mask: url('/img/logo-mono.svg') center / contain no-repeat;
}

.v-top__end {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.v-top__tel { color: var(--muted); }
.v-top__tel:hover { color: var(--ink); }

/* Nákup je součástí prvního obrazovky, bez samostatného úvodu. */
.v-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .13em; color: #3E6653; }
.vanoce .v-buy h1 { max-width: none; margin: 20px 0 18px; font-family: Georgia, serif; font-size: clamp(42px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.v-buy h1 em { font-weight: 400; color: #A52F35; }
.v-scene { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 210px 150px; gap: 6px; border-radius: 8px; overflow: hidden; }
.v-scene__tile { position: relative; margin: 0; min-width: 0; min-height: 0; overflow: hidden; }
.v-scene__tile:first-child { grid-column: span 2; }
.v-scene__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v-scene__tile:first-child img { object-position: center 68%; }
.v-scene__tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, #17211DCC); color: white; font-size: 13px; font-weight: 500; }
.v-buy__intro { isolation: isolate; }
.v-buy__intro::before { content: '✳'; position: absolute; right: 4px; top: 24px; color: #B7C8BB; font-size: 72px; z-index: -1; line-height: 1; }
.v-assurance { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0; font-size: 13px; color: #5D594F; border-bottom: 1px solid var(--line); }
.v-assurance span::before { content: '✓'; margin-right: 8px; color: #6C7247; }
.v-preview { margin-top: 16px; }
.v-preview__label { font-size: 13px; color: var(--muted); margin: 20px 0 16px; }
.v-preview .v-ticket { margin: 14px 0 28px; transform: none; animation: none; }
.v-form__heading { position: relative; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.v-form__heading h2 { font-family: Georgia, serif; font-size: 30px; letter-spacing: -.04em; margin: 10px 0; }
.v-form__heading > p:last-child { color: var(--muted); font-size: 14px; }
.v-form__gift { position: absolute; right: 0; top: -4px; color: #A52F35; font-size: 40px; line-height: 1; }
#xmas-voucher-form { scroll-margin-top: 20px; }

/* Nákup: poukaz vlevo, formulář vpravo */
.v-buy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 32px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}

.v-buy__intro {
  position: sticky;
  top: 24px;
}

.vanoce h1 {
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: 0.98;
  max-width: 11ch;
}

.v-lead {
  margin-top: 20px;
  max-width: 36ch;
  font-size: 17px;
  color: var(--muted);
}

/* Světlý vánoční poukaz s dárkovou stuhou; výběr se propisuje živě. */
.v-ticket {
  position: relative;
  margin: 24px 0;
  padding: 28px 30px 24px;
  border: 1px solid #DDC9A7;
  border-radius: 4px;
  background: radial-gradient(ellipse at 0 100%, #E4EBDD, transparent 58%), #FFF9E9;
  color: #244C3C;
  box-shadow: 0 12px 28px -16px #684D32;
}
.v-ticket::before { content: ''; position: absolute; inset: 8px; border: 1px solid #DDC9A7; pointer-events: none; }
.v-ticket::after { content: '✧  ✳  ✧'; position: absolute; right: 22px; bottom: 64px; color: #B49356; letter-spacing: 5px; font-size: 22px; pointer-events: none; }
.v-ticket__ribbon { position: absolute; right: 24px; top: -12px; width: 72px; height: 82px; background: linear-gradient(90deg, transparent 24px, #A52F35 24px, #B8383E 37px, #A52F35 49px, transparent 49px); pointer-events: none; }
.v-ticket__ribbon svg { position: absolute; width: 80px; height: 42px; left: -4px; top: -4px; }
.v-ticket__head { display: flex; flex-direction: column; gap: 4px; padding-right: 66px; font-size: 12px; }
.v-ticket__head span:first-child { font-size: 16px; font-weight: 500; }
.v-ticket__head span:last-child { color: #80613C; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.v-ticket__title { margin-top: 24px; font-family: Georgia, serif; font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -.04em; line-height: 1.1; color: #A52F35; }
.v-ticket__what { margin-top: 12px; font-size: 15px; line-height: 1.55; }
.v-ticket__what span { font-weight: 500; }
.v-ticket__note { position: relative; z-index: 1; margin: 20px 0 24px; padding-right: 48px; font-family: Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.v-ticket__note.is-empty { color: #6B7058; }
.v-ticket__foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 12px; border-top: 1px solid #DDC9A7; font-size: 10px; color: #686751; }

.v-facts {
  margin-top: 36px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 16px;
}

.v-facts li {
  position: relative;
  padding-left: 22px;
}

.v-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mosaz);
}

/* Formulář */
.v-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 60px #59452F0A;
  padding: 28px;
  display: grid;
  gap: 22px;
}

.v-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.v-field legend,
.v-input > span {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.v-input small,
.v-field legend small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.v-choices {
  display: grid;
  gap: 8px;
}

.v-choices--duration { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v-choices--people { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }

.v-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 120ms, background-color 120ms;
}

.v-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.v-choice__len {
  font-family: var(--text);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.v-choices--duration .v-choice { align-items: center; text-align: center; padding: 14px 6px 12px; gap: 6px; }
.v-choices--duration .v-choice__price { font-family: var(--text); font-size: 13px; color: var(--muted); }
.v-choices--duration .v-choice:has(input:checked) .v-choice__price { color: var(--smrk); font-weight: 500; }

.v-choice__name {
  font-size: 14px;
  line-height: 1.2;
  color: var(--muted);
}

.v-choice__price {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
  white-space: nowrap;
}

.v-choice--small .v-choice__price {
  font-family: var(--text);
  font-size: 14px;
  color: var(--muted);
}

.v-choice--small .v-choice__name { color: var(--ink); font-size: 16px; }

.v-choice:hover { border-color: #AEBBB4; }

.v-choice:has(input:checked) {
  border-color: var(--smrk);
  background: var(--smrk-soft);
  box-shadow: 0 0 0 1px var(--smrk) inset;
}

.v-choice:has(input:checked) .v-choice__name { color: var(--smrk); }

.v-choice:has(input:focus-visible) {
  outline: 2px solid var(--smrk);
  outline-offset: 2px;
}

.v-extras {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.v-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.v-extra + .v-extra { border-top: 1px solid var(--line); }

.v-extra input,
.v-pay__opt input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--smrk);
  flex: none;
}

.v-extra__name { flex: 1; }
.v-extra__price { color: var(--muted); white-space: nowrap; }

.v-input input,
.v-input textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
}

.v-input textarea { resize: vertical; }

.v-input input:focus,
.v-input textarea:focus {
  outline: none;
  border-color: var(--smrk);
  box-shadow: 0 0 0 3px rgba(30, 59, 50, 0.15);
}

.v-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.v-pay {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.v-pay__opt {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
}

.v-pay__opt + .v-pay__opt { border-top: 1px solid var(--line); }
.v-pay__name { font-weight: 500; }
.v-pay__note { grid-column: 2; font-size: 14px; color: var(--muted); }

.v-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--cesmina);
  color: #FFFFFF !important;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 120ms;
}

.v-buy-btn:hover { background: var(--cesmina-dark); }
.v-buy-btn:disabled { opacity: 0.7; cursor: progress; }

.v-legal { margin-top: -6px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.v-legal__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 8px; }
.v-legal__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--smrk); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #A6B5A4; }
.v-legal__links a:hover { text-decoration-color: currentColor; }

.v-status:empty,
.v-paybox:empty { display: none; }
.v-status { font-weight: 500; color: var(--smrk); }
.v-status--error { color: var(--cesmina); }

/* QR / karta po odeslání */
.v-qr {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--mraz);
  text-align: left;
}

.v-qr__title { font-weight: 500; font-size: 18px; }
.v-qr img { justify-self: center; width: 200px; height: 200px; background: #FFFFFF; padding: 8px; border-radius: 10px; }
.v-qr dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.v-qr dt { color: var(--muted); }
.v-qr dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .v-qr dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .v-qr dt { font-size: 13px; }
  .v-qr dd { margin-bottom: 8px; overflow-wrap: anywhere; }
}
.v-qr__note { font-size: 14px; color: var(--muted); }

/* Telefon: kód nejde naskenovat sám sebou — místo „naskenujte“ rada uložit QR do galerie (jako hlavní stránka) */
.v-qr__hint--phone { display: none; }
@media (pointer: coarse) {
  .v-qr__hint--scan { display: none; }
  .v-qr__hint--phone { display: block; }
}

.v-qr__save {
  justify-self: center;
  padding: 10px 18px;
  border: 1px solid var(--smrk);
  border-radius: 10px;
  color: var(--smrk) !important;
  font-weight: 500;
}

.v-qr dd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.v-copy {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}

.v-copy:hover { border-color: var(--smrk); color: var(--smrk); }

/* Prostor */
.v-place,
.v-steps,
.v-quotes,
.v-faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

.v-place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: end;
}

.v-place__text p { color: var(--muted); max-width: 34ch; }

.v-photos {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 460px;
}

.v-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.v-photos img:first-child { grid-row: span 2; }

/* Jak to funguje — skutečně tři kroky po sobě */
.v-steps ol {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 12px;
}

.v-steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.v-steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: var(--smrk);
}

.v-steps strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }

.v-quotes > h2 { max-width: 22ch; margin: 12px 0 28px; }
.v-quotes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.v-quote { margin: 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.v-quote__mark { display: block; height: 40px; color: var(--cesmina); font-family: Georgia, serif; font-size: 64px; line-height: 1; }
.v-quote__text { font-size: 16px; color: var(--ink); line-height: 1.75; overflow-wrap: anywhere; }
.v-quote__text p + p { margin-top: 12px; }
.v-quotes__more { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 16px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

.v-faq details { max-width: 760px; border-bottom: 1px solid var(--line); }

.v-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.v-faq summary::-webkit-details-marker { display: none; }

.v-faq summary::after {
  content: '+';
  font-family: var(--display);
  font-size: 26px;
  line-height: 0.9;
  color: var(--smrk);
  transition: transform 160ms;
}

.v-faq details[open] summary::after { transform: rotate(45deg); }
.v-faq details p { padding-bottom: 18px; color: var(--muted); max-width: 64ch; }
.v-faq details a { text-decoration: underline; }

.v-foot {
  background: var(--smrk);
  color: #DCE3DE;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 15px;
}

.v-foot { align-items: center; }
.v-foot > p { flex-basis: 100%; text-align: center; }
.v-foot > a { display: inline-flex; align-items: center; min-height: 44px; }
.v-foot a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.v-cookie-settings { padding: 10px 16px; min-height: 44px; border: 1px solid #789487; border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.v-cookie-settings:hover { background: #FFFFFF12; border-color: #DCE3DE; }
.vanoce #cookie-banner { left: 20px; right: 20px; bottom: 20px; width: auto; max-width: 680px; margin: 0 auto; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 12px 60px #17211D33; }
.vanoce #cookie-banner p { color: var(--ink); font-size: 14px; line-height: 1.65; }
.vanoce #cookie-banner a { color: var(--smrk); text-underline-offset: 3px; }
.vanoce #cookie-banner .cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vanoce #accept-cookies, .vanoce #reject-cookies { min-height: 44px; padding: 10px 20px; border-radius: 6px; font: inherit; font-size: 14px; }
.vanoce #accept-cookies { background: var(--smrk); border: 1px solid var(--smrk); color: white; }
.vanoce #reject-cookies { background: transparent; border: 1px solid var(--smrk); color: var(--smrk); }

/* Lepivé tlačítko jen na mobilu, když formulář není vidět */
.v-sticky { display: none; }

@media (max-width: 960px) {
  .v-buy {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 8px 20px 72px;
  }

  /* Na mobilu formulář hned pod poukazem, výhody až za ním */
  .v-buy { gap: 0; }
  .v-buy__intro { position: static; }
  .v-lead { margin-top: 14px; font-size: 17px; }
  .v-ticket { margin-top: 28px; }
  .v-form { order: 1; margin-top: 28px; }
  .v-facts { order: 2; margin-top: 28px; }




  .v-place { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .v-steps ol,
  .v-quotes__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .v-place, .v-steps, .v-quotes, .v-faq { padding: 0 20px 72px; }
  .v-top { padding: 16px 20px; }
}

@media (max-width: 600px) {
  .vanoce { font-size: 16px; }
  .v-top__tel { display: none; }
  .v-buy { padding-top: 20px; }
  .vanoce .v-buy h1 { font-size: clamp(36px, 9vw, 48px); margin: 14px 0; }
  .v-lead { font-size: 15px; line-height: 1.6; }
  .v-scene { grid-template-rows: 170px 116px; margin-top: 20px; }
  .v-buy__intro { display: contents; }
  .v-buy__intro::before { display: none; }
  .v-preview { order: 1; }
  .v-form { order: 2; }
  .v-buy__intro::before { right: 0; top: 24px; font-size: 56px; }
  .v-scene__tile figcaption { font-size: 12px; padding: 22px 10px 8px; }
  .v-assurance { padding: 14px 0; gap: 6px 14px; font-size: 11px; }
  .v-preview { margin-top: 8px; }
  .v-facts { display: none; }
  .v-form__heading { display: none; }
  .v-form__gift { font-size: 32px; }
  .v-foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .v-ticket { padding: 24px 24px 20px; }
  .v-ticket__foot { flex-direction: column; gap: 2px; }
  .v-form { padding: 20px; border-radius: 8px; gap: 20px; margin-top: 20px; }
  .v-choices--duration { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-choices--people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-row { grid-template-columns: minmax(0, 1fr); }
  .v-photos { height: 340px; grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
  .v-photos img:first-child { grid-row: auto; grid-column: span 2; }

  .v-sticky.visible {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
  }

  .v-sticky .v-buy-btn { box-shadow: 0 10px 30px -10px rgba(23, 33, 29, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .v-ticket { animation: none; }
  .v-choice, .v-buy-btn, .v-faq summary::after { transition: none; }
}
