/* Stránky oborových riešení a modulov (partials/solution.php). Ukážky skladá partials/solution-media.php,
   prvky okna aplikácie a telefónu sú zo stavebnice ui.css. */

.solMain {
  padding-top: calc(var(--header-h) + 40px);
}

.solIco {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green-ink);
}

.solIco .i {
  width: 19px;
  height: 19px;
}

/* ===== Úvod ===== */

.solHero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
}

.solKicker .i {
  width: 16px;
  height: 16px;
  color: var(--green-ink);
}

/* H1 je nadpisok s kľúčovým slovom (.solKicker), veľký text je odsek s rovnakým vzhľadom ako nadpis */
.solHero .solTitle {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34.5px, 3.9vw, 52px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.solHero .lead {
  max-width: 622px;
  text-wrap: pretty;
}

.solCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.solNote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.solNote .i {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* ukážka detailu záznamu: okno aplikácie bez menu, písmo ako v aplikácii */
.solShot {
  min-width: 0;
}

.solStage {
  position: relative;
  width: 100%;
  container-type: inline-size;
}

.solWin {
  position: relative;
}

.solPanel {
  margin: 10px;
}

.solSum {
  flex-wrap: wrap;
  row-gap: 9px;
}

.solStages {
  margin: 12px 0 2px;
}

.solSecTitle {
  margin: 14px 0 8px !important;
  font-size: 12.5px;
  font-weight: 600;
}

.solGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 10px;
}

/* dlhý popis poľa sa zalomí, hodnoty v riadku ostanú zarovnané dole */
.solGrid .fld {
  align-content: end;
}

.solGrid .fld small {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  line-height: 1.25;
}

.solGrid .fld small .i {
  width: 11px;
  height: 11px;
}

/* pole, o ktoré v príklade ide (vypočítané alebo strážené) */
.fld.isKey b {
  background: #e8f1ff;
  color: #1d4ed8;
  font-weight: 600;
}

.solRel {
  margin-top: 14px;
}

.solRows {
  display: grid;
  margin-top: 4px;
}

.solRow {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid #f0f0f2;
  font-size: 12px;
  white-space: nowrap;
}

.solRow:last-child {
  border-bottom: 0;
}

.solRow > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

@container (max-width: 520px) {
  .solPanel .recTools em,
  .solPanel .recTools .rPill,
  .solPanel .recTools .rBtn:first-of-type {
    display: none;
  }

  .solPanel .recName small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .solGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solRow > span:nth-child(n + 4) {
    display: none;
  }

  .solRow {
    grid-template-columns: 1.2fr 1fr 0.8fr;
  }

  .solStages .stageSeg b {
    padding: 0 4px 0 12px;
    font-size: 0;
  }

  .solSum p {
    flex: 1 1 40%;
  }

  .solSum p:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

/* ===== Príklad ===== */

.solExample {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px 24.5px;
  align-items: center;
  margin-top: 64px;
  padding: 24.5px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.solExampleKicker {
  margin: 0 0 4.5px;
  font-family: var(--font);
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.solExampleText p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

.solExampleText .solExampleNote {
  margin-top: 6.5px;
  color: var(--faint);
  font-size: 14px;
}

.solFacts {
  display: flex;
  gap: 24.5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.solFacts li {
  display: grid;
  gap: 2px;
  min-width: 80px;
}

.solFacts b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.solFacts span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

/* ===== Sekcie ===== */

.solSection {
  margin-top: 95.5px;
}

.solHead {
  max-width: 800px;
  margin-bottom: 32px;
}

.solHead h2 {
  font-size: clamp(28px, 3vw, 38px);
  text-wrap: balance;
}

.solHead p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.solFlowNote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 800px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.solFlowNote .i {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--green-ink);
}

/* čo vyriešite: karty s prínosom (texty hovoria o riešení, nie o tom, čo dnes nefunguje) */
.solBenefits {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 16px;
}

.solBenefits article {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.solBenefits h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.solBenefits p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

/* krok za krokom: text a veľká ukážka na farebnom paneli, strany sa striedajú */
.solSteps {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
}

.solStepRow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}

.solStepRow:nth-child(even) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.solStepRow:nth-child(even) .solStepText {
  order: 2;
}

.solStepRow.noMedia {
  grid-template-columns: minmax(0, 1fr);
}

.solStepNum {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

.solStepNum span {
  color: var(--green-ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.solStepText h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.solStepText > p:not(.solStepNum) {
  margin: 0;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.6;
}

.solAutoList {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.solAutoList li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.solAutoList .i {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--green);
}

.solStepMedia,
.solPhoneSec,
.solOwnerMedia {
  min-width: 0;
}

.solStepMedia {
  padding: clamp(18px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 20, 24, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(155deg, #e8f5ed 0%, #eef2f8 100%);
}

.solStepRow:nth-child(even) .solStepMedia {
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 20, 24, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(155deg, #eef2f8 0%, #f6efe6 100%);
}

/* mobilná aplikácia: text a animovaný telefón */
.solPhoneSec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 20, 24, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(155deg, #e8f5ed 0%, #eef2f8 100%);
}

.solPhoneText h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 38px);
  text-wrap: balance;
}

.solPhoneText > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

.solChecks {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.solChecks li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}

.solChecks .i {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--green);
}

.solMoreLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--green-ink);
  font-weight: 600;
}

.solMoreLink .i {
  width: 16px;
  height: 16px;
}

/* ďalšie funkcie: krátke položky v troch stĺpcoch */
.solMoreGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 36px;
}

.solMoreGrid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.solMoreGrid h3 {
  margin: 2px 0 6px;
  font-size: 17.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.solMoreGrid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* agendy */
.solAgendas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.solAgendas article {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.solAgHead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.solAgHead .tile {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}

.solAgHead .tile .i {
  width: 16.5px;
  height: 16.5px;
}

.solAgHead h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.solBadge {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.solAgendas p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.solChips {
  display: flex;
  flex-wrap: wrap;
  gap: 5.5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.solChips li {
  padding: 3.5px 9px;
  border-radius: 6.5px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 13px;
  font-weight: 500;
}

/* pre majiteľa */
.solOwner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.solOwner article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4.5px 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.solOwner h3 {
  align-self: center;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.solOwner p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* pre majiteľa s nástenkou vedľa: body bez rámčekov pod sebou, vpravo nástenka */
.solOwnerWrap.hasMedia {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.solOwnerWrap.hasMedia .solOwner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.solOwnerWrap.hasMedia .solOwner article {
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.solOwnerWrap.hasMedia .solOwner article:last-child {
  border-bottom: 1px solid var(--line);
}

/* časté otázky */
.solFaq {
  max-width: 955.5px;
  border-top: 1px solid var(--line);
}

.solFaq details {
  border-bottom: 1px solid var(--line);
}

.solFaq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.solFaq summary::-webkit-details-marker {
  display: none;
}

.solCaret {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}

.solFaq details[open] .solCaret {
  transform: rotate(180deg);
}

.solFaq details p {
  max-width: 844.5px;
  margin: 0;
  padding: 0 4px 20px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

/* ďalšie riešenia */
.solRelated {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.solRelated a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.solRelated a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.solRelated strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.solRelated small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.solArrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--muted);
}

/* ===== Ukážky (partials/solution-media.php) ===== */

.solMedia {
  margin: 0;
  min-width: 0;
}

.solMediaIn {
  position: relative;
}

.solVideo {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #0e1013;
  box-shadow: var(--shadow-lg);
}

/* rozpracované miesto na skúšobnej verzii: sem patrí video */
.solTodo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1.5px dashed #e0b13b;
  border-radius: 12px;
  background: #fffaf0;
  color: #6b5000;
  font-size: 13.5px;
  line-height: 1.45;
}

.solTodo .i {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #c88a00;
}

.solTodo b {
  display: block;
  margin-bottom: 2px;
  color: #5c4300;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* lišta s filtrami a prepínačom zobrazenia */
.solPills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px !important;
}

.solPills > span:not(.solSwitch) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--appLine);
  border-radius: 999px;
  font-size: 11px;
}

.solPills .i {
  width: 12px;
  height: 12px;
}

.solSwitch {
  display: inline-flex;
  margin-left: auto;
  padding: 2px;
  border-radius: 999px;
  background: #f0f0f2;
  font-size: 11px;
}

.solSwitch span {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--appMuted);
  white-space: nowrap;
}

.solSwitch .isOn {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: var(--appText);
  font-weight: 500;
}

/* zoznam */
.solTable .solRowHead {
  min-height: 28px;
  border-radius: 7px;
  background: #f7f7f8;
  color: var(--appMuted);
  font-size: 11px;
  font-weight: 500;
}

.solRowGroup {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 2px !important;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
}

.solRowGroup i {
  padding: 0 6px;
  border-radius: 999px;
  background: #f0f0f2;
  color: var(--appMuted);
  font-size: 10.5px;
  font-style: normal;
}

.solTableFoot {
  margin: 8px 0 0 !important;
  padding: 8px 10px 0;
  border-top: 1px solid var(--appLine);
  color: var(--appMuted);
  font-size: 11.5px;
  text-align: right;
}

.solTableFoot b {
  color: var(--appText);
}

/* kalendár po zdrojoch */
.solCalHead,
.solDashHead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px !important;
  font-size: 13px;
}

.solCalHead b,
.solDashHead b {
  font-weight: 600;
}

.solCalRange {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  color: var(--appMuted);
  font-size: 11.5px;
  white-space: nowrap;
}

.solCalRange .i {
  width: 11px;
  height: 11px;
}

.solCal {
  display: grid;
  grid-template-columns: 116px repeat(var(--days), minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--appLine);
  border-bottom: 0;
  border-radius: 10px;
  font-size: 11px;
}

.solCalCorner,
.solCalDay {
  padding: 7px 8px;
  border-bottom: 1px solid var(--appLine);
  background: #fafafa;
  color: var(--appMuted);
  font-weight: 500;
  white-space: nowrap;
}

.solCalDay {
  border-left: 1px solid var(--appLine);
}

.solCalDay.isToday {
  color: var(--lnk);
  font-weight: 650;
}

.solCalWho {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border-bottom: 1px solid var(--appLine);
}

.solCalWho b {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.solCalCell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 62px;
  padding: 5px;
  border-bottom: 1px solid var(--appLine);
  border-left: 1px solid var(--appLine);
}

.solCalEv {
  display: block;
  overflow: hidden;
  padding: 4px 6px;
  border-left: 3px solid var(--c);
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 13%, #fff);
  color: #27272a;
  font-size: 10.5px;
  line-height: 1.25;
}

.solCalEv b {
  display: block;
  color: color-mix(in srgb, var(--c) 70%, #000);
  font-size: 10px;
  font-weight: 650;
}

/* kanban */
.solKanban {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 8px;
}

.solKbCol {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border-radius: 10px;
  background: #f6f6f8;
}

.solKbHead {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 7px;
  border-bottom: 2px solid var(--c);
  font-size: 11px;
}

.solKbHead b {
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.solKbHead i {
  color: var(--appMuted);
  font-style: normal;
}

.solKbHead em {
  margin-left: auto;
  color: var(--appMuted);
  font-size: 10.5px;
  font-style: normal;
  white-space: nowrap;
}

.solKbCard {
  display: grid;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  font-size: 11px;
}

.solKbCard b {
  font-weight: 600;
  line-height: 1.3;
}

.solKbCard p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  color: var(--appMuted);
}

.solKbCard .num {
  color: var(--appText);
  font-weight: 600;
  white-space: nowrap;
}

/* vytlačený dokument zo šablóny */
.solDocWrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 18px 22px 8px;
}

.solDocBack {
  position: absolute;
  inset: 26px 4px 10px 30px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.solDoc {
  position: relative;
  padding: 26px 28px 22px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: #1c1c20;
  font-size: 11.5px;
  line-height: 1.45;
  transform: rotate(-1deg);
}

.solDoc p,
.solDoc dl,
.solDoc dd {
  margin: 0;
}

.solDocTop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid #18181b;
}

.solDocLogo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.solDocOrg b,
.solDocTitle b {
  display: block;
}

.solDocOrg b {
  font-size: 12.5px;
}

.solDocOrg small,
.solDocTitle small {
  color: #71717a;
  font-size: 10.5px;
}

.solDocTitle {
  text-align: right;
}

.solDocTitle b {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.solDoc .solDocMeta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 14px 0;
}

.solDocMeta dt,
.solDocTable .isHead {
  color: #71717a;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.solDocMeta dd {
  font-weight: 500;
}

.solDocTable p {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #ececef;
}

.solDocTable .isHead {
  border-bottom-color: #c9c9ce;
}

/* prázdny riadok na podpis (prezenčná listina) */
.solDocLine {
  display: block;
  height: 1px;
  margin-top: 12px;
  background: #c9c9ce;
}

.solDocTable span:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.solDocTable span.isText {
  min-width: 0;
  text-align: left;
  white-space: normal;
}

.solDoc .solDocSum {
  display: grid;
  justify-content: end;
  gap: 3px;
  margin-top: 10px;
}

.solDocSum div {
  display: grid;
  grid-template-columns: 130px 90px;
  gap: 8px;
  text-align: right;
}

.solDocSum dt {
  color: #71717a;
}

.solDocSum .isTotal {
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px solid #18181b;
  font-size: 12.5px;
  font-weight: 700;
}

.solDocSum .isTotal dt {
  color: #18181b;
}

.solDocSign {
  display: grid;
  justify-items: start;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px dashed #d4d4d8;
}

.solDocSign svg {
  width: 150px;
  height: 58px;
}

.solDocSign path {
  fill: none;
  stroke: #1d4ed8;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solDocSign small {
  color: #71717a;
  font-size: 10px;
}

.solDoc .solDocFoot {
  margin-top: 12px;
  color: #a1a1aa;
  font-size: 9.5px;
}

.solDocBadge {
  position: absolute;
  top: 2px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5484d;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.solDocBadge .i {
  width: 13px;
  height: 13px;
}

/* e-mail z pracovného postupu */
.solMail {
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: #1c1c20;
  font-size: 12.5px;
}

.solMail p {
  margin: 0;
}

.solMailBar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-bottom: 1px solid #e6e6e9;
  background: #f1f1f3;
  color: #71717a;
  font-size: 11.5px;
}

.solMailBar > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4d4d8;
}

.solMailBar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.solMailBar .i {
  width: 13px;
  height: 13px;
}

.solMailHead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px 20px 0;
}

.solMailHead b {
  display: block;
  font-size: 13px;
}

.solMailHead small,
.solMailHead time {
  color: #71717a;
  font-size: 11.5px;
}

.solMail .solMailSubj {
  margin: 14px 20px 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.solMailBody {
  padding: 0 20px 18px;
  color: #3f3f46;
  line-height: 1.55;
}

.solMailBody p + p {
  margin-top: 8px;
}

.solMailBtn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.solMail .solMailFlow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid #ececef;
  background: #f5faf7;
  color: #3b6b4c;
  font-size: 11.5px;
}

.solMailFlow .i {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--green-ink);
}

/* nástenka */
.solDashHead .solSwitch {
  margin-left: auto;
}

.solDashTiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.solDashTile {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--appLine);
  border-top: 3px solid var(--c);
  border-radius: 10px;
}

.solDashTile small,
.solDashTile em {
  color: var(--appMuted);
  font-size: 10.5px;
  font-style: normal;
}

.solDashTile b {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.solDashRow {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.solDashChart,
.solDashList {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--appLine);
  border-radius: 10px;
}

.solDashT {
  margin: 0 0 8px !important;
  font-size: 11.5px;
  font-weight: 600;
}

.solBars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 118px;
}

.solBars span {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.solBars i {
  width: 100%;
  max-width: 26px;
  height: calc(var(--v) * 0.8);
  border-radius: 4px 4px 2px 2px;
  background: var(--c);
}

.solBars small {
  color: var(--appMuted);
  font-size: 9.5px;
}

.solDashList p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f2;
  font-size: 11px;
}

.solDashList p:last-child {
  border-bottom: 0;
}

.solDashList p > span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* telefón: rám, obrazovky podľa kroku scény a tlačidlo dole na detaile */
.solPhone {
  position: relative;
  width: 300px;
  height: 600px;
  padding: 10px;
  border-radius: 44px;
  background: #17181b;
  box-shadow: 0 40px 80px -30px rgba(20, 20, 30, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.solPhoneScreen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #f3f3f4;
  container-type: inline-size;
}

.solPhoneStatic {
  display: flex;
  justify-content: center;
}

.solPhoneScene {
  position: relative;
  width: min(100%, 345px);
  margin: 0 auto;
}

.solPhoneScene .fit {
  height: auto;
  aspect-ratio: 300 / 600;
}

.solPhoneScene:not([data-step]) .mbV1,
.solPhoneScene[data-step="0"] .mbV1,
.solPhoneScene[data-step="1"] .mbV2,
.solPhoneScene[data-step="2"] .mbV3 {
  opacity: 1;
  transform: none;
}

.solPhoneScene[data-step="1"] .mbV1,
.solPhoneScene[data-step="2"] .mbV1,
.solPhoneScene[data-step="2"] .mbV2 {
  transform: translateX(-30%);
}

.solPhBtn {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  margin: 0;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  transition: transform 0.2s, background-color 0.2s;
}

.solPhBtn .i {
  width: 13px;
  height: 13px;
}

.solPhBtn.on {
  background: #000;
  transform: scale(0.96);
}

.solPhBtn .mbTap {
  left: 50%;
  top: 50%;
}

.solPhoneStage .solTodo {
  max-width: 360px;
  margin: 18px auto 0;
}

/* video na výšku namiesto animácie telefónu (phone.video.src) */
.solPhoneVideo {
  width: min(100%, 345px);
  margin: 0 auto;
}

.solPhoneVideo .solVideo {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* užší priestor pre ukážku: menej stĺpcov, bez doplnkov v hlavičke */
@container (max-width: 560px) {
  .solPills > span:not(.solSwitch):nth-child(n + 2),
  .solCalRange,
  .solSwitch {
    display: none;
  }

  .solCal {
    grid-template-columns: 34px repeat(var(--days), minmax(0, 1fr));
    font-size: 10px;
  }

  .solCalWho {
    padding: 6px 4px;
  }

  .solCalWho b {
    display: none;
  }

  .solCalDay,
  .solCalCorner {
    padding: 6px 4px;
  }

  .solKanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solKbCol:nth-child(n + 3) {
    display: none;
  }

  .solDashRow {
    grid-template-columns: minmax(0, 1fr);
  }

  .solDashList {
    display: none;
  }
}

/* ===== Úzke obrazovky ===== */

@media (max-width: 1000px) {
  .solHero {
    grid-template-columns: minmax(0, 1fr);
  }

  .solExample {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .solFacts {
    grid-column: 1 / -1;
  }

  .solAgendas,
  .solRelated {
    grid-template-columns: minmax(0, 1fr);
  }

  .solOwner {
    grid-template-columns: minmax(0, 1fr);
  }

  .solStepRow,
  .solStepRow:nth-child(even),
  .solPhoneSec,
  .solOwnerWrap.hasMedia {
    grid-template-columns: minmax(0, 1fr);
  }

  .solStepRow:nth-child(even) .solStepText {
    order: 0;
  }

  .solBenefits,
  .solMoreGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solSection {
    margin-top: 71px;
  }
}

@media (max-width: 640px) {
  .solExample {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

  .solFacts {
    gap: 18px;
  }

  .solFacts b {
    font-size: 24px;
  }

  .solPanel {
    margin: 6px;
    padding: 12px;
  }

  .solCtas .btn {
    flex: 1 1 100%;
  }

  .solBenefits,
  .solMoreGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .solStepMedia {
    margin: 0 -8px;
    padding: 12px;
  }

  .solPhoneSec {
    padding: 24px 18px;
  }

  .solDoc {
    padding: 18px 16px;
    transform: none;
  }

  .solDocBack {
    display: none;
  }

  .solDocMeta {
    grid-template-columns: minmax(0, 1fr);
  }
}
