/* ============================================================
   INDUSTRIEN — Kalkulačka stlačeného vzduchu, verze 2
   Namespace: .ik-   (nekoliduje se starým .nk- / .nkp-)
   Bez border-radius. Kalkulačka bez rámečku, sekce dělené linkami.
   Jediný barevný blok je výsledek. CTA červené #FE0000 dle e-shopu.
   Vkládá se do šablony: Vzhled a obsah → Editor šablony → vlastní CSS.
   ============================================================ */

#ik-page {
  --ik-ink:      #010066;
  --ik-red:      #fe0000;
  --ik-red-dark: #cc0000;
  --ik-accent:   #ffb92e;   /* jen na tmavě modrém podkladu */
  --ik-text:     #1c1c22;
  --ik-muted:    #55556b;
  --ik-line:     #d5d5e2;
  --ik-line-soft:#e8e8f0;
  --ik-bg-alt:   #f6f6fa;
  --ik-bg-tint:  #eef0f8;

  color: var(--ik-text);
  /* Šablona Industrien má html{font-size:10px}, takže rem by tady
     počítal s desetibodovým základem a celá kalkulačka by se zmenšila
     na 62,5 %. Proto je celá sazba v pixelech. */
  font-size: 15px;
  line-height: 1.6;
}

#ik-page *,
#ik-page *::before,
#ik-page *::after { box-sizing: border-box; border-radius: 0; }

#ik-page p { margin: 0 0 12px; }
#ik-page p:last-child { margin-bottom: 0; }
#ik-page a { color: var(--ik-ink); }

/* ---------- perex + návod ---------- */

#ik-page .ik-perex {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* ---------- rozbalovací návod ---------- */

#ik-page .ik-howto {
  margin: 0 0 40px;
  padding: 14px 20px;
  background: var(--ik-bg-alt);
  border-left: 3px solid var(--ik-ink);
}

#ik-page .ik-howto-h { margin: 0; }

#ik-page .ik-howto-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ik-ink);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: left;
  cursor: pointer;
}
#ik-page .ik-howto-btn:hover { color: var(--ik-text); }
#ik-page .ik-howto-btn:focus-visible { outline: 2px solid var(--ik-ink); outline-offset: 3px; }

#ik-page .ik-howto-btn::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform .15s ease-out;
}
#ik-page .ik-howto-btn[aria-expanded="true"]::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { #ik-page .ik-howto-btn::before { transition: none; } }

#ik-page .ik-howto-body { padding-top: 14px; }
#ik-page .ik-howto-body[hidden] { display: none; }

#ik-page .ik-howto-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ikh;
  display: grid;
  gap: 10px;
}

#ik-page .ik-howto-list li {
  counter-increment: ikh;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

#ik-page .ik-howto-list li::before {
  content: counter(ikh);
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: var(--ik-ink);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

#ik-page .ik-howto-list b { color: var(--ik-ink); }

/* ============================================================
   KALKULAČKA — bez rámečku, sekce dělené linkou
   ============================================================ */

#ik-calc {
  container-type: inline-size;
  container-name: ikcalc;
  margin: 0 0 48px;
}

#ik-calc .ik-step {
  padding: 28px 0 32px;
  border-top: 2px solid var(--ik-ink);
}
#ik-calc .ik-step:first-child { padding-top: 20px; }

#ik-calc .ik-step-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

#ik-calc .ik-step-n {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: var(--ik-ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

#ik-calc .ik-step-h {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ik-ink);
}

#ik-calc .ik-step-p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ik-muted);
}
#ik-calc .ik-step-p b { color: var(--ik-text); }

/* ---------- nápověda v bublině ---------- */

#ik-page .ik-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0;
  border: 1px solid currentColor;
  background: none;
  color: var(--ik-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  flex: 0 0 auto;
}
#ik-page .ik-q:hover,
#ik-page .ik-q[aria-expanded="true"] { background: var(--ik-ink); border-color: var(--ik-ink); color: #fff; }
#ik-page .ik-q:focus-visible { outline: 2px solid var(--ik-ink); outline-offset: 2px; }

