/* Fazonetka - stranka "Jak zakoupit a stahnout PDF strih" - novy vzhled v1
   Stejny vizualni system jako stranka "Jak vytisknout a slepit PDF strih":
   Raleway cerne nadpisy, Roboto text, zaobleni 6 px, mezery 6 px mezi bloky
   a 43 px mezi sekcemi, svetle modra = navody, zelena = "co dal".
   Rucne psane poznamky se sipkami (obrazky fazonetka-pdf-poznamka-krok-*.png)
   zustavaji, jen v novem rozlozeni.
   Nahrazuje tri puvodni soubory:
     fazonetka-jak-zakoupit-pdf-v2.css
     fazonetka-jak-zakoupit-pdf-v4-test-krok1-2.css
     fazonetka-jak-zakoupit-pdf-poznamky-vsechny-kroky-v14.css
   HTML stranky zustava beze zmeny. */

/* ---- sirka stejna jako homepage (bez bocniho odsazeni hlavniho sloupce) ---- */
@media (min-width: 768px) {
  body.in-jak-zakoupit-a-stahnout-pdf-strih main#content { padding-left: 0; padding-right: 0; }
}

/* ---- nadpis stranky ---- */
body.in-jak-zakoupit-a-stahnout-pdf-strih .pageArticleDetail > header h1 {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: #000;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin: 10px 0 18px;
}

/* ---- zaklad ---- */
.fz-pdf-guide {
  --fz-ink: #000;
  --fz-text: #1f1f1f;
  --fz-blue: #2274A5;
  --fz-blue-soft: #E7F5FD;
  --fz-blue-circle: #CFE8F2;
  --fz-green-circle: #DCEBC6;
  --fz-green-card: #DCEBC6;
  --fz-radius: 6px;
  --fz-gap: 6px;
  --fz-sec: 43px;
  font-family: 'Roboto', sans-serif;
  color: var(--fz-text);
  font-size: 17px;
  line-height: 1.55;
}
.fz-pdf-guide, .fz-pdf-guide *, .fz-pdf-guide *::before, .fz-pdf-guide *::after { box-sizing: border-box; }
.fz-pdf-guide h2, .fz-pdf-guide .fz-step-number, .fz-pdf-guide .fz-flow-item strong,
.fz-pdf-guide .fz-pdf-next strong {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: var(--fz-ink);
}

/* ---- uvod ---- */
.fz-pdf-guide-intro { max-width: 780px; margin: 0 auto; text-align: center; }
.fz-pdf-guide-intro p { font-size: 17px; line-height: 1.55; margin: 0 0 12px; }

/* ---- postup nakupu (6 ikon) ---- */
.fz-pdf-guide-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 26px 0 var(--fz-sec);
}
.fz-flow-item { flex: 0 0 auto; width: 118px; text-align: center; }
.fz-flow-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background-color: var(--fz-blue-circle);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 36px 36px;
  font-size: 0;
  line-height: 0;
  color: transparent;
}
.fz-flow-item:nth-of-type(2n) .fz-flow-icon { background-color: var(--fz-green-circle); }
.fz-flow-item strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.fz-flow-arrow {
  flex: 0 0 auto;
  display: block;
  width: 14px;
  height: 64px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 24' fill='none' stroke='%232274A5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l7 7-7 7'/%3E%3C/svg%3E") center / 14px 24px no-repeat;
}
/* ikony: cerne linky + maly oranzovy detail */
.fz-flow-item:nth-of-type(1) .fz-flow-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h4l3.2 14.5h14.3L27.5 9H8.3'/%3E%3Ccircle cx='12.5' cy='25' r='2' fill='%23F68E5F' stroke='%23F68E5F'/%3E%3Ccircle cx='22.5' cy='25' r='2' fill='%23F68E5F' stroke='%23F68E5F'/%3E%3C/svg%3E"); }
.fz-flow-item:nth-of-type(2) .fz-flow-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3.5h11l6 6V28.5H8z'/%3E%3Cpath d='M19 3.5v6h6'/%3E%3Cpath d='M12 15h9M12 19.5h9'/%3E%3Cpath d='M12 24h5' stroke='%23F68E5F' stroke-width='2.6'/%3E%3C/svg%3E"); }
.fz-flow-item:nth-of-type(3) .fz-flow-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='7.5' width='25' height='17' rx='2.5'/%3E%3Cpath d='M3.5 13h25'/%3E%3Cpath d='M8 19.5h6' stroke='%23F68E5F' stroke-width='2.6'/%3E%3C/svg%3E"); }
.fz-flow-item:nth-of-type(4) .fz-flow-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='25' height='17' rx='2.5'/%3E%3Cpath d='M4 10l12 9 12-9'/%3E%3Ccircle cx='27' cy='7' r='3.2' fill='%23F68E5F' stroke='%23F68E5F'/%3E%3C/svg%3E"); }
.fz-flow-item:nth-of-type(5) .fz-flow-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4.5v15'/%3E%3Cpath d='M9.5 13.5l6.5 6.5 6.5-6.5'/%3E%3Cpath d='M5.5 26h21' stroke='%23F68E5F' stroke-width='2.8'/%3E%3C/svg%3E"); }
.fz-flow-item:nth-of-type(6) .fz-flow-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8h8.5l3 3.5h13.5V26.5h-25z'/%3E%3Cpath d='M16 15.5v2M16 20.5v2' stroke='%23F68E5F' stroke-width='2.6'/%3E%3C/svg%3E"); }

