@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* Empty Pockets — základní styl webu
   Barvy: hluboká zelenomodrá (cesty, mapa) + jantarová (nález, pin) */

:root {
  --deep: #0f2b29;
  --deep-2: #123b34;
  --ink: #14201e;
  --body: #46564f;
  --line: #e3e0d8;
  --bg: #fbf8f2;
  --card: #ffffff;
  --amber: #e0891a;
  --amber-soft: #f4a52a;
  --mint: #2f9c81;
  --radius: 16px;
  --wrap: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2efe8;
    --body: #b6c3bd;
    --line: #23342f;
    --bg: #0c1917;
    --card: #122320;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Anton", sans-serif; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 400; letter-spacing: 2.5px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.lead { font-size: 1.12rem; }
.fineprint { font-size: .88rem; opacity: .72; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 600; color: var(--amber); margin-bottom: .4rem;
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--amber); color: #1b1206;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; color: var(--ink); }
.logo-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--amber-soft), var(--amber) 55%, var(--deep) 56%);
  box-shadow: inset 0 0 0 2px var(--bg);
}
.logo-text { letter-spacing: -.02em; }

.nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--body); padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }

/* Výběr jazyka — dropdown, ať v hlavičce zbude místo na účet */
.lang { position: relative; flex: 0 0 auto; }
.lang-btn {
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  display: flex; align-items: center; gap: .35rem;
  padding: .35rem .55rem; border: 1px solid var(--line); background: transparent;
  color: var(--body); border-radius: 9px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--amber); color: var(--ink); }
.lang-caret { width: 9px; height: 6px; flex: 0 0 auto; opacity: .75; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + .45rem); right: 0; z-index: 80;
  min-width: 9.5rem; margin: 0; padding: .3rem; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  font: inherit; font-size: .9rem; width: 100%; text-align: left;
  padding: .45rem .6rem; border: 0; border-radius: 8px;
  background: transparent; color: var(--body); cursor: pointer;
}
.lang-menu button:hover { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--ink); }
.lang-menu button[aria-selected="true"] { background: var(--deep); color: #fff; font-weight: 600; }

/* Vlaječky u jazyků. `.flag` vykresluje assets/flags.js; vnitřní stín dělá
   rámeček, aby bílý pruh na světlém podkladu nesplynul s okolím. */
.flag {
  width: 20px; height: 14px; flex: 0 0 auto; display: block;
  border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22);
}
.lang-flag { display: flex; flex: 0 0 auto; }
.lang-menu button { display: flex; align-items: center; gap: .5rem; }