#ik-page .ik-q.is-light { color: #b9b9dd; }
#ik-page .ik-q.is-light:hover,
#ik-page .ik-q.is-light[aria-expanded="true"] { background: #fff; border-color: #fff; color: var(--ik-ink); }

#ik-tip {
  position: absolute;
  z-index: 90;
  max-width: 336px;
  padding: 12px 14px;
  background: #14143c;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
}
#ik-tip.is-on { opacity: 1; }
#ik-tip b { color: var(--ik-accent); }
#ik-tip .ik-tip-formula {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: 12.5px;
  color: #d6d6ee;
}
@media (prefers-reduced-motion: reduce) { #ik-tip { transition: none; } }

/* ---------- výběr typického nářadí ---------- */

#ik-calc .ik-pick-lab {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ik-text);
}

#ik-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
@container ikcalc (min-width: 440px) { #ik-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container ikcalc (min-width: 640px) { #ik-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container ikcalc (min-width: 880px) { #ik-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@supports not (container-type: inline-size) {
  @media (min-width: 900px) { #ik-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
}

#ik-calc .ik-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 12px;
  border: 1px solid var(--ik-line);
  background: #fff;
  color: var(--ik-text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
#ik-calc .ik-tile:hover { border-color: var(--ik-ink); background: var(--ik-bg-tint); }
#ik-calc .ik-tile:focus-visible { outline: 2px solid var(--ik-ink); outline-offset: 2px; }
#ik-calc .ik-tile:active { background: var(--ik-bg-tint); }

#ik-calc .ik-tile svg { width: 36px; height: 36px; color: var(--ik-ink); flex: 0 0 auto; }
#ik-calc .ik-tile-n { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ik-ink); }
#ik-calc .ik-tile-v { font-size: 12px; line-height: 1.35; color: var(--ik-muted); }
#ik-calc .ik-tile-plus {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ik-muted);
}
#ik-calc .ik-tile:hover .ik-tile-plus { color: var(--ik-ink); }

@media (prefers-reduced-motion: reduce) { #ik-calc .ik-tile { transition: none; } }

/* --- oddělovač „nebo" + vlastní stroj --- */

#ik-calc .ik-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--ik-muted);
  font-size: 14px;
}
#ik-calc .ik-or::before,
#ik-calc .ik-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--ik-line); }

#ik-calc .ik-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 28px;
}
#ik-calc .ik-custom p { margin: 0; font-size: 14px; color: var(--ik-muted); flex: 1 1 256px; }

#ik-calc .ik-btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 11px 18px;
  border: 2px solid var(--ik-ink);
  background: #fff;
  color: var(--ik-ink);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  flex: 0 0 auto;
}
#ik-calc .ik-btn-line:hover { background: var(--ik-ink); color: #fff; }
#ik-calc .ik-btn-line:focus-visible { outline: 2px solid var(--ik-ink); outline-offset: 2px; }
#ik-calc .ik-btn-line svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- seznam zadaných strojů ---------- */

#ik-calc .ik-list-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ik-line);
}
#ik-calc .ik-list-h h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ik-text); }
#ik-calc .ik-list-h .ik-count { font-size: 14px; color: var(--ik-muted); }

#ik-rows { display: grid; gap: 8px; }

/* hlavička sloupců — jen v širokém rozvržení, aby se popisky
   neopakovaly u každého řádku */
#ik-calc .ik-rowhead { display: none; }

#ik-calc .ik-empty {
  padding: 24px 16px;
  background: var(--ik-bg-alt);
  border: 1px dashed var(--ik-line);
  text-align: center;
  font-size: 15px;
  color: var(--ik-muted);
}

#ik-calc .ik-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--ik-bg-alt);
  border-bottom: 1px solid var(--ik-line-soft);
}

