/* «Для родителей», блок «Сколько стоит» (templates/public/parents/price.html).
   Слева карточка «подписка на семью» с пунктами, справа «чек» годовой
   подписки с зубчатым нижним краем, под ним помесячная цена и кнопка.
   Уже 900px — колонкой: сначала шаги, потом чек. */

.ps { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; align-items: start; }

/* ── список дел ── */
.ps-list {
  display: grid; gap: 26px; padding: 48px; border-radius: 30px; background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(25, 30, 80, .28), 0 2px 6px rgba(25, 30, 80, .05);
}
.ps-hd { display: grid; gap: 16px; }
.ps-hd h2 { margin: 0; max-width: 560px; font-size: clamp(31px, 4vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.ps-hd h2 em {
  font-style: normal; color: transparent;
  background: linear-gradient(95deg, #1f7bff, #17bfe0 55%, #2ee59d);
  -webkit-background-clip: text; background-clip: text;
}

.ps-todo { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.ps-todo li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 18px; align-items: start;
  margin: 0; padding: 22px 0; border-bottom: 1px solid var(--border);
}
.ps-cb { grid-row: span 2; width: 30px; height: 30px; margin-top: 1px; border-radius: 9px; box-shadow: inset 0 0 0 2px #cfd2e3; }
.ps-todo .is-done .ps-cb {
  box-shadow: none;
  background: #14b886 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ps-todo b { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.ps-todo .is-done b { color: var(--muted); text-decoration: line-through; text-decoration-color: #b9bcd0; }
.ps-todo span { grid-column: 2; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ps-todo em {
  grid-row: 1; grid-column: 3; padding: 5px 11px; border-radius: var(--pill);
  font-style: normal; font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  color: var(--ink-2); background: var(--surface-2);
}
.ps-todo .is-free em { color: #0b7d5a; background: #dcfaee; }
/* пункты здесь — не дела, а условия: вместо пустого квадрата — галочка */
.ps-todo .ps-cb {
  box-shadow: none;
  background: #14b886 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ps-lead { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

.ps-safe { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ps-safe img { width: 48px; height: 48px; flex: none; }

/* ── чек ── */
.ps-side { display: grid; gap: 16px; }
.ps-receipt {
  position: relative; padding: 30px 28px 34px; border-radius: 22px 22px 0 0;
  font-size: 14.5px; background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(25, 30, 80, .28), 0 2px 6px rgba(25, 30, 80, .05);
}
/* зубчатый край: два ряда треугольников того же цвета, что и чек */
.ps-receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background:
    linear-gradient(-45deg, transparent 8px, var(--surface) 0) 0 0 / 16px 12px repeat-x,
    linear-gradient(45deg, transparent 8px, var(--surface) 0) 0 0 / 16px 12px repeat-x;
  filter: drop-shadow(0 6px 4px rgba(25, 30, 80, .06));
}
.ps-rt { display: grid; justify-items: center; gap: 4px; padding-bottom: 18px; text-align: center; }
.ps-rt small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ps-rt b { font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); }

.ps-rows { display: grid; gap: 9px; margin: 0; padding: 16px 0; list-style: none; border-top: 1.5px dashed #d6d8e6; }
.ps-r { display: flex; align-items: baseline; gap: 8px; margin: 0; line-height: 1.45; color: var(--ink-2); }
.ps-r::after { content: ""; order: 1; flex: 1; min-width: 12px; border-bottom: 1.5px dotted #cfd2e3; transform: translateY(-4px); }
.ps-r > span:last-child { order: 2; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ps-r s { font-weight: 500; color: var(--muted); }
.ps-r.is-minus > span:last-child { color: #14b886; }
.ps-note { display: block; font-size: 12.5px; color: var(--muted); }
.ps-tiers .ps-r b { font-weight: 800; color: var(--ink); }
.ps-tiers .ps-r span small { font-size: 12.5px; color: var(--muted); }
.ps-tiers .ps-r > span:last-child { display: grid; justify-items: end; line-height: 1.25; }
.ps-tiers .ps-r > span:last-child small { font-weight: 500; }
.ps-inc small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ps-total { display: grid; gap: 6px; padding-top: 16px; border-top: 1.5px dashed #d6d8e6; }
.ps-total .ps-r { font-size: 17px; font-weight: 700; color: var(--ink); }
.ps-total .ps-r > span:last-child { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.ps-total .ps-r.is-m { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.ps-total .ps-r.is-m > span:last-child { font-size: 16px; font-weight: 700; letter-spacing: 0; }

.ps-alt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 10px 0 0; padding: 16px 20px; border-radius: 20px;
  font-size: 14.5px; line-height: 1.4; color: var(--muted);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border);
}
.ps-alt b { font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.ps-go { width: 100%; }
.ps-go::after { content: "→"; margin-left: 10px; font-weight: 500; }
.ps-after { margin: 0; font-size: 13.5px; line-height: 1.45; text-align: center; color: var(--muted); }

@media (max-width: 1100px) {
  .ps { grid-template-columns: minmax(0, 1fr) 400px; }
  .ps-list { padding: 40px 36px; }
}
@media (max-width: 900px) {
  .ps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ps-side { width: 100%; max-width: 560px; justify-self: center; }
}
@media (max-width: 720px) {
  .ps-list { gap: 20px; padding: 28px 20px; border-radius: 26px; }
  .ps-hd h2 { font-size: 32px; }
  .ps-todo li { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; }
  .ps-cb { width: 28px; height: 28px; }
  .ps-todo b { font-size: 17.5px; }
  .ps-todo em { grid-row: auto; grid-column: 2; justify-self: start; margin-top: 4px; }
  .ps-receipt { padding: 24px 18px 28px; font-size: 14px; }
  .ps-alt { padding: 14px 16px; }
}
