/* olive-blocks.css — «аркуші» розділів, списки з крапками, допоміжні блоки */

.paper_stack {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 26px 70px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.paper_sheet {
  position: relative;
  background: var(--shade_card);
  border: 1px solid var(--shade_line);
  border-radius: 4px 16px 4px 16px;
  padding: 30px 32px 26px;
  box-shadow: var(--lift_low);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.paper_sheet::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -7px;
  height: 7px;
  border-radius: 0 0 12px 12px;
  background: rgba(59, 66, 36, 0.05);
  z-index: -1;
}
.paper_sheet:nth-child(odd) {
  transform: rotate(-0.55deg) translateX(-9px);
}
.paper_sheet:nth-child(even) {
  transform: rotate(0.62deg) translateX(9px);
}
.paper_sheet:nth-child(3n) {
  border-radius: 16px 4px 16px 4px;
}
.paper_sheet:hover {
  transform: rotate(0deg) translateX(0);
  box-shadow: var(--lift_mid);
}

.paper_sheet_no {
  position: absolute;
  top: -13px;
  left: 26px;
  min-width: 34px;
  height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shade_deep);
  color: var(--shade_oat);
  border-radius: 8px 8px 8px 2px;
  font-family: var(--face_plain);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.paper_sheet:nth-child(even) .paper_sheet_no {
  background: var(--shade_clay);
}

.paper_sheet_head {
  font-size: clamp(20px, 2.7vw, 27px);
  line-height: 1.24;
  font-weight: 600;
  color: var(--shade_deep);
  margin: 6px 0 12px;
}
.paper_sheet_head_is_lit {
  color: var(--shade_clay);
}

.paper_sheet p {
  font-family: var(--face_plain);
  font-size: 14.6px;
  line-height: 1.82;
  color: var(--shade_soft);
  margin-bottom: 13px;
}
.paper_sheet p:last-child {
  margin-bottom: 0;
}
.paper_sheet strong {
  color: var(--shade_ink);
  font-weight: 700;
}

/* Списки з кастомними маркерами-крапками */
.dot_list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.dot_list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-family: var(--face_plain);
  font-size: 14.4px;
  line-height: 1.78;
  color: var(--shade_soft);
}
.dot_list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50% 12% 50% 12%;
  background: var(--shade_clay);
}
.dot_list li:last-child {
  margin-bottom: 0;
}

.dot_list_is_moss li::before {
  background: var(--shade_moss);
  border-radius: 50%;
}
.dot_list_is_hollow li::before {
  background: transparent;
  border: 2px solid var(--shade_moss);
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

.step_line {
  list-style: none;
  counter-reset: olive_steps;
  margin: 4px 0 12px;
  padding: 0;
}
.step_line li {
  counter-increment: olive_steps;
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
  font-family: var(--face_plain);
  font-size: 14.4px;
  line-height: 1.76;
  color: var(--shade_soft);
}
.step_line li::before {
  content: counter(olive_steps);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50% 14% 50% 14%;
  background: #f1f3e4;
  border: 1px solid #d5daba;
  color: var(--shade_deep);
  font-size: 12.5px;
  font-weight: 700;
}

.note_slip {
  margin: 16px 0 4px;
  padding: 16px 18px 15px 20px;
  border-left: 4px solid var(--shade_clay);
  background: #f7f5e9;
  border-radius: 0 12px 12px 0;
}
.note_slip p {
  margin: 0;
  color: var(--shade_ink);
  font-size: 14.2px;
}

.pair_row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 6px 18px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--shade_line);
}
.pair_row:last-of-type {
  border-bottom: 0;
}
.pair_row_key {
  font-family: var(--face_plain);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--shade_moss);
  line-height: 1.6;
  padding-top: 2px;
}
.pair_row_val {
  font-family: var(--face_plain);
  font-size: 14.4px;
  line-height: 1.78;
  color: var(--shade_soft);
}

.term_mini {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f3e4;
  border: 1px solid #d5daba;
  font-family: var(--face_plain);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4d5527;
}

.back_link {
  display: block;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 26px 46px;
  text-align: center;
  font-family: var(--face_plain);
  font-size: 13px;
}

@media (max-width: 740px) {
  .paper_stack {
    padding: 22px 16px 56px;
    gap: 20px;
  }
  .paper_sheet {
    padding: 26px 20px 22px;
  }
  .paper_sheet:nth-child(odd),
  .paper_sheet:nth-child(even) {
    transform: none;
  }
  .pair_row {
    grid-template-columns: 1fr;
  }
}