@container ikcalc (min-width: 700px) {
  #ik-calc .ik-row,
  #ik-calc .ik-rowhead {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 104px 92px 96px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
  }
  #ik-calc .ik-rowhead { padding: 0 14px 6px; align-items: end; }
  #ik-calc .ik-row .ik-lab { display: none; }
  #ik-calc .ik-out { border-left: 2px solid var(--ik-line); }
  #ik-calc .ik-del { position: static; top: auto; right: auto; }
}
@supports not (container-type: inline-size) {
  @media (min-width: 960px) {
    #ik-calc .ik-row,
    #ik-calc .ik-rowhead {
      display: grid;
      grid-template-columns: minmax(0, 1.5fr) 104px 92px 96px minmax(0, 1fr) 28px;
      align-items: center;
      gap: 16px;
    }
    #ik-calc .ik-rowhead { padding: 0 14px 6px; align-items: end; }
    #ik-calc .ik-row .ik-lab { display: none; }
    #ik-calc .ik-out { border-left: 2px solid var(--ik-line); }
    #ik-calc .ik-del { position: static; top: auto; right: auto; }
  }
}

#ik-calc .ik-rowhead span { display: block; font-size: 13px; font-weight: 600; color: var(--ik-muted); line-height: 1.3; }
#ik-calc .ik-rowhead .ik-rh-out { padding-left: 14px; }

#ik-calc .ik-row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#ik-calc .ik-row-name svg { width: 24px; height: 24px; color: var(--ik-ink); flex: 0 0 auto; }
#ik-calc .ik-row-name input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ik-ink);
}
#ik-calc .ik-row-name input:hover { border-color: var(--ik-line); background: #fff; }
#ik-calc .ik-row-name input:focus { border-color: var(--ik-ink); background: #fff; outline: none; }
#ik-calc .ik-row-name input::placeholder { color: #8a8a9c; font-weight: 400; }

/* --- pole --- */

#ik-calc .ik-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

#ik-calc .ik-lab {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ik-muted);
  line-height: 1.25;
}
#ik-calc .ik-lab > label { cursor: pointer; }

#ik-calc .ik-in { display: flex; align-items: stretch; border: 1px solid var(--ik-line); background: #fff; }
#ik-calc .ik-in:focus-within { border-color: var(--ik-ink); box-shadow: inset 0 0 0 1px var(--ik-ink); }
#ik-calc .ik-in input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 6px 8px 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ik-text);
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}
#ik-calc .ik-in input::-webkit-outer-spin-button,
#ik-calc .ik-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#ik-calc .ik-in input:focus { outline: none; }
#ik-calc .ik-unit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  background: var(--ik-bg-tint);
  border-left: 1px solid var(--ik-line);
  color: var(--ik-muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

/* --- stepper na počet --- */

#ik-calc .ik-step-in { display: flex; border: 1px solid var(--ik-line); background: #fff; }
#ik-calc .ik-step-in:focus-within { border-color: var(--ik-ink); }
#ik-calc .ik-step-in button {
  flex: 0 0 auto;
  width: 30px;
  border: 0;
  background: var(--ik-bg-tint);
  color: var(--ik-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
#ik-calc .ik-step-in button:hover { background: var(--ik-ink); color: #fff; }
#ik-calc .ik-step-in button:focus-visible { outline: 2px solid var(--ik-ink); outline-offset: -2px; }
#ik-calc .ik-step-in input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  border-inline: 1px solid var(--ik-line);
  background: transparent;
  padding: 8px 4px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--ik-text);
  -moz-appearance: textfield;
  appearance: textfield;
}
#ik-calc .ik-step-in input::-webkit-outer-spin-button,
#ik-calc .ik-step-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#ik-calc .ik-step-in input:focus { outline: none; }

/* --- odečet trvalé spotřeby --- */

#ik-calc .ik-out {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-left: 14px;
  border-left: 2px solid var(--ik-line);
}
#ik-calc .ik-out-v {
  font-size: 18px;
  font-weight: 700;
  color: var(--ik-ink);
  line-height: 1.25;
  white-space: nowrap;
}
#ik-calc .ik-out-v small { font-size: 12px; font-weight: 600; color: var(--ik-muted); margin-left: 3px; }
#ik-calc .ik-out.is-zero .ik-out-v { color: var(--ik-muted); }

