/* ===============================
   LANDING: TICHO MEZI HVĚZDAMI – SHOPTET (OPTIMAL)
   - bez duplicit
   - bez chybné }
   - zachová původní chování
================================ */

.cm-landing{--w:#fff;--m:rgba(255,255,255,.82);--a:#a855f7;width:100vw;margin:0 calc(50% - 50vw);color:var(--w)}
.cm-title,.cm-subtitle,.cm-kicker,.cm-news-title{font-family:"Cinzel","Trajan Pro",Georgia,"Times New Roman",serif;letter-spacing:.06em}
.cm-wrap{max-width:1200px;margin:0 auto;padding:0 18px}

/* HERO */
.cm-hero{position:relative;min-height:90vh;display:flex;align-items:center;overflow:hidden}
.cm-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.cm-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(1200px 600px at 70% 40%,rgba(80,255,200,.18),transparent 60%),linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.85));z-index:1}
.cm-hero .cm-wrap{position:relative;z-index:2}
.cm-hero-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:48px;align-items:center}

/* BOOK + BADGE */
.cm-book-wrap{position:relative;max-width:520px;margin-left:120px;transition:transform .25s}
.cm-book{width:90%;max-width:420px;height:auto;display:block;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.65);transition:transform .25s,filter .25s,box-shadow .25s}
.cm-badge{position:absolute;top:-7%;right:-12px;width:90px;height:90px;border-radius:50%;background:rgba(0,0,0,.65);border:2px solid var(--a);box-shadow:0 0 0 6px rgba(168,85,247,.18),0 0 30px rgba(168,85,247,.55);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:14px;letter-spacing:.12em;text-transform:uppercase;text-align:center}
.cm-book-wrap:hover{transform:translateY(-6px)}
.cm-book-wrap:hover .cm-book{transform:scale(1.04);filter:brightness(1.08) contrast(1.06) saturate(1.05);box-shadow:0 28px 80px rgba(0,0,0,.75),0 0 34px rgba(168,85,247,.38)}
.cm-book-wrap:hover .cm-badge{box-shadow:0 0 0 8px rgba(168,85,247,.22),0 0 40px rgba(168,85,247,.7)}

/* TEXT */
.cm-kicker{font-size:28px;margin:0 0 10px}
.cm-title{font-size:64px;margin:0 0 20px}
.cm-subtitle{font-size:34px;margin:0 0 18px}
.cm-text{font-size:18px;line-height:1.65;color:var(--m);max-width:60ch;margin:0 0 28px}
.cm-kicker,.cm-title,.cm-subtitle,.cm-text{text-shadow:0 2px 24px rgba(0,0,0,.85)}

/* TEXT HOVER – jemné vystoupení + mikro zvětšení */
.cm-hero .cm-kicker,.cm-hero .cm-title,.cm-hero .cm-subtitle,.cm-hero .cm-text,#oknize .cm-h2,#oknize .cm-p{transition:transform .2s ease,filter .2s ease;will-change:transform}
.cm-hero .cm-kicker:hover,.cm-hero .cm-title:hover,.cm-hero .cm-subtitle:hover,.cm-hero .cm-text:hover,#oknize .cm-h2:hover,#oknize .cm-p:hover{transform:translateY(-2px) scale(1.02);filter:contrast(1.08)}

/* BUTTONS */
.cm-buttons{display:flex;gap:18px;flex-wrap:wrap}
.cm-btn{padding:14px 36px;border-radius:999px;font-weight:900;border:2px solid rgba(255,255,255,.55);color:#fff;background:rgba(0,0,0,.2);text-decoration:none;display:inline-block}
.cm-btn:hover{border-color:var(--a);box-shadow:0 0 24px rgba(168,85,247,.4)}
.cm-btn,.cm-btn:hover{color:#fff!important}

/* SECTIONS */
.cm-section{background:#070b10;padding:70px 0}
.cm-h2{font-size:36px;margin:0 0 14px}
.cm-p{color:var(--m);font-size:18px;line-height:1.7;max-width:75ch}

/* O KNIZE (VIDEO BG) */
#oknize.cm-section{position:relative;overflow:hidden;background:none}
#oknize .cm-oknize-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 78%;z-index:0}
#oknize.cm-section:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.82));z-index:1;pointer-events:none}
#oknize.cm-section .cm-wrap{position:relative;z-index:2}

/* REGISTRACE (VIDEO BG) */
.cm-news{position:relative;overflow:hidden;background:none;padding:90px 0}
.cm-news-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.cm-news:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.6),rgba(0,0,0,.85));z-index:1;pointer-events:none}
.cm-news .cm-wrap{position:relative;z-index:2}
.cm-news-title{font-size:52px;margin:0 0 14px}
.cm-news-text{font-size:18px;color:var(--m);max-width:60ch}
.cm-news-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.cm-news-note{margin-top:10px;font-size:13px;line-height:1.4;color:rgba(255,255,255,.7)}
#registrace{scroll-margin-top:120px}

/* CTA registrace (používá stejné tlačítko jako dřív) */
.cm-register-box{max-width:420px}
.cm-register-box .cm-submit{display:block;text-align:center;text-decoration:none}

