/* ===== U Krocana – lesní samoobslužný bar ===== */

:root {
  --green-900: #1d3320;
  --green-700: #2f5233;
  --green-500: #4a7c4e;
  --green-300: #8fbf8f;
  --bark: #6b4f3a;
  --bark-light: #8a6c50;
  --cream: #f6f1e7;
  --cream-2: #efe7d6;
  --sun: #e8b84b;
  --ink: #25281f;
  --muted: #5e6655;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(29, 51, 32, 0.12);
  --shadow-sm: 0 4px 14px rgba(29, 51, 32, 0.10);
  --maxw: 1100px;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; interpolate-size: allow-keywords; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.section { padding: clamp(1.8rem, 4.5vw, 3rem) 0; }
@media (min-width: 861px) {
  html { font-size: 17px; }
  .section { padding: 4.5rem 0; }
  .section__subtitle { font-size: 1.1rem; }
  .hero__lead { font-size: 1.2rem; }
  .steps__list li { font-size: 1.1rem; }
  .location__tip { font-size: 1rem; }
  .menu__note { font-size: 1rem; }
  .pay__text { font-size: 1.05rem; }
  .pay__desc { font-size: 0.95rem; }
  .pay__account--btc { font-size: 0.85rem; }
  .footer__tag { font-size: 1.05rem; }
  .footer__operator { font-size: 0.9rem; }
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.section__title--center { text-align: center; }

.section__subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 46ch;
  margin: 0.5rem auto 1.5rem;
  font-size: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--sun);
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn__icon { width: 18px; height: 18px; border-radius: 4px; }
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--green-700);
}
.btn--ghost:hover { background: rgba(47, 82, 51, 0.08); transform: translateY(-2px); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(246, 241, 231, 0.92);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='68' viewBox='0 0 460 68'%3E%3Cg fill='%232f5233'%3E%3Cpath fill-opacity='0.13' d='M18 28 L26.4 43.2 L22 43.2 L31.2 56.4 L24.4 56.4 L35.2 68 L0.8 68 L11.6 56.4 L4.8 56.4 L14 43.2 L9.6 43.2 Z'/%3E%3Cpath fill-opacity='0.1' d='M34 42 L39.5 51.9 L36.6 51.9 L42.6 60.5 L38.2 60.5 L45.2 68 L22.8 68 L29.8 60.5 L25.4 60.5 L31.4 51.9 L28.5 51.9 Z'/%3E%3Cpath fill-opacity='0.12' d='M48 35 L54.9 47.5 L51.3 47.5 L58.9 58.4 L53.3 58.4 L62.2 68 L33.8 68 L42.7 58.4 L37.1 58.4 L44.7 47.5 L41.1 47.5 Z'/%3E%3Ccircle fill-opacity='0.09' cx='120' cy='53' r='8'/%3E%3Crect fill-opacity='0.09' x='118' y='59' width='4' height='9'/%3E%3Cpath fill-opacity='0.12' d='M185 32 L192.6 45.7 L188.6 45.7 L196.9 57.6 L190.8 57.6 L200.5 68 L169.5 68 L179.2 57.6 L173.1 57.6 L181.4 45.7 L177.4 45.7 Z'/%3E%3Cpath fill-opacity='0.1' d='M203 44 L208 53.1 L205.4 53.1 L210.9 61 L206.8 61 L213.3 68 L192.7 68 L199.2 61 L195.1 61 L200.6 53.1 L198 53.1 Z'/%3E%3Cpath fill-opacity='0.09' d='M272 46 L276.6 54.4 L274.2 54.4 L279.3 61.6 L275.5 61.6 L281.5 68 L262.5 68 L268.5 61.6 L264.7 61.6 L269.8 54.4 L267.4 54.4 Z'/%3E%3Cpath fill-opacity='0.11' d='M330 38 L336.3 49.4 L333 49.4 L339.9 59.3 L334.8 59.3 L342.9 68 L317.1 68 L325.2 59.3 L320.1 59.3 L327 49.4 L323.7 49.4 Z'/%3E%3Cpath fill-opacity='0.13' d='M344 26 L352.8 42 L348.2 42 L357.9 55.8 L350.7 55.8 L362.1 68 L325.9 68 L337.3 55.8 L330.1 55.8 L339.8 42 L335.2 42 Z'/%3E%3Cpath fill-opacity='0.1' d='M362 42 L367.5 51.9 L364.6 51.9 L370.6 60.5 L366.2 60.5 L373.2 68 L350.8 68 L357.8 60.5 L353.4 60.5 L359.4 51.9 L356.5 51.9 Z'/%3E%3Ccircle fill-opacity='0.09' cx='425' cy='54' r='7'/%3E%3Crect fill-opacity='0.09' x='423' y='59' width='4' height='9'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(246, 241, 231, 0.6), rgba(223, 234, 216, 0.75));
  background-repeat: repeat-x, no-repeat;
  background-position: bottom left, center;
  background-size: auto 68px, cover;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(47, 82, 51, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--green-900); }