/* ---- kroky ---- */
.fz-pdf-step,
.fz-pdf-step.fz-pdf-step-blue {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 0 var(--fz-gap);
  padding: 26px 30px;
  background: var(--fz-blue-soft);
  border: 0;
  border-radius: var(--fz-radius);
  box-shadow: none;
}
.fz-pdf-step-text { display: block; }
.fz-step-copy { display: block; }
.fz-step-number,
.fz-step-number.fz-step-number-green {
  float: left;
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 12px 10px 0;
  border-radius: 50%;
  background: var(--fz-blue);
  color: #fff !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
}
.fz-step-copy h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 40px;
  margin: 0 0 10px;
  padding: 0;
}
.fz-step-copy p { margin: 0 0 10px; clear: both; font-size: 16px; line-height: 1.55; }
.fz-step-copy h2 + p { clear: both; }
.fz-step-copy a { color: var(--fz-blue); text-decoration: underline; }

/* seznam souboru (krok 5) */
.fz-step-copy ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: var(--fz-gap); }
.fz-step-copy li {
  position: relative;
  margin: 0;
  padding: 9px 12px 9px 32px;
  background: #fff;
  border-radius: var(--fz-radius);
  font-size: 15.5px;
  line-height: 1.45;
  list-style: none;
}
.fz-step-copy li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-right: 2.5px solid var(--fz-blue);
  border-top: 2.5px solid var(--fz-blue);
  transform: rotate(45deg);
}

/* ---- obrazky a rucni poznamky ---- */
.fz-pdf-step-visual { display: flex; flex-direction: column; position: relative; text-align: left; }
.fz-pdf-step-visual img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--fz-radius);
  border: 1px solid rgba(34, 116, 165, .18);
  box-shadow: none;
}
/* textove popisky nahrazuji obrazky s rucne psanou sipkou */
.fz-pdf-guide .fz-note { display: none !important; }
.fz-pdf-step .fz-pdf-step-visual::after {
  content: "";
  display: block;
  width: min(430px, 92%);
  aspect-ratio: 520 / 173;
  margin: 8px auto 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}
.fz-pdf-step:nth-of-type(1) .fz-pdf-step-visual::after { background-image: url("/user/documents/upload/DMupravy/fazonetka-pdf-poznamka-krok-1-vyber-strihu-v2.png"); order: -1; margin: 0 auto 10px; }
.fz-pdf-step:nth-of-type(2) .fz-pdf-step-visual::after { background-image: url("/user/documents/upload/DMupravy/fazonetka-pdf-poznamka-krok-2-dulezite-v4.png"); order: -1; margin: 0 auto 10px; }
.fz-pdf-step:nth-of-type(3) .fz-pdf-step-visual::after { background-image: url("/user/documents/upload/DMupravy/fazonetka-pdf-poznamka-krok-3-strih-v-mailu.png"); }
.fz-pdf-step:nth-of-type(4) .fz-pdf-step-visual::after { background-image: url("/user/documents/upload/DMupravy/fazonetka-pdf-poznamka-krok-4-stazeni-souboru.png"); }
.fz-pdf-step:nth-of-type(5) .fz-pdf-step-visual::after { background-image: url("/user/documents/upload/DMupravy/fazonetka-pdf-poznamka-krok-5-rozbaleni-zip.png"); }

/* ---- co dal ---- */
.fz-pdf-next {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin: var(--fz-sec) 0 0;
  padding: 22px 26px 22px 100px;
  min-height: 100px;
  background: var(--fz-green-card);
  border: 0;
  border-radius: var(--fz-radius);
}
.fz-pdf-next::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='34' r='20'/%3E%3Cpath d='M22 35l7 7 14-15'/%3E%3Cpath d='M8 12l5 4M32 3v7M56 12l-5 4' stroke='%23F68E5F' stroke-width='4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fz-pdf-next > div { min-width: 170px; }
.fz-pdf-next-kicker { display: block; font-size: 15px; }
.fz-pdf-next strong { display: block; margin-top: 2px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.fz-pdf-next p { margin: 0; font-size: 16px; line-height: 1.5; }
.fz-pdf-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--fz-blue);
  border-radius: var(--fz-radius);
  color: #fff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity .15s;
}
.fz-pdf-next-btn:hover { opacity: .88; }