/* HIDE TITLE (původní) – jen když se aktivuje LP */
html.lp-ticho h1,
html.lp-ticho .page-header,
html.lp-ticho .breadcrumbs,
html.lp-ticho .breadcrumb{display:none!important}

/* MENU HOVER */
.navigation-in ul li a{display:inline-block!important;position:relative;transition:transform .22s,text-shadow .22s,color .22s;will-change:transform}
.navigation-in ul li a:hover{transform:translateY(-2px) scale(1.03);text-shadow:0 0 14px rgba(168,85,247,.55),0 0 28px rgba(168,85,247,.35)}
.navigation-in ul li a:after{content:"";position:absolute;left:14px;right:14px;bottom:10px;height:2px;background:linear-gradient(90deg,transparent,rgba(168,85,247,.95),transparent);opacity:0;transform:scaleX(.35);transition:opacity .22s,transform .22s;pointer-events:none}
.navigation-in ul li a:hover:after{opacity:1;transform:scaleX(1)}

/* LOGO HOVER */
#header .site-name>a{display:inline-block!important;transition:transform .22s,filter .22s;will-change:transform}
#header .site-name>a>img{display:block;transition:transform .22s,filter .22s,box-shadow .22s;transform-origin:center}
#header .site-name>a:hover{transform:translateY(-2px) scale(1.04)}
#header .site-name>a:hover>img{filter:brightness(1.12) contrast(1.06);box-shadow:0 0 18px rgba(168,85,247,.55),0 0 36px rgba(168,85,247,.35)}

/* ODSTRANĚNÍ NEWSLETTERU Z PATIČKY (Waltz – systémový blok) */
#footer .footer-newsletter,#footer .subscribe-form,#footer form#formNewsletter{display:none!important}

/* KOUPIT – zarovnání na střed */
#koupit,#koupit .cm-wrap{text-align:center}
#koupit .cm-p,#koupit .btn,#koupit .btn-cart{margin-left:auto;margin-right:auto}

/* KOUPIT – pozadí (jen na LP) */
html.lp-ticho #koupit{
  background:
    linear-gradient(rgba(0,0,0,.75),rgba(0,0,0,.85)),
    url("https://758760.myshoptet.com/user/documents/upload/ChatGPT Image 24. 12. 2025 10_34_42.jpg");
  background-size:cover;
  background-position:center;
}

/* RESPONSIVE */
@media(max-width:900px){
  .cm-hero-grid{grid-template-columns:1fr}
  .cm-title{font-size:44px}
  .cm-subtitle{font-size:26px}
  .cm-book-wrap{margin-left:0}
  .cm-book{width:100%;max-width:420px}
}

/* ===============================
   CM-LANDING – konec stránky: pryč bílý pruh
   (ověřeno podle .cm-landing v DOM)
=============================== */

body:has(.cm-landing) footer,
body:has(.cm-landing) #footer,
body:has(.cm-landing) .footer,
body:has(.cm-landing) .footer-bottom,
body:has(.cm-landing) .footer-top,
body:has(.cm-landing) .footer-inner,
body:has(.cm-landing) .copyright,
body:has(.cm-landing) .site-footer{
  background:#000 !important;
  margin:0 !important;
  padding:6px 0 !important;
  border-top:1px solid rgba(255,255,255,.1) !important;
}

body:has(.cm-landing) footer *,
body:has(.cm-landing) #footer *,
body:has(.cm-landing) .footer *{
  background:transparent !important;
  color:rgba(255,255,255,.75) !important;
  font-size:12px !important;
  line-height:1.15 !important;
}

body:has(.cm-landing) .overall-wrapper{background:#000 !important;}

body:has(.cm-landing) .cookie-consent,
body:has(.cm-landing) .cookies,
body:has(.cm-landing) #cookies{
  background:#000 !important;
  color:#fff !important;
}

/* ===============================
   MOBIL / TELEFON – FINÁLNÍ BLOK
   - správné načítání
   - žádné přelití
   - menší obálka knihy
================================ */

@media (max-width:900px){

  html,body{max-width:100%;overflow-x:hidden;}
  .cm-wrap{padding:0 14px;}

  .cm-hero{min-height:100svh;}
  .cm-hero-grid{grid-template-columns:1fr;gap:22px;}

  .cm-kicker{font-size:20px;}
  .cm-title{font-size:38px;line-height:1.05;}
  .cm-subtitle{font-size:22px;}
  .cm-text{font-size:16px;line-height:1.6;max-width:62ch;}

  .cm-book-wrap{
    margin-left:0;
    margin-right:auto;
    margin-left:auto;
    max-width:320px;
  }
  .cm-book{width:100%;max-width:280px;}

  .cm-news{padding:56px 0;}
  .cm-news-grid{grid-template-columns:1fr;gap:18px;}
  .cm-news-title{font-size:34px;}

  .cm-submit{height:56px;font-size:15px;}
}

@media (max-width:480px){
  .cm-title{font-size:34px;}
  .cm-subtitle{font-size:20px;}
  .cm-book-wrap{max-width:260px;}
  .cm-book{max-width:230px;}
}