.brand__mark { font-size: 1.6rem; }
.flip { display: inline-block; transform: scaleX(-1); }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(180deg, #7a5b44, #6b4f3a 55%, #5d442f);
  color: var(--cream);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transform: rotate(-1.5deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
}
/* hřebíčky v rozích cedule */
.brand__name::before,
.brand__name::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3c2c1e;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.brand__name::before { left: 7px; }
.brand__name::after { right: 7px; }
.brand__accent { font-style: normal; color: var(--sun); }

.nav__menu { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav__menu a { font-weight: 600; color: var(--ink); transition: color 0.15s ease; }
.nav__menu a:hover { color: var(--green-700); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--cream);
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(74, 124, 78, 0.35), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-500) 100%);
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.18) 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.12) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.14) 50%, transparent 51%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding: clamp(2.2rem, 6vw, 3.8rem) 0 clamp(2rem, 5vw, 3rem);
  max-width: 760px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--sun);
  margin-bottom: 0.7rem;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 0.9rem;
}
.hero__name { color: var(--sun); }
.hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(246, 241, 231, 0.92);
  max-width: 54ch;
  margin-bottom: 1.3rem;
}

/* ===== Steps ===== */
.steps { background: var(--green-900); color: var(--cream); }
.steps .section__title { color: var(--cream); }
.steps .section__subtitle { color: rgba(246,241,231,0.75); }
.steps__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.1rem auto 0;
}
.steps__list li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: rgba(246,241,231,0.85);
  font-size: 0.95rem;
}
.steps__list strong { color: var(--cream); }
.step__icon { flex: none; }

/* ===== Menu ===== */
.menu__lines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 2rem;
  max-width: 760px;
  margin: 1.3rem auto 0;
  background: #fff;
  border: 1px solid rgba(47,82,51,0.08);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}
.menu__cat { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--green-900); margin-bottom: 0.25rem; }
.menu__hint { font-weight: 400; font-size: 0.82em; color: var(--muted); }
.menu__items { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.menu__items li { padding-left: 1rem; position: relative; }
.menu__items li::before { content: "•"; position: absolute; left: 0.15rem; color: var(--green-500); }
.menu__note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }

