/* jirisedek.com — base styl (sjednocený s workshop.jirisedek.com) */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; color: var(--text-muted); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- oznamovací pruh --- */
.annc {
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.annc a { color: inherit; text-decoration: none; }
.annc-gold { background-image: var(--bar-gold-grad); color: var(--navy); }
.annc-hot { background-image: var(--bar-hot-grad); color: #fff; }
.annc-thanks { background-color: var(--bar-thanks); color: #fff; }

/* --- header --- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
.logo img { display: block; height: 20px; width: auto; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}
.main-nav a:hover { opacity: 1; color: #DDC789; }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}
.nav-trigger::after { content: "▾"; font-size: 10px; opacity: 0.7; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px;
  min-width: 210px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  z-index: 60;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.85;
}
.dropdown a:hover { opacity: 1; background: rgba(255,255,255,0.06); color: #DDC789; }
.soon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy);
  background-image: var(--bar-gold-grad);
  padding: 2px 6px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

/* --- hero --- */
.hero { padding: 72px 0; position: relative; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1.13fr; gap: 48px; align-items: center; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #DDC789;
  margin-bottom: 14px;
}
.hero img, .hero-media img { border-radius: 16px; }
.hero-glow { position: relative; z-index: 0; }
.hero-glow::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle at 50% 42%, rgba(74,108,255,0.55), rgba(74,108,255,0) 62%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}
.hero-glow img { position: relative; z-index: 1; }

.media-glow { position: relative; z-index: 0; }
.media-glow::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle at 50% 42%, rgba(74,108,255,0.28), rgba(74,108,255,0) 62%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}
.media-glow img { position: relative; z-index: 1; }
.hero-photo-crop { overflow: hidden; border-radius: 16px; position: relative; z-index: 1; }
.hero-photo-crop img {
  transform: scale(1.06);
  transform-origin: 50% 12%;
  border-radius: 16px;
}
.placeholder-img {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  border: 2px dashed rgba(221,199,137,0.35);
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.placeholder-img::after {
  content: attr(data-placeholder);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.story-img { display: block; width: 100%; max-width: 520px; height: auto; margin: 32px auto; border-radius: 16px; }

/* --- statistiky (vzor z workshop.jirisedek.com) --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(243,245,250,0.14);
  border-radius: 18px;
  background: rgba(0,0,0,0.25);
}
.stat { padding: 24px 22px; border-left: 1px solid rgba(243,245,250,0.14); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}
.stat b em { font-style: normal; color: #DDC789; }
.stat b i {
  font-style: normal;
  font-weight: 600;
  font-size: 0.56em;
  letter-spacing: 0.04em;
  margin-left: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}
.stat span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.stat span em.tag { font-style: normal; white-space: nowrap; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat { padding: 20px 16px; }
  .stat b { font-size: 22px; }
}

/* --- sekce --- */
.sec { padding: 64px 0; }
.sec-alt { background: var(--navy-light); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }

/* --- karty / mřížka --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card .btn-cta { margin-top: auto; align-self: flex-start; }
.card h3 { margin-bottom: 10px; }
.stat-card { text-align: left; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
}
.stat-num .unit { color: #DDC789; }

/* --- štítky (status badge, např. PRODEJ UKONČEN) --- */
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
}
.badge-closed { background: rgba(196,18,47,0.18); color: #E8283C; }
.badge-active { background: rgba(221,199,137,0.18); color: #DDC789; }

/* --- reference/testimonial --- */
.testimonial {
  background: var(--navy-light);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}
.testimonial .author { font-family: var(--font-heading); font-weight: 600; color: var(--text); margin-top: 12px; }

/* --- video embed --- */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- krokový návod (/aktivace) --- */
.phase { margin-bottom: 48px; }
.phase:last-child { margin-bottom: 0; }
.phase-head { margin-bottom: 20px; }
.phase-head h2 { margin: 2px 0 0; }

.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  background: var(--navy-light);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.step summary {
  counter-increment: step;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}
.step summary::-webkit-details-marker { display: none; }
.step summary::after {
  content: "+";
  margin-left: auto;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex: none;
}
.step[open] summary::after { transform: rotate(45deg); }
.step-num {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background-image: var(--cta-grad);
  color: var(--cta-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step-title { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.3px; }
.step-body { padding: 0 22px 22px; }
.step-body p { color: var(--text-muted); margin-bottom: 16px; }
.step-body img { width: 100%; display: block; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); cursor: zoom-in; }

/* --- lightbox (zvětšení screenshotů po kliknutí) --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,12,20,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 200;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 640px) {
  .step summary { padding: 16px; gap: 12px; }
  .step-body { padding: 0 16px 16px; }
}

/* --- footer --- */
.site-footer { background: var(--navy-light); padding: 56px 0 32px; margin-top: 64px; }
.footer-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 13px; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.footer-col a { text-decoration: none; font-size: 14px; color: var(--text); opacity: 0.85; }
.footer-col a:hover { opacity: 1; }
.muted { color: var(--text-muted); font-size: 13px; }

/* --- responzivita --- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-item { flex-direction: column; align-items: flex-start; }
  .dropdown {
    display: block;
    position: static;
    margin: 10px 0 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    min-width: 0;
  }
  .dropdown a { padding: 8px 0; }
}
