/* ====== RESET / BASE ====== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #f2ede6;
  background: #0f0d0b;
  line-height: 1.4;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1;
  display: flex;
  align-items: center;
}

a { color: inherit; text-decoration: none; }

/* ====== BACKGROUND ====== */
.bg{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(255, 170, 90, .20), transparent 55%),
    radial-gradient(800px 500px at 80% 20%, rgba(90, 200, 255, .14), transparent 55%),
    radial-gradient(900px 700px at 50% 90%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(180deg, #120f0b 0%, #0b0a08 100%);
  pointer-events: none;
  z-index: -1;
}

/* ====== LAYOUT ====== */
.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.top{
  padding: 28px 0 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(135deg, rgba(255,170,90,.9), rgba(255,120,60,.55));
  color: #1b120b;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.brand-title{
  font-size: 18px;
  font-weight: 800;
}

.brand-subtitle{
  opacity: .78;
  font-size: 14px;
  margin-top: 2px;
}

.hint{
  margin: 14px 0 0;
  opacity: .75;
  max-width: 65ch;
}


/* ===== HERO HEADER (nový vršek) ===== */
.hero{
  padding: 34px 0 18px;
}

.hero-inner{
  text-align: center;
  padding: 22px 18px;
  border-radius: 18px;
  background:
    radial-gradient(900px 220px at 50% 0%, rgba(255,170,90,.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.hero-kicker{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 10px;
}

.hero-title{
  margin: 0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: .02em;
  text-shadow: 0 12px 30px rgba(0,0,0,.45);
}

.hero-divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 10px;
  width: min(620px, 100%);
}

.hero-divider span{
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}

.hero-divider i{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 0 0 4px rgba(255,170,90,.10);
}

.hero-subtitle{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  opacity: .80;
}

/* ====== GRID / CARDS ====== */
.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 10px;
}

.card{
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  transform: translateZ(0);
  transition: transform .38s ease, border-color .38s ease, background .38s ease;
}

.card:hover{
  transform: translateY(-10px);
  border-color: rgba(255,170,90,.32);
  background: rgba(255,255,255,.055);
}

.card-media{
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 260px at 30% 10%, rgba(255, 170, 90, .16), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.65));
}

.card-badge{
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .3px;
  background: rgba(10, 8, 6, .55);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

.card-body{
  padding: 18px 18px 16px;
}

.card-title{
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: .2px;
}

.card-desc{
  margin: 0 0 14px;
  opacity: .82;
  max-width: 60ch;
}

.card-cta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255,170,90,.85), rgba(255,120,60,.55));
  color: #1b120b;
  box-shadow: 0 12px 25px rgba(0,0,0,.35);
  transition: transform .18s ease, filter .18s ease;
}

.card:hover .btn{
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.arrow{
  font-size: 18px;
  line-height: 1;
}

.meta{
  font-size: 12px;
  opacity: .72;
}

/* ====== FOOTER ====== */
.footer{
  padding: 18px 0 28px;
}

.footer-inner{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: .75;
  font-size: 13px;
}

.footer a{
  opacity: .9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sep{ opacity: .45; }

/* ====== RESPONSIVE ====== */
@media (max-width: 820px){
  .grid{ grid-template-columns: 1fr; }
  .card-media{ height: 240px; }
  .brand-title{ font-size: 17px; }
}

@media (prefers-reduced-motion: reduce){
  .card, .btn{ transition: none; }
}

/* ===== FOOTER ===== */
.site-footer{
  margin-top: 24px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.25));
}

.footer-inner{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: .78;
}

.footer-center{
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: .85;
}

.footer-center .dot{
  opacity: .4;
}

.site-footer a{
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .9;
}


/* ===== FIX FOOTER: vždy dole + zaoblený box ===== */
.site-footer{
  margin-top: auto;      /* klíč: vždy dole */
  padding: 22px 0 28px;
  background: none;      /* zruší případné staré pozadí */
  border-top: none;      /* zruší případnou linku přes celou šířku */
}

.signature-box{
  text-align: center;
  padding: 22px 18px;
  border-radius: 18px;
  background:
    radial-gradient(900px 220px at 50% 0%, rgba(255,170,90,.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}

/* Quote varianta */
.footer-quote{
  flex-direction: column;
  text-align: center;
  gap: 6px;
}

.footer-quote p{
  margin: 0;
  font-size: 14px;
  letter-spacing: .02em;
}

/* Signature varianta */
.signature{
  text-align: center;
}

.signature-line{
  width: 120px;
  height: 1px;
  margin: 0 auto 12px;
  background: linear-gradient(90deg, transparent, rgba(255,170,90,.6), transparent);
}

.signature-text{
  font-family: Cinzel, serif;
  letter-spacing: .12em;
  font-size: 12px;
  opacity: .85;
  margin-bottom: 6px;
}

.signature-meta{
  font-size: 12px;
  opacity: .6;
}

/* Mobile */
@media (max-width: 700px){
  .footer-inner{
    justify-content: center;
    text-align: center;
  }
}

@media (hover: none){
  .card{ -webkit-tap-highlight-color: transparent; }
  .card:active{ transform: translateY(-4px) scale(.99); }
  .btn:active{ transform: scale(.98); }
}

.reveal{
  opacity:0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

@media (max-width: 700px){
  .card-overlay{
    background:
      radial-gradient(700px 260px at 30% 10%, rgba(255, 170, 90, .12), transparent 60%),
      linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.75));
  }
  .btn{ width: 100%; justify-content: space-between; }
}