/* ==========================================================================
   Slackshop – statické stránky (O nás, Kontakty, Doprava, …) + blog
   --------------------------------------------------------------------------
   • Vše je zapouzdřené pod třídou .ss-page → nerozbije šablonu Shoptetu.
   • Font se DĚDÍ ze šablony webu (font-family: inherit) – žádný vlastní font.
   • Barvy a rozestupy se mění jen v proměnných níže.
   Použití v článku:  <div class="ss-page"> … obsah … </div>
   Blogový článek:    <div class="ss-page ss-article"> … </div>
   ========================================================================== */

.ss-page {
  /* ── Barvy ── */
  --ss-ink:      #1f2428;   /* hlavní text, nadpisy */
  --ss-muted:    #636b72;   /* doprovodný text */
  --ss-soft:     #f5f6f4;   /* jemné pozadí bloků */
  --ss-line:     #e4e6e3;   /* linky, rámečky */
  --ss-accent:   #f35b2c;   /* akcent – oranžová značky */
  --ss-accent-lt:#feefea;   /* světlá varianta akcentu */
  --ss-white:    #ffffff;

  /* ── Rozměry ── */
  --ss-radius:   14px;
  --ss-gap:      clamp(56px, 8vw, 110px);  /* mezera mezi sekcemi */
  --ss-max:      1120px;

  font-family: inherit;
  color: var(--ss-ink);
  font-size: 17px;
  line-height: 1.7;
  max-width: var(--ss-max);
  margin: 0 auto;
  padding: 0 0 var(--ss-gap);
  -webkit-font-smoothing: antialiased;
}
.ss-page *, .ss-page *::before, .ss-page *::after { box-sizing: border-box; }

/* ── Základní typografie ─────────────────────────────────────────────── */
.ss-page h1, .ss-page h2, .ss-page h3, .ss-page h4 {
  font-family: inherit;
  color: var(--ss-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
}
.ss-page h2 { font-size: clamp(28px, 3.4vw, 40px); }
.ss-page h3 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; }
.ss-page h1 em, .ss-page h2 em, .ss-page h3 em { font-style: normal; color: var(--ss-accent); }
.ss-page p { margin: 0 0 1em; }
.ss-page p:last-child { margin-bottom: 0; }
.ss-page strong { font-weight: 700; color: var(--ss-ink); }
.ss-page a {
  color: var(--ss-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.ss-page a:hover { color: var(--ss-ink); }
.ss-page img { display: block; max-width: 100%; height: auto; border: 0; }
.ss-page ul, .ss-page ol { margin: 0 0 1em; padding-left: 1.2em; }
.ss-page li { margin-bottom: .4em; }

/* Malý nadpis nad nadpisem */
.ss-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ss-accent);
  margin: 0 0 14px !important;
}
.ss-lead {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.6;
  color: var(--ss-muted);
}
.ss-muted { color: var(--ss-muted); }

/* ── HERO ────────────────────────────────────────────────────────────── */
.ss-hero {
  text-align: center;
  padding: clamp(48px, 8vw, 100px) 20px clamp(40px, 6vw, 72px);
  max-width: 820px;
  margin: 0 auto;
}
.ss-hero__title {
  font-size: clamp(40px, 7vw, 76px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1 !important;
  margin: 0 0 24px !important;
}
.ss-hero .ss-lead { max-width: 640px; margin: 0 auto; }

/* ── VELKÁ ÚVODNÍ FOTKA ──────────────────────────────────────────────── */
.ss-cover {
  margin: 0 20px var(--ss-gap);
  border-radius: var(--ss-radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--ss-soft);
}
.ss-cover img { width: 100%; height: 100%; object-fit: cover; }
.ss-cover + .ss-stats { margin-top: calc(var(--ss-gap) * -0.5); }
@media (max-width: 600px) { .ss-cover { aspect-ratio: 4 / 3; margin: 0 0 40px; border-radius: 0; } }

/* ── STATISTIKY ──────────────────────────────────────────────────────── */
.ss-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--ss-line);
  border-bottom: 1px solid var(--ss-line);
  margin: 0 0 var(--ss-gap);
}
.ss-stats__item { padding: 32px 16px; text-align: center; }
.ss-stats__item + .ss-stats__item { border-left: 1px solid var(--ss-line); }
.ss-stats__num {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ss-accent);
}
.ss-stats__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ss-muted);
}

/* ── SEKCE ───────────────────────────────────────────────────────────── */
.ss-section { margin: 0 0 var(--ss-gap); padding: 0 20px; }
.ss-section__head { max-width: 680px; margin: 0 0 48px; }
.ss-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ss-section--soft {
  background: var(--ss-soft);
  border-radius: var(--ss-radius);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px);
}

