/* HOW SG */
.how-sg{
  --sg-gold-1:#BFA046;
  --sg-gold-2:#F0CF70;
  --sg-bg:#ffffff;
  --sg-card:#ffffff;
  --sg-soft:#FFF9E7;
  --sg-soft-2:#F7E7B9;
  --sg-text:#111111;
  --sg-muted:#3a3a3a;
  --sg-line:rgba(0,0,0,.10);
  --sg-radius:18px;
  --sg-shadow:0 10px 26px rgba(0,0,0,.10);

  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--sg-text);
  background: var(--sg-bg);
}
.how-sg *{ box-sizing:border-box; }
.how-sg a{ color:inherit; text-decoration:none; }
.how-sg a:hover{ text-decoration:underline; }

.how-sg__wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px 56px;
}

/* Hero */
.how-sg__hero{
  border:1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  overflow:hidden;
  background:#fff;
}
.how-sg__heroTop{
  padding:18px 18px 16px;
  background: linear-gradient(90deg, var(--sg-gold-1) 13%, var(--sg-gold-2) 100%);
}
.how-sg__kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding:6px 10px;
  font-weight:800;
  font-size:12.5px;
}
.how-sg__title{
  margin:10px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: .3px;
 line-height: 1.35;
}
.how-sg__lead{
  margin:10px 0 0;
  max-width: 980px;
  color: rgba(17,17,17,.90);
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 600;
}

/* HERO layout */
.how-sg__heroBody{
  padding: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.how-sg__heroCard{
  border:1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  background: #fff;
  padding: 14px 14px;
}
.how-sg__heroCard p{
  margin:0;
  color: var(--sg-muted);
  line-height: 1.7;
  font-size: 14.8px;
}
.how-sg__heroImg{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.how-sg__heroImg img{
  display:block;
  width:100%;
  height:100%;
  min-height: 240px;
  object-fit: cover;
}

/* TOC */
.how-sg__toc{
  margin-top: 16px;
  border:1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  background:#fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  overflow:hidden;
}
.how-sg__tocHead{
  padding: 12px 16px;
  background: rgba(0,0,0,.03);
  font-weight: 900;
}
.how-sg__tocList{
  margin:0;
  padding: 10px 16px 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  list-style: none;
}
.how-sg__tocList a{
  display:flex;
  gap:10px;
  align-items: baseline;
  padding: 10px 10px;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background:#fff;
}
.how-sg__tocList a:hover{ background: var(--sg-soft); }
.how-sg__tocNum{
  font-weight: 900;
  color: #111;
  min-width: 22px;
}

/* Sections */
.how-sg__section{
  margin-top: 22px;
  border:1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  overflow:hidden;
  background:#fff;
}
.how-sg__sectionHead{
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(191,160,70,.22) 0%, rgba(240,207,112,.35) 100%);
  border-bottom: 1px solid var(--sg-line);
}
.how-sg__sectionTitle{
  margin:0;
  font-size: 18px;
  font-weight: 900;
}
.how-sg__sectionBody{ padding: 16px; }

/* Typography */
.how-sg__copy p{
  margin:0;
  color: var(--sg-muted);
  line-height: 1.7;
  font-size: 14.8px;
}
.how-sg__copy p + p{ margin-top: 10px; }
.how-sg__copy h3{
  margin:14px 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: #111;
}
.how-sg__copy h3:first-child{ margin-top:0; }

/* Media */
.how-sg__media{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.how-sg__media img{
  display:block;
  width:100%;
  height:auto;
  max-height: 340px;
  object-fit: cover;
}

/* Split blocks (desktop: half/half) — FLEX kvůli Shoptetu + spolehlivé pořadí */
.how-sg__split{
  display:flex;
  gap: 18px;
  align-items: center;
}

/* dvě poloviny */
.how-sg__split > .how-sg__copy,
.how-sg__split > .how-sg__media{
  flex: 0 0 calc(50% - 9px);
  min-width: 0;
}

/* default: TEXT vlevo, OBRÁZEK vpravo */
.how-sg__split{ flex-direction: row; }

/* reverse: OBRÁZEK vlevo, TEXT vpravo (cik-cak na PC řešíme jen třídou v HTML) */
.how-sg__split--reverse{ flex-direction: row-reverse; }

.how-sg__split--stretch{ align-items: stretch; }

/* Highlight / note */
.how-sg__callout{
  padding: 12px 12px;
  border-radius: 16px;
  background: var(--sg-soft);
  border: 1px solid rgba(0,0,0,.08);
}
.how-sg__callout p{
  margin:0;
  color: var(--sg-muted);
  line-height:1.65;
  font-size:14px;
}
.how-sg__callout p + p{ margin-top:8px; }

/* Lists */
.how-sg__list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--sg-muted);
  line-height: 1.7;
  font-size: 14.8px;
}
.how-sg__list li{ margin: 6px 0; }

/* Steps – vertikálně */
.how-sg__steps{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
.how-sg__step{
  border:1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 12px 12px;
  background:#fff;
}
.how-sg__stepHead{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-bottom: 6px;
}
.how-sg__stepNum{
  width: 30px; height: 30px;
  display:grid; place-items:center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sg-gold-1), var(--sg-gold-2));
  font-weight: 900;
  flex: 0 0 auto;
}
.how-sg__step strong{
  display:block;
  font-size: 13.8px;
  margin-top: 3px;
}
.how-sg__step p{
  margin:0;
  color: var(--sg-muted);
  line-height: 1.6;
  font-size: 13.9px;
}

/* Studies cards */
.how-sg__studyGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.how-sg__study{
  border:1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 12px 12px;
  background:#fff;
}
.how-sg__study h4{
  margin:0 0 8px;
  font-size: 14.5px;
  font-weight: 900;
}
.how-sg__study p{
  margin:0;
  color: var(--sg-muted);
  line-height: 1.65;
  font-size: 14px;
}
.how-sg__study p + p{ margin-top: 8px; }
.how-sg__src{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 13px;
  color: var(--sg-muted);
}

/* Footer note */
.how-sg__ending{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: var(--sg-soft);
  border:1px solid rgba(0,0,0,.08);
}
.how-sg__ending p{
  margin:0;
  color: var(--sg-muted);
  line-height: 1.7;
  font-size: 14.8px;
}

/* Mobile */
@media (max-width: 900px){
  .how-sg__heroBody{ grid-template-columns: 1fr; }
  .how-sg__heroImg img{ min-height: 0; height:auto; }
  .how-sg__tocList{ grid-template-columns: 1fr; }

  /* MOBILE: vždy TEXT a pod ním OBRÁZEK */
  .how-sg__split{
    flex-direction: column;
  }
  .how-sg__split > .how-sg__copy,
  .how-sg__split > .how-sg__media{
    flex: 1 1 auto;
    width: 100%;
  }

  .how-sg__media img{ max-height: 240px; }
  .how-sg__studyGrid{ grid-template-columns: 1fr; }
}