/* --- mazání --- */

/* v úzkém rozvržení sedí křížek v pravém horním rohu řádku,
   v širokém je z něj poslední sloupec mřížky */
#ik-calc .ik-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ik-line);
  background: #fff;
  color: var(--ik-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  justify-self: start;
  align-self: end;
}
#ik-calc .ik-del:hover { border-color: var(--ik-red-dark); color: var(--ik-red-dark); }
#ik-calc .ik-del:focus-visible { outline: 2px solid var(--ik-ink); outline-offset: 1px; }

/* --- součty pod seznamem --- */

#ik-calc .ik-sums {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid var(--ik-ink);
}
@container ikcalc (min-width: 520px) { #ik-calc .ik-sums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@supports not (container-type: inline-size) {
  @media (min-width: 760px) { #ik-calc .ik-sums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
}

#ik-calc .ik-sum { display: flex; flex-direction: column; gap: 1.5px; }
#ik-calc .ik-sum-l { display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ik-muted); }
#ik-calc .ik-sum-v { font-size: 22px; font-weight: 700; color: var(--ik-ink); line-height: 1.2; }
#ik-calc .ik-sum-v small { font-size: 13px; font-weight: 600; color: var(--ik-muted); margin-left: 4px; }

/* ---------- rezervy ---------- */

#ik-calc .ik-reserve {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 736px;
}
/* procento je nejvýš trojciferné, širší pole působí rozházeně */
#ik-calc .ik-reserve .ik-in { max-width: 150px; }
@container ikcalc (min-width: 560px) { #ik-calc .ik-reserve { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@supports not (container-type: inline-size) {
  @media (min-width: 800px) { #ik-calc .ik-reserve { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
}

/* ============================================================
   VÝSLEDEK — jediný barevný blok
   ============================================================ */

#ik-result {
  background: var(--ik-ink);
  color: #fff;
  padding: 24px 20px 26px;
}
@container ikcalc (min-width: 560px) { #ik-result { padding: 32px 32px 34px; } }
@supports not (container-type: inline-size) {
  @media (min-width: 800px) { #ik-result { padding: 32px 32px 34px; } }
}

#ik-result .ik-r-lab {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c2c2e4;
  margin-bottom: 8px;
}

#ik-result .ik-r-read { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
#ik-result .ik-r-num {
  font-size: clamp(44px, 30.5px + 4vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ik-accent);
}
#ik-result .ik-r-unit { font-size: 22px; font-weight: 700; color: #fff; }
#ik-result .ik-r-m3 { display: block; margin-top: 8px; font-size: 14px; color: #c2c2e4; }
#ik-result.is-empty .ik-r-num { color: #7e7eb8; }

#ik-result .ik-r-peak {
  display: block;
  max-width: 620px;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: 15px;
  line-height: 1.5;
  color: #e4e4f4;
}
#ik-result .ik-r-peak b { color: #fff; }