/* ── KARTY / USP (mřížka) ────────────────────────────────────────────── */
.ss-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ss-card {
  background: var(--ss-white);
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  padding: 28px 28px 30px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.ss-card:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(31, 36, 40, .08);
}
.ss-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ss-accent-lt);
  color: var(--ss-accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.ss-card h3 { margin-bottom: 8px; }
.ss-card p { font-size: 15px; color: var(--ss-muted); }

/* ── ŘÁDEK TEXT + FOTKA ──────────────────────────────────────────────── */
.ss-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin: 0 0 var(--ss-gap);
  padding: 0 20px;
}
.ss-row--flip .ss-row__photo { order: 2; }
.ss-row__photo {
  border-radius: var(--ss-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ss-soft);
}
.ss-row__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ss-row:hover .ss-row__photo img { transform: scale(1.03); }
.ss-row__content { color: var(--ss-muted); }
.ss-row__content h2 { margin-bottom: 20px; }

/* ── CITÁT / PODPIS ──────────────────────────────────────────────────── */
.ss-quote {
  max-width: 820px;
  margin: 0 auto var(--ss-gap);
  padding: 0 20px;
  text-align: center;
}
.ss-quote__text {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ss-ink);
  margin: 0 0 22px !important;
}
.ss-quote__text::before {
  content: "“";
  display: block;
  font-size: 72px;
  line-height: .6;
  height: 30px;
  color: var(--ss-accent);
}
.ss-quote__sig { font-size: 14px; color: var(--ss-muted); }
.ss-quote__sig strong { display: block; color: var(--ss-ink); font-size: 15px; }

/* ── ČASOVÁ OSA ──────────────────────────────────────────────────────── */
.ss-timeline {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  max-width: 860px;
}
.ss-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 110px;
  width: 1px;
  background: var(--ss-line);
}
.ss-timeline__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 44px;
  padding: 0 0 44px;
  margin: 0 !important;
  position: relative;
}
.ss-timeline__item:last-child { padding-bottom: 0; }
.ss-timeline__item::before {
  content: "";
  position: absolute;
  left: 105px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ss-white);
  border: 2px solid var(--ss-accent);
}
.ss-timeline__year {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ss-accent);
  padding-right: 24px;
}
.ss-timeline__body h3 { margin-bottom: 6px; }
.ss-timeline__body p { font-size: 16px; color: var(--ss-muted); }

/* ── FOTKY (2–3 vedle sebe) ──────────────────────────────────────────── */
.ss-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 var(--ss-gap);
  padding: 0 20px;
}
.ss-photos figure { margin: 0; }
.ss-photos__img {
  border-radius: var(--ss-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ss-soft);
}
.ss-photos__img img { width: 100%; height: 100%; object-fit: cover; }
.ss-photos figcaption { margin-top: 10px; font-size: 14px; color: var(--ss-muted); }

/* ── KONTAKTY / INFO BOXY ────────────────────────────────────────────── */
.ss-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.ss-info__box {
  background: var(--ss-soft);
  border-radius: var(--ss-radius);
  padding: 28px;
  font-size: 16px;
}
.ss-info__box h3 { font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ss-muted); margin-bottom: 12px; }
.ss-info__big { font-size: 20px; font-weight: 700; color: var(--ss-ink); line-height: 1.4; }
.ss-info__box a { text-decoration: none; }

/* Upozornění / poznámka */
.ss-note {
  background: var(--ss-accent-lt);
  border-left: 3px solid var(--ss-accent);
  border-radius: 0 var(--ss-radius) var(--ss-radius) 0;
  padding: 20px 24px;
  font-size: 16px;
  margin: 0 0 24px;
}

/* ── TABULKA (doprava, platby) ───────────────────────────────────────── */
.ss-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.ss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: transparent !important;
}
.ss-table th, .ss-table td {
  text-align: left;
  padding: 16px 18px;
  border: 0 !important;
  border-bottom: 1px solid var(--ss-line) !important;
  vertical-align: top;
  background: transparent !important;
}
.ss-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ss-muted);
}
.ss-table td:last-child, .ss-table th:last-child { text-align: right; white-space: nowrap; }
.ss-table tr:hover td { background: var(--ss-soft) !important; }