/* ===== Platby / dobrovolné ceny ===== */
.pay {
  margin-top: 1.5rem;
  background: var(--green-700);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
  text-align: center;
}
.pay__title { font-family: var(--font-head); font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.4rem; }
.pay__text { color: rgba(246,241,231,0.9); max-width: 52ch; margin: 0 auto 1rem; font-size: 0.95rem; }
.pay__methods {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.pay__method {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 0.8rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}
.pay__icon { font-size: 1.4rem; }
.pay__icon--img { width: 26px; height: 26px; margin: 0 auto 0.2rem; display: block; }
.pay__qr-btn {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pay__qr-btn:hover { color: #f0cb75; }
a.pay__qr-btn { display: inline-block; margin-top: 0.15rem; }

/* Rozbalovací varianty bitcoinu */
.pay__toggle {
  display: inline-block;
  margin-top: 0.4rem;
  list-style: none;
  color: var(--sun);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pay__toggle::-webkit-details-marker { display: none; }
.pay__toggle:hover { color: #f0cb75; }
.pay__btc[open] .pay__toggle-show { display: none; }
.pay__btc:not([open]) .pay__toggle-hide { display: none; }
/* plynulé vysunutí obsahu <details> (kde prohlížeč umí) */
.pay__btc::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.4s ease, content-visibility 0.4s allow-discrete;
}
.pay__btc[open]::details-content { block-size: auto; }

.pay__btc-list {
  text-align: left;
  max-width: 340px;
  margin: 0.9rem auto 0;
  display: grid;
  gap: 1.1rem;
  font-size: 0.9rem;
  color: rgba(246, 246, 231, 0.85);
}
/* varianty naskakují postupně */
.pay__btc[open] .pay__btc-item { animation: unfold 0.35s ease backwards; }
.pay__btc[open] .pay__btc-item:nth-child(2) { animation-delay: 0.15s; }
.pay__btc[open] .pay__btc-item:nth-child(3) { animation-delay: 0.3s; }
@keyframes unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.pay__btc-head {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.55rem;
}
.pay__account {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pay__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.pay__links .pay__account {
  color: var(--sun);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pay__links .pay__account:hover { color: #f0cb75; }
.pay__account.is-copied { color: #a8e6a8; text-decoration: none; }
.pay__account--btc {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  word-break: break-all;
  line-height: 1.4;
  text-align: left;
}
.btc-hl { color: var(--sun); font-weight: 700; }

/* Zvětšený QR kód přes celou obrazovku */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 18, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  cursor: zoom-out;
}
.qr-overlay.is-open { opacity: 1; visibility: visible; }
.qr-overlay__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: min(88vw, 440px);
  text-align: center;
}
.qr-overlay__title {
  color: var(--cream);
  font-weight: 700;
  font-size: 1.15rem;
}
.qr-overlay img {
  width: min(82vw, 400px);
  aspect-ratio: 1;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.qr-overlay img.is-loaded { opacity: 1; }
.qr-overlay__value {
  color: rgba(246, 241, 231, 0.9);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
}
.qr-overlay__share {
  background: var(--sun);
  color: var(--green-900);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.qr-overlay__share:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.qr-overlay__hint {
  margin-top: -0.35rem;
  color: rgba(246, 241, 231, 0.7);
  font-size: 0.78rem;
}
.pay__label { font-weight: 700; font-size: 1rem; }
.pay__desc { font-size: 0.85rem; color: rgba(246,241,231,0.8); }
.pay__note { font-size: 0.75rem; color: rgba(246,241,231,0.65); margin-top: 0.35rem; }

/* ===== Location ===== */
.location__grid { display: flex; justify-content: center; }
.location__info { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.location__gps { font-size: 0.7rem; font-weight: 400; color: var(--muted); opacity: 0.7; letter-spacing: 0.3px; }
.location__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 0.2rem; }
.location__actions .btn { padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.location__tip { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* ===== Contact ===== */
.contact { background: var(--green-900); color: var(--cream); }
.contact .section__title { color: var(--cream); }
.contact .section__subtitle { color: rgba(246,241,231,0.75); }
.contact .section__subtitle { margin-bottom: 0; }
.contact__mail {
  color: var(--sun);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact__mail:hover { color: #f0cb75; }

/* ===== Footer ===== */
.site-footer { background: #16241a; color: rgba(246,241,231,0.85); padding: 1.6rem 0; }
.footer__inner { text-align: center; display: grid; gap: 0.3rem; }
.footer__brand { font-family: var(--font-head); font-size: 1.4rem; color: var(--cream); }
.footer__tag { font-size: 0.95rem; }
.footer__operator { font-size: 0.82rem; opacity: 0.65; margin-top: 0.5rem; }
.footer__copy { font-size: 0.85rem; opacity: 0.7; margin-top: 0.6rem; }


/* ===== Fotky pod úvodem ===== */
.fotky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: -2.4rem;
  position: relative;
  z-index: 2;
  max-width: min(100% - 2.5rem, 860px);
}
.fotka {
  margin: 0;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.fotka--leva { transform: rotate(-1.3deg); }
.fotka--prava { transform: rotate(1.2deg); }
.fotka img { width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 560px) {
  .fotky { grid-template-columns: 1fr; }
  .fotka { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .location__grid { grid-template-columns: 1fr; }
  .fotky { margin-top: -1.6rem; }
  .menu__lines { grid-template-columns: 1fr; }
  .pay__methods { grid-template-columns: 1fr; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(47,82,51,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__menu.is-open { max-height: 360px; }
  .nav__menu li { width: 100%; text-align: center; }
  .nav__menu li a { display: block; padding: 0.9rem; border-top: 1px solid rgba(47,82,51,0.08); }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