/* ---- pocitac: text vlevo, obrazek s rucni poznamkou vpravo ---- */
@media (min-width: 1161px) {
  .fz-pdf-step,
  .fz-pdf-step.fz-pdf-step-blue {
    grid-template-columns: minmax(380px, .85fr) minmax(620px, 1.15fr);
    gap: 28px;
    padding: 26px 28px 30px;
  }
  .fz-pdf-step-visual { display: block; }
  .fz-pdf-step .fz-pdf-step-visual::after { position: absolute; height: auto; margin: 0; }
  .fz-pdf-step:nth-of-type(1) .fz-pdf-step-visual img { width: 373px; margin: 0; }
  .fz-pdf-step:nth-of-type(2) .fz-pdf-step-visual img { width: 513px; margin: 0; }
  .fz-pdf-step:nth-of-type(3) .fz-pdf-step-visual img { width: 407px; margin: 0; }
  .fz-pdf-step:nth-of-type(4) .fz-pdf-step-visual img { width: 465px; margin: 0; }
  .fz-pdf-step:nth-of-type(5) .fz-pdf-step-visual img { width: 351px; margin: 0; }
  .fz-pdf-step:nth-of-type(1) .fz-pdf-step-visual::after { width: 250px; left: 324px; top: -64px; transform: rotate(-1deg); }
  .fz-pdf-step:nth-of-type(2) .fz-pdf-step-visual::after { width: 330px; left: 371px; top: -25px; transform: rotate(.5deg); }
  .fz-pdf-step:nth-of-type(3) .fz-pdf-step-visual::after { width: 286px; top: calc(100% + 10px); right: 0; transform: rotate(-.8deg); }
  .fz-pdf-step:nth-of-type(4) .fz-pdf-step-visual::after { width: 260px; top: calc(100% - 25px); left: 50%; transform: translateX(-50%) rotate(.6deg); }
  .fz-pdf-step:nth-of-type(5) .fz-pdf-step-visual::after { width: 312px; top: 190px; left: 300px; transform: rotate(-.5deg); }
  .fz-pdf-step:nth-of-type(4) { padding-bottom: 38px; }
}

/* ---- tablet a mobil ---- */
@media (max-width: 900px) {
  .fz-pdf-guide-flow {
    display: grid;
    grid-template-columns: 1fr 14px 1fr;
    column-gap: 6px;
    row-gap: 14px;
    align-items: center;
    justify-items: center;
    max-width: 420px;
    margin: 20px auto var(--fz-sec);
  }
  .fz-flow-item { width: 100%; }
  .fz-flow-item:nth-of-type(1) { grid-row: 1; grid-column: 1; }
  .fz-flow-item:nth-of-type(2) { grid-row: 1; grid-column: 3; }
  .fz-flow-item:nth-of-type(3) { grid-row: 2; grid-column: 1; }
  .fz-flow-item:nth-of-type(4) { grid-row: 2; grid-column: 3; }
  .fz-flow-item:nth-of-type(5) { grid-row: 3; grid-column: 1; }
  .fz-flow-item:nth-of-type(6) { grid-row: 3; grid-column: 3; }
  .fz-flow-arrow:nth-of-type(1) { grid-row: 1; grid-column: 2; }
  .fz-flow-arrow:nth-of-type(3) { grid-row: 2; grid-column: 2; }
  .fz-flow-arrow:nth-of-type(5) { grid-row: 3; grid-column: 2; }
  .fz-flow-arrow:nth-of-type(2), .fz-flow-arrow:nth-of-type(4) { display: none; }
  .fz-pdf-next { grid-template-columns: 1fr; padding: 84px 14px 18px; text-align: center; gap: 10px; }
  .fz-pdf-next::before { left: 50%; top: 18px; margin: 0 0 0 -28px; }
  .fz-pdf-next-btn { justify-self: center; white-space: normal; text-align: center; padding: 10px 18px; }
}
@media (max-width: 767px) {
  body.in-jak-zakoupit-a-stahnout-pdf-strih .pageArticleDetail > header h1 { font-size: 26px; }
  .fz-pdf-guide { font-size: 16px; line-height: 1.5; }
  .fz-pdf-guide-intro p { font-size: 16px; line-height: 23px; }
  .fz-pdf-step, .fz-pdf-step.fz-pdf-step-blue { padding: 14px; }
  .fz-step-number, .fz-step-number.fz-step-number-green { width: 34px; height: 34px; font-size: 17px; line-height: 34px; margin-right: 10px; }
  .fz-step-copy h2 { font-size: 18px; line-height: 34px; }
  .fz-step-copy p { font-size: 15.5px; }
  .fz-step-copy li { font-size: 15px; }
  .fz-pdf-next strong { font-size: 20px; }
}