/* ── SEZNAM S ODRÁŽKOU (spolupráce apod.) ────────────────────────────── */
.ss-list { list-style: none; padding: 0 !important; }
.ss-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  margin: 0 !important;
  border-bottom: 1px solid var(--ss-line);
  color: var(--ss-muted);
}
.ss-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 25px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ss-accent);
}

/* ── TLAČÍTKO + CTA ──────────────────────────────────────────────────── */
.ss-page .ss-btn {
  display: inline-block;
  background: var(--ss-ink);
  color: var(--ss-white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.ss-page .ss-btn:hover { background: var(--ss-accent); color: var(--ss-white); transform: translateY(-2px); }
.ss-page .ss-btn--ghost { background: transparent; color: var(--ss-ink); box-shadow: inset 0 0 0 1px var(--ss-line); }
.ss-page .ss-btn--ghost:hover { background: var(--ss-ink); color: var(--ss-white); }

.ss-cta {
  text-align: center;
  background: var(--ss-soft);
  border-radius: var(--ss-radius);
  padding: clamp(48px, 7vw, 90px) 24px;
  margin: 0 20px;
}
.ss-cta h2 { max-width: 640px; margin: 0 auto 16px; }
.ss-cta p { max-width: 560px; margin: 0 auto 32px; color: var(--ss-muted); }

/* ── RESPONZIVITA ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ss-row { grid-template-columns: 1fr; }
  .ss-row--flip .ss-row__photo { order: 0; }
}
@media (max-width: 600px) {
  .ss-page { font-size: 16px; }
  .ss-stats { grid-template-columns: 1fr 1fr; }
  .ss-stats__item + .ss-stats__item { border-left: 0; }
  .ss-stats__item:nth-child(even) { border-left: 1px solid var(--ss-line); }
  .ss-stats__item:nth-child(n+3) { border-top: 1px solid var(--ss-line); }
  .ss-timeline::before { left: 5px; }
  .ss-timeline__item { grid-template-columns: 1fr; padding-left: 32px; }
  .ss-timeline__item::before { left: 0; }
  .ss-timeline__year { font-size: 18px; margin-bottom: 4px; }
  .ss-table th, .ss-table td { padding: 12px 10px; }
  .ss-cta { margin: 0; border-radius: 0; }
}

/* ── BLOG / ČLÁNEK ───────────────────────────────────────────────────────
   Použití: <div class="ss-page ss-article"> … </div>
   Užší sloupec a menší mezery než u statických stránek. */
/* Obal článku bere celou šířku obsahu Shoptetu, text drží úzký sloupec 760 px,
   video může být širší (až 1040 px). */
.ss-page.ss-article { max-width: none; padding-bottom: 64px; }
.ss-page.ss-article > * { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.ss-page.ss-article > .ss-video { max-width: 1040px; }
.ss-article h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.8em 0 .6em; }
.ss-article > h2:first-child { margin-top: 0; }
.ss-article .ss-lead { margin-bottom: 1.4em; }

/* Číslovaný seznam tipů */
.ss-steps { list-style: none; counter-reset: ss-step; padding: 0 !important; margin: 0 0 1.6em; }
.ss-steps li {
  counter-increment: ss-step;
  position: relative;
  padding: 14px 0 14px 54px;
  margin: 0 !important;
  border-bottom: 1px solid var(--ss-line);
}
.ss-steps li:last-child { border-bottom: 0; }
.ss-steps li::before {
  content: counter(ss-step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ss-accent-lt);
  color: var(--ss-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

/* Obrázek / schéma s popiskem */
.ss-figure { margin: 28px 0 36px; }
.ss-figure__img {
  background: var(--ss-white);
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  padding: clamp(16px, 3vw, 32px);
}
.ss-figure__img img { width: 100%; height: auto; margin: 0 auto; }
.ss-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--ss-muted); text-align: center; }

/* Video 16:9 */
.ss-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--ss-radius);
  overflow: hidden;
  background: #000;
  margin: 0 0 28px;
}
.ss-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ss-article .ss-cta { margin: 48px 0 0; padding: clamp(36px, 5vw, 56px) 24px; }
.ss-article .ss-cta p { margin-bottom: 12px; }
.ss-article .ss-cta p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .ss-article .ss-cta { border-radius: var(--ss-radius); }
  .ss-steps li { padding-left: 48px; }
}

/* Fotky v článku – 3 vedle sebe v užším sloupci, menší mezery */
.ss-article .ss-photos {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 0;
  margin-top: 28px;
  margin-bottom: 36px;
}

/* Citát v článku – menší mezery než na statických stránkách */
.ss-article .ss-quote {
  padding: 0;
  margin-top: 40px;
  margin-bottom: 40px;
}