.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .header-inner { gap: .45rem; }
  .logo { flex: 0 0 auto; }
  .logo-text { font-size: .95rem; }
  .lang { margin-left: auto; }
  /* Na úzkém displeji zbývá na hlavičku málo místa — zůstane jen glóbus a kód. */
  .lang-caret { display: none; }
  .lang-btn { padding: .35rem .45rem; gap: .25rem; }
  .nav-toggle {
    display: block; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--line);
    background: transparent; border-radius: 10px; cursor: pointer; position: relative;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 50%; width: 18px; height: 2px;
    background: var(--ink); transform: translateX(-50%);
  }
  .nav-toggle span { top: 50%; }
  .nav-toggle span::before { top: -6px; left: 0; transform: none; }
  .nav-toggle span::after { top: 6px; left: 0; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 60%, #16463c 100%);
  color: #dcece7;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero h1 { color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

.badge {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber-soft) 45%, transparent);
  border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1.1rem;
}
.hero .lead { color: #b9d2cb; max-width: 46ch; }
.hero .fineprint { color: #8fada5; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 .9rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1b1206; }
.btn-primary:hover { background: var(--amber-soft); }
.btn-ghost { border-color: #3f6b60; color: #dcece7; }
.btn-ghost:hover { background: #17453c; }

/* Telefon */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 260px; padding: 12px; border-radius: 34px;
  background: #0a1c1a; box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 0 0 1px #2b4d46;
}
.phone-screen { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 260 / 480; }
.map { width: 100%; height: 100%; display: block; }
.pin-card {
  position: absolute; left: 14px; right: 14px; bottom: 16px;
  background: #fff; color: #14201e; border-radius: 14px; padding: .7rem .85rem;
  display: grid; gap: .15rem; box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.pin-tag { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.pin-card strong { font-size: .95rem; }
.pin-meta { font-size: .75rem; color: #6b7a74; }

/* ---------- Sekce ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; scroll-margin-top: 72px; }
.section.alt { background: color-mix(in srgb, var(--card) 65%, var(--bg)); border-block: 1px solid var(--line); }
.section h2 { margin-bottom: 1rem; }
.center h2 + .lead { margin-inline: auto; max-width: 60ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.card p { margin: 0; font-size: .96rem; }
.ico {
  display: block; width: 40px; height: 40px; border-radius: 12px; margin-bottom: .9rem;
  background: color-mix(in srgb, var(--mint) 16%, transparent);
  position: relative;
}
.ico::after {
  content: ""; position: absolute; inset: 0; margin: auto; display: block;
  width: 16px; height: 16px; border-radius: 50%; background: var(--mint);
}
.ico-1::after { border-radius: 50% 50% 4px 50%; transform: rotate(45deg); background: var(--amber); }
.ico-2::after { width: 18px; height: 18px; border-radius: 4px; transform: rotate(45deg); }
.ico-3::after { width: 6px; height: 20px; border-radius: 3px; box-shadow: -7px 0 0 var(--mint), 7px 0 0 var(--mint); }
.ico-4::after { width: 20px; height: 4px; border-radius: 2px; background: var(--amber); box-shadow: 0 7px 0 var(--amber), 0 -7px 0 var(--amber); }
.ico-5::after { width: 10px; height: 10px; box-shadow: 10px 4px 0 -2px var(--mint), -10px 4px 0 -2px var(--mint); }
.ico-6::after { width: 18px; height: 18px; border-radius: 50%; background: transparent; border: 4px solid var(--mint); }

/* Karta produktu */
.product {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.5rem; align-items: center;
  margin-top: 2.5rem; padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
}
@media (max-width: 800px) { .product { grid-template-columns: 1fr; gap: 1.5rem; } }
.product h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.status { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: .3rem; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0; }
.tags li {
  font-size: .82rem; padding: .3rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink);
  background: color-mix(in srgb, var(--mint) 10%, transparent);
}

.link-arrow { color: var(--amber); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .15s ease; display: inline-block; }
.link-arrow:hover::after { margin-left: .25rem; }

.product-art { display: grid; place-items: center; min-height: 180px; }
.pin-big {
  width: 96px; height: 96px; border-radius: 50% 50% 8px 50%; transform: rotate(45deg);
  background: linear-gradient(140deg, var(--amber-soft), var(--amber));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--amber) 30%, transparent);
  position: relative;
}
.pin-big::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 34px; height: 34px; border-radius: 50%; background: var(--card);
}

/* Kroky */
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem;
}
.steps li { counter-increment: step; padding-top: 3.2rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--deep); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.steps p { margin: 0; font-size: .96rem; }

/* ---------- Formulář ---------- */
.form { display: grid; gap: 1rem; margin-top: 1.8rem; max-width: 520px; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: .98rem; padding: .7rem .8rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; width: 100%;
}
.field textarea { resize: vertical; }
.form .btn { justify-self: start; }
.contact-direct { margin-top: 1.6rem; }
.contact-direct a { color: var(--amber); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #a9c4bd; padding: 2.5rem 0; }
.site-footer strong { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; font-size: .9rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.footer-social a { display: inline-flex; align-items: center; gap: .4rem; color: #a9c4bd; text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .15s ease; }
.footer-social a svg { flex-shrink: 0; opacity: .9; }
.footer-social a:hover { color: var(--amber); }

/* ---------- Komunita & Sociální sítě ---------- */
.community-grid { display: grid; grid-template-columns: 1fr 350px; gap: 2.5rem; align-items: center; margin-top: 2.5rem; }
@media (max-width: 860px) {
  .community-grid { grid-template-columns: 1fr; justify-items: center; }
  .community-social { text-align: center; width: 100%; }
}
.community-social h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: .6rem; }
.social-buttons { display: grid; gap: .9rem; margin-top: 1.5rem; }
.btn-social {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; font-weight: 600;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-social:hover { transform: translateY(-2px); border-color: var(--amber); box-shadow: 0 10px 24px rgba(0, 0, 0, .10); }
.btn-social svg:first-child { color: var(--mint); flex-shrink: 0; }
.social-btn-text { display: flex; flex-direction: column; text-align: left; }
.social-btn-name { font-size: 1.05rem; line-height: 1.2; }
.social-btn-handle { font-size: .84rem; font-weight: 500; color: var(--body); }
.social-btn-arrow { margin-left: auto; opacity: .5; color: var(--body); }
.community-discord { display: flex; justify-content: center; width: 100%; }
.community-discord iframe { max-width: 100%; border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, .22); }

.discord-widget-wrapper { display: flex; justify-content: center; margin: 2rem 0; width: 100%; }
.discord-widget-wrapper iframe { max-width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }

/* ---------- reklamy ----------
   Postranní pruhy jen tam, kde je vedle obsahu volné místo; jinde vyskakovací
   lišta zdola. Odhalování řídí assets/ads.js, tady je jen vzhled a rozměry.

   ⚠️ Prázdná jednotka se nesmí projevit. AdSense nechá `<ins>` bez reklamy
   s nulovou výškou, takže rámeček má `:has()` pojistku — bez vyplněné
   jednotky se nevykreslí ani pozadí, ani popisek. */

.ad-rail,
.ad-bottom { z-index: 60; }

.ad-rail[hidden],
.ad-bottom[hidden] { display: none; }

.ad-frame {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .45rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

/* Popisek je záměrně nenápadný, ale musí tam být — reklama má být na první
   pohled rozeznatelná od obsahu. */
.ad-label {
  font-size: .62rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--body); opacity: .65; line-height: 1;
}

.ad-unit { display: block; }

/* Popisek zavíracího tlačítka jen pro čtečky. Nesmí se použít .skip —
   ta se při zaostření naopak zviditelní (je to přeskakovací odkaz). */
.ad-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Zástupná plocha pro ?ads=demo — jen ke kontrole rozvržení. */
.ad-demo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border: 1px dashed var(--line); border-radius: 8px;
  font-size: .75rem; color: var(--body);
  background: repeating-linear-gradient(
    45deg, transparent, transparent 8px,
    rgba(127, 127, 127, .06) 8px, rgba(127, 127, 127, .06) 16px
  );
}

/* --- postranní pruhy --- */
.ad-rail {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 160px;
}
.ad-rail .ad-unit { width: 160px; min-height: 600px; }
.ad-rail .ad-demo { min-height: 600px; }

/* Střed volného místa vedle obsahu: (šířka − obsah) / 2 je celá mezera,
   její polovina je střed, mínus polovina šířky pruhu.

   Schválně `100%`, ne `100vw`: u fixed elementu se procenta počítají z plochy
   BEZ posuvníku, kdežto `100vw` posuvník započítá — pravý pruh by pak byl
   o jeho šířku mimo střed mezery. */
.ad-rail-left  { left:  calc((100% - var(--wrap)) / 4 - 80px); }
.ad-rail-right { right: calc((100% - var(--wrap)) / 4 - 80px); }

/* --- lišta zdola --- */
.ad-bottom {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center;
  padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  animation: ad-rise .28s ease-out;
}
.ad-bottom .ad-frame {
  width: min(100%, 728px);
  border: 0; box-shadow: none; background: transparent; padding: 0;
}
.ad-bottom .ad-unit { width: 100%; min-height: 90px; }
.ad-bottom .ad-demo { min-height: 90px; }
.ad-bottom .ad-label { position: absolute; top: -.15rem; left: 0; }

@keyframes ad-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Zavírací křížek. 44 px je nejmenší cíl, který se dá na dotyk trefit. */
.ad-close {
  position: absolute; top: -.35rem; right: -.35rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--body);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.ad-close:hover { color: var(--ink); }

/* Odsazení stránky, dokud lišta svítí — jinak by pod ní zůstal kus patičky. */
body.has-bottom-ad { padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
  .ad-bottom { animation: none; }
}

@media print {
  .ad-rail, .ad-bottom { display: none !important; }
  body.has-bottom-ad { padding-bottom: 0; }
}