#ik-result .ik-r-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}
@container ikcalc (min-width: 520px) {
  #ik-result .ik-r-cta { grid-template-columns: auto auto; justify-content: start; gap: 14px; }
}
@supports not (container-type: inline-size) {
  @media (min-width: 760px) { #ik-result .ik-r-cta { grid-template-columns: auto auto; justify-content: start; gap: 14px; } }
}

/* červené CTA — 19px bold, aby bílý text na #FE0000 prošel WCAG jako velké písmo */
#ik-result .ik-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--ik-red);
  border: 2px solid var(--ik-red);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
#ik-result .ik-btn-red:hover { background: var(--ik-red-dark); border-color: var(--ik-red-dark); color: #fff; }
#ik-result .ik-btn-red:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

#ik-result .ik-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #fff;
  border: 2px solid #fff;
  color: var(--ik-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
#ik-result .ik-btn-white:hover { background: transparent; color: #fff; }
#ik-result .ik-btn-white:focus-visible { outline: 3px solid var(--ik-accent); outline-offset: 2px; }

#ik-result .ik-r-note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #b4b4d8;
  max-width: 68ch;
}
#ik-result .ik-r-note a { color: #fff; }

/* ---------- lišta s výsledkem na mobilu ---------- */

#ik-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: var(--ik-ink);
  color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
  transform: translateY(105%);
  transition: transform .18s ease-out;
}
#ik-sticky.is-on { transform: translateY(0); }
#ik-sticky[hidden] { display: none; }
#ik-sticky .ik-s-lab { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #c2c2e4; }
#ik-sticky .ik-s-val { font-size: 18px; font-weight: 800; color: var(--ik-accent); line-height: 1.2; }
#ik-sticky .ik-s-val small { font-size: 13px; color: #fff; font-weight: 700; margin-left: 3px; }
#ik-sticky a {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: var(--ik-red);
  border: 2px solid var(--ik-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
@media (min-width: 900px) { #ik-sticky { display: none; } }
@media (max-width: 899px) { #ik-page { padding-bottom: 68px; } }
@media (prefers-reduced-motion: reduce) { #ik-sticky { transition: none; } }

/* ============================================================
   OBSAH STRÁNKY POD KALKULAČKOU
   ============================================================ */

#ik-page .ik-h2 {
  font-size: clamp(22px, 17.5px + 1.2vw, 28px);
  line-height: 1.25;
  color: var(--ik-ink);
  font-weight: 700;
  margin: 48px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ik-ink);
}
#ik-page .ik-h3 { font-size: 17px; line-height: 1.35; color: var(--ik-ink); font-weight: 700; margin: 0 0 5.5px; }
#ik-page .ik-h3 a { color: var(--ik-ink); text-decoration: underline; }
#ik-page .ik-h3 a:hover { text-decoration: none; }
#ik-page .ik-sub { color: var(--ik-muted); margin: 0 0 24px; max-width: 70ch; }

#ik-page .ik-cards { display: grid; gap: 1px; background: var(--ik-line); border: 1px solid var(--ik-line); grid-template-columns: 1fr; }
@media (min-width: 620px) { #ik-page .ik-cards-2, #ik-page .ik-cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { #ik-page .ik-cards-3 { grid-template-columns: repeat(3, 1fr); } }
#ik-page .ik-card { background: #fff; padding: 20px; }
#ik-page .ik-card p { font-size: 15px; line-height: 1.6; }
#ik-page .ik-card-num { padding-top: 20px; }
#ik-page .ik-num {
  display: inline-block; min-width: 28px; height: 28px; line-height: 28px;
  text-align: center; background: var(--ik-ink); color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 10px;
}

#ik-page .ik-callout { margin-top: 16px; padding: 18px 20px; background: var(--ik-bg-alt); border-left: 3px solid var(--ik-ink); }
#ik-page .ik-callout p { font-size: 15px; line-height: 1.6; }

#ik-page .ik-help-box { margin-top: 48px; padding: 24px; background: var(--ik-bg-alt); border: 1px solid var(--ik-line); }
#ik-page .ik-help-box .ik-h2 { margin-top: 0; }

#ik-page .ik-types { display: grid; gap: 1px; background: var(--ik-line); border: 1px solid var(--ik-line); grid-template-columns: 1fr; }
@media (min-width: 560px) { #ik-page .ik-types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { #ik-page .ik-types { grid-template-columns: repeat(4, 1fr); } }
#ik-page .ik-type { background: #fff; padding: 18px; }
#ik-page .ik-type p { font-size: 15px; line-height: 1.55; color: var(--ik-muted); }

#ik-page .ik-btn-page {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; background: var(--ik-ink); color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid var(--ik-ink);
}
#ik-page .ik-btn-page:hover { background: #fff; color: var(--ik-ink); }
#ik-page .ik-btn-ghost { background: #fff; color: var(--ik-ink); }
#ik-page .ik-btn-ghost:hover { background: var(--ik-ink); color: #fff; }
#ik-page .ik-btn-shop { background: var(--ik-red); border-color: var(--ik-red); font-size: 17px; }
#ik-page .ik-btn-shop:hover { background: var(--ik-red-dark); border-color: var(--ik-red-dark); color: #fff; }

#ik-page .ik-guide {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 20px; border: 1px solid var(--ik-line); border-left: 3px solid var(--ik-ink);
}
#ik-page .ik-guide-txt { flex: 1 1 320px; }
#ik-page .ik-guide-txt p { font-size: 15px; color: var(--ik-muted); margin: 0; }

#ik-page .ik-more { margin-top: 16px; font-size: 15px; color: var(--ik-muted); line-height: 1.9; }
#ik-page .ik-meta { font-size: 13px; color: var(--ik-muted); margin: 8px 0 0; }
#ik-page .ik-card-cta { margin: 14px 0 0; }

#ik-page .ik-mistakes { list-style: none; counter-reset: ikm; margin: 0; padding: 0; border-top: 1px solid var(--ik-line); }
#ik-page .ik-mistakes > li {
  counter-increment: ikm; display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--ik-line-soft);
}
#ik-page .ik-mistakes > li::before {
  content: counter(ikm); width: 36px; height: 36px; line-height: 36px; text-align: center;
  background: var(--ik-bg-alt); border: 1px solid var(--ik-line); color: var(--ik-ink); font-weight: 700;
}
#ik-page .ik-mistakes p { font-size: 15px; line-height: 1.6; }

