/* =========================================================
   SCARLETT.CZ – SEKCE HOMEPAGE PODLE NÁVRHU V1
   Vzhled k scarlett-homepage-sekce-v1.js:
   příběh značky, blok Konfigurátor, box Nevíte si rady?
   Barvy a písmo bere ze scarlett-zaklad-v1.css.
   ========================================================= */

/* ---------- Společná tlačítka ---------- */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: var(--sc-r-pill, 999px);
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.sc-btn--lg { font-size: 18px; padding: 16px 26px; }
.sc-btn--dark { background: var(--sc-ink, #24302A); color: #FFFFFF !important; }
.sc-btn--dark:hover { background: #111814; }
.sc-btn--light,
.sc-btn--white { background: #FFFFFF; color: var(--sc-ink, #24302A) !important; }
.sc-btn--light:hover,
.sc-btn--white:hover { background: var(--sc-sand, #F3ECE2); }
.sc-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #FFFFFF !important; }
.sc-btn--ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.sc-btn--red { background: var(--sc-red, #C8232B); color: #FFFFFF !important; }
.sc-btn--red:hover { background: var(--sc-red-dark, #A51C23); }
.sc-btn svg { flex: none; }
.sc-btn--white svg { color: var(--sc-red, #C8232B); }

.sc-eyebrow {
  display: block;
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sc-red, #C8232B);
}

/* ---------- 1) Příběh značky ---------- */
/* Blok .welcome je v Shoptetu úzký – pro dva sloupce ho roztáhneme na šířku obsahu */
.welcome-wrapper.container-narrow:has(.sc-story) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sc-story-host,
.sc-story-host > div {
  text-align: left !important;
}

.sc-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin: 72px 0 40px;
}

/* Příběh bez fotek (např. anglická a polská verze) – text v jednom sloupci */
.sc-story.sc-story--text {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

.sc-story__media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sc-story__media > p {
  margin: 0 !important;
}

.sc-story__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: var(--sc-r-md, 20px) !important;
}

.sc-story__photo {
  grid-column: 1 / -1;
  height: 400px;
}

.sc-story__photo img {
  border-radius: 32px !important;
}

.sc-story__thumb {
  height: 140px;
}

.sc-story__badge {
  position: absolute;
  left: 24px;
  top: 312px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--sc-r-md, 20px);
  background: #FFFFFF;
  box-shadow: var(--sc-shadow-md, 0 10px 28px rgba(36, 48, 42, .10));
}

.sc-story__year {
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--sc-red, #C8232B);
}

.sc-story__badge-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sc-ink-soft, #3D4842);
}

.sc-story__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.sc-story__text h1,
.sc-story__text h2 {
  margin: 0 !important;
  font-size: 40px !important;
  line-height: 1.08 !important;
  letter-spacing: -.02em !important;
  color: var(--sc-ink, #24302A) !important;
  text-align: left !important;
}

/* Barvy vložené v editoru Shoptetu (span style="color…") sjednotíme s návrhem */
.sc-story__text h1 *,
.sc-story__text h2 * {
  color: inherit !important;
}

.sc-story__text p span[style*="color"] {
  color: var(--sc-red, #C8232B) !important;
}

.sc-story__text p {
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--sc-ink-soft, #3D4842) !important;
  text-align: left !important;
}

.sc-story__text p strong,
.sc-story__text p b {
  color: var(--sc-ink, #24302A) !important;
}

.sc-story__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.sc-stat {
  padding: 16px;
  border: 1px solid var(--sc-line, #EDE6DC);
  border-radius: 18px;
  background: #FFFFFF;
}

.sc-stat strong {
  display: block;
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--sc-ink, #24302A);
}

.sc-stat span {
  font-size: 13px;
  color: var(--sc-muted, #5B6560);
}

.sc-story__empty { display: none !important; }

/* Banner s recenzemi z Heureky pod příběhem – zaoblený, na šířku obsahu */
.sc-story__reviews {
  margin: 0 0 24px !important;
}

.sc-story__reviews img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: var(--sc-r-xl, 28px) !important;
}

/* ---------- 2) Konfigurátor ---------- */
.sc-konf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin: 72px 0;
  padding: 56px;
  border-radius: 32px;
  background: var(--sc-green, #4E6352);
  color: #FFFFFF;
}

.sc-konf__intro {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.sc-konf__tag {
  padding: 6px 14px;
  border-radius: var(--sc-r-pill, 999px);
  background: rgba(255, 255, 255, .16);
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sc-konf__title {
  margin: 0 !important;
  font-size: 44px !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em !important;
  color: #FFFFFF !important;
}

.sc-konf__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--sc-green-tint, #E4EBE3);
}

.sc-konf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.sc-konf__steps {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-konf__step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--sc-r-md, 20px);
  background: #FFFFFF;
  color: var(--sc-ink, #24302A);
}

.sc-konf__step strong {
  display: block;
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 17px;
  font-weight: 800;
}

.sc-konf__step small {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--sc-muted, #5B6560);
}

.sc-konf__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--sc-red, #C8232B);
  color: #FFFFFF;
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 18px;
  font-weight: 900;
}

.sc-konf__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sc-konf__pills span {
  padding: 5px 12px;
  border: 1px solid var(--sc-line-strong, #E6DFD5);
  border-radius: 999px;
  font-size: 14px;
}

.sc-konf__pills span.is-on {
  padding: 4px 11px;
  border: 2px solid var(--sc-ink, #24302A);
  font-weight: 700;
}

.sc-konf__swatches {
  display: inline-flex;
  gap: 8px;
  margin: 8px 10px 0 0;
  vertical-align: middle;
}

.sc-konf__swatches span {
  width: 26px;
  height: 26px;
  border: 1px solid var(--sc-line-strong, #E6DFD5);
  border-radius: 999px;
}

/* ---------- 3) Nevíte si rady? ---------- */
.sc-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 32px 0 72px;
  padding: 48px;
  border-radius: 32px;
  background: var(--sc-red-tint, #F6E3E1);
}

.sc-help__text {
  flex: 1 1 420px;
}

.sc-help__text h2 {
  margin: 0 0 12px !important;
  font-size: 34px !important;
  line-height: 1.1 !important;
  color: var(--sc-ink, #24302A) !important;
}

.sc-help__text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--sc-ink-soft, #3D4842);
}

.sc-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Tablet a mobil ---------- */
@media (max-width: 991px) {
  .sc-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 48px 0 32px;
  }
  .sc-story__photo { height: 260px; }
  .sc-story__thumb { height: 110px; }
  .sc-story__badge { top: 196px; left: 14px; padding: 10px 14px; }
  .sc-story__year { font-size: 28px; }
  .sc-story__badge-text { font-size: 12px; }
  .sc-story__text h1,
  .sc-story__text h2 { font-size: 28px !important; }
  .sc-story__text p { font-size: 15px !important; }

  .sc-konf { padding: 28px 22px; gap: 24px; margin: 48px 0; border-radius: 28px; }
  .sc-konf__title { font-size: 30px !important; }
  .sc-konf__lead { font-size: 15px; }
  .sc-konf__actions { width: 100%; }
  .sc-konf__actions .sc-btn { flex: 1 1 100%; }
  .sc-konf__intro,
  .sc-konf__steps { flex-basis: 100%; }
  .sc-konf__step { padding: 14px 16px; gap: 12px; }
  .sc-konf__num { width: 34px; height: 34px; font-size: 16px; }

  .sc-help { padding: 24px 22px; margin: 24px 0 48px; border-radius: 24px; gap: 16px; }
  .sc-help__text h2 { font-size: 24px !important; }
  .sc-help__text p { font-size: 15px; }
  .sc-help__actions { width: 100%; }
  .sc-help__actions .sc-btn { flex: 1 1 100%; }
}

@media (max-width: 767px) {
  .sc-story,
  .sc-konf,
  .sc-help {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ---------- 4) Recenze na Heureka.cz ----------
   Nahrazuje bannerový obrázek s Heurekou. Pokud obrázek v obsahu
   Shoptetu ještě zůstal, schováme ho, aby nebyl na stránce dvakrát. */
.sc-story__reviews {
  display: none !important;
}

.sc-rev {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 24px 0 32px;
  padding: 44px 48px;
  border: 1px solid var(--sc-line, #EDE6DC);
  border-radius: 32px;
  background: #FFFFFF;
}

.sc-rev__text {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.sc-rev__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--sc-green-tint, #E4EBE3);
  color: var(--sc-green-dark, #3C4E40);
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sc-rev__title {
  margin: 0 !important;
  font-size: 34px !important;
  line-height: 1.1 !important;
  letter-spacing: -.01em !important;
  color: var(--sc-ink, #24302A) !important;
}

.sc-rev__lead {
  margin: 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--sc-ink-soft, #3D4842);
}

.sc-rev__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.sc-rev__point {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: var(--sc-ink, #24302A);
}

.sc-rev__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--sc-sand, #F3ECE2);
  color: var(--sc-red, #C8232B);
}

.sc-rev__cta {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--sc-beige, #EFE4D6);
  text-align: center;
}

.sc-rev__brand {
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--sc-ink, #24302A);
}

@media (max-width: 991px) {
  .sc-rev {
    gap: 20px;
    margin: 16px 0 24px;
    padding: 24px 22px;
    border-radius: 24px;
  }

  .sc-rev__text {
    flex-basis: 100%;
    gap: 10px;
  }

  .sc-rev__title {
    font-size: 24px !important;
  }

  .sc-rev__lead {
    font-size: 15px;
  }

  .sc-rev__points {
    flex-direction: column;
    gap: 8px;
  }

  .sc-rev__icon {
    width: 36px;
    height: 36px;
  }

  .sc-rev__cta {
    flex-basis: 100%;
    padding: 20px 16px;
    border-radius: 20px;
  }

  .sc-rev__brand {
    font-size: 22px;
  }

  .sc-rev__cta .sc-btn {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .sc-rev {
    margin-left: 16px;
    margin-right: 16px;
  }
}