#ik-page .ik-faq { border-top: 1px solid var(--ik-line); }
#ik-page .ik-faq-item { border-bottom: 1px solid var(--ik-line); }
#ik-page .ik-faq-q { margin: 0; }
#ik-page .ik-faq-btn {
  display: flex; align-items: flex-start; gap: 14px; width: 100%;
  padding: 16px 4px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700;
  color: var(--ik-ink); text-align: left; cursor: pointer; line-height: 1.4;
}
#ik-page .ik-faq-btn:hover { background: var(--ik-bg-alt); }
#ik-page .ik-faq-btn:focus-visible { outline: 2px solid var(--ik-ink); outline-offset: -2px; }
#ik-page .ik-faq-btn::after {
  content: "+"; margin-left: auto; flex: 0 0 auto; width: 24px; height: 24px; line-height: 22.5px;
  text-align: center; border: 1px solid var(--ik-ink); font-size: 17px; font-weight: 700;
}
#ik-page .ik-faq-btn[aria-expanded="true"]::after { content: "\2212"; background: var(--ik-ink); color: #fff; }
#ik-page .ik-faq-a { padding: 0 4px 18px; }
#ik-page .ik-faq-a[hidden] { display: none; }
#ik-page .ik-faq-a p { font-size: 15px; line-height: 1.65; max-width: 70ch; }
#ik-page .ik-faq-plain .ik-faq-q { font-size: 16px; font-weight: 700; color: var(--ik-ink); padding: 16px 0 4px; }

#ik-page .ik-final { margin-top: 48px; padding: 28px; background: var(--ik-ink); color: #fff; }
#ik-page .ik-final .ik-h2 { color: #fff; border-bottom-color: rgba(255, 255, 255, .35); margin-top: 0; }
#ik-page .ik-final p { color: #e4e4f4; max-width: 64ch; }
#ik-page .ik-final-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
#ik-page .ik-final .ik-btn-page { background: #fff; color: var(--ik-ink); border-color: #fff; }
#ik-page .ik-final .ik-btn-page:hover { background: transparent; color: #fff; }
#ik-page .ik-final .ik-btn-ghost { background: transparent; color: #fff; border-color: #fff; }
#ik-page .ik-final .ik-btn-ghost:hover { background: #fff; color: var(--ik-ink); }
#ik-page .ik-final .ik-btn-shop { background: var(--ik-red); border-color: var(--ik-red); color: #fff; }
#ik-page .ik-final .ik-btn-shop:hover { background: var(--ik-red-dark); border-color: var(--ik-red-dark); color: #fff; }

#ik-page .ik-nw { white-space: nowrap; }

#ik-page .ik-vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media print { #ik-sticky, #ik-tip { display: none; } }
