/* Страница /platform. Токены — из DESIGN.md (индиго, системный шрифт, тихие тени). */
.pl {
    --pl-primary: #4f46e5;
    --pl-primary-hover: #4338ca;
    --pl-ink: #111827;
    --pl-muted: #4b5563;
    --pl-tint: #f8fafc;
    --pl-line: #d1d5db;
    --pl-bad: #b91c1c;
    --pl-bad-bg: #fef2f2;
    --pl-ok: #166534;
    --pl-ok-bg: #f0fdf4;
    color: var(--pl-ink);
    line-height: 1.6;
}
html { overflow-x: clip; }
.pl-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.pl-wrap--text { max-width: 760px; }
.pl h1, .pl h2, .pl h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.pl h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.pl h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 16px; }
.pl h3 { font-size: 1.35rem; }
.pl p { max-width: 62ch; }
.pl-lead { font-size: 1.2rem; color: var(--pl-muted); margin: 18px 0 26px; }
.pl-note { font-size: .95rem; color: var(--pl-muted); }

.pl-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px;
    border-radius: 12px; border: 2px solid var(--pl-primary); background: var(--pl-primary); color: #fff;
    font-weight: 700; text-align: center; cursor: pointer; transition: background-color .18s ease-out;
}
.pl-btn:hover { background: var(--pl-primary-hover); }
.pl-btn--line { background: transparent; color: var(--pl-primary-hover); }
.pl-btn--line:hover { background: #eef2ff; }
.pl-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--pl-primary-hover); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pl a:focus-visible, .pl button:focus-visible, .pl input:focus-visible, .pl summary:focus-visible, .pl-tablewrap:focus-visible { outline: 3px solid var(--pl-primary); outline-offset: 3px; }
.pl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 18px; }

.pl-hero { padding: 116px 0 56px; background: var(--pl-tint); }
.pl-hero__grid { display: grid; gap: 36px; align-items: center; }
.pl-hero__grid > *, .pl-split > *, .pl-try > * { min-width: 0; }
.pl-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #17102b; box-shadow: 0 10px 22px rgba(17, 24, 39, .2); }
.pl-video figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-top: 10px; font-size: .85rem; color: var(--pl-muted); }

.pl-facts { border-block: 1px solid var(--pl-line); }
.pl-facts dl { display: grid; gap: 24px; padding-block: 28px; }
.pl-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.pl-facts dd { font-size: 2.2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.pl-facts dt { color: var(--pl-muted); max-width: 30ch; }

.pl-section { padding: 64px 0; }
.pl-section--tint { background: var(--pl-tint); }
.pl-split, .pl-try { display: grid; gap: 32px; align-items: center; }
.pl-split img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--pl-line); }
.pl-steps { margin-top: 20px; display: grid; gap: 14px; list-style: decimal; padding-left: 1.3em; }
.pl-steps li::marker { font-weight: 700; color: var(--pl-primary); }

.pl-try { align-items: start; }
.pl-task { background: #fff; border: 1px solid var(--pl-line); border-radius: 16px; padding: 24px; box-shadow: 0 4px 10px rgba(17, 24, 39, .08); }
.pl-task__meta { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .9rem; color: var(--pl-muted); margin-bottom: 10px; }
.pl-task__text { font-size: 1.2rem; font-weight: 600; line-height: 1.45; margin-bottom: 18px; }
.pl-task label { display: block; font-size: .9rem; color: var(--pl-muted); margin-bottom: 6px; }
.pl-task__row { display: flex; flex-wrap: wrap; gap: 12px; }
.pl-task input { flex: 1 1 150px; min-width: 0; min-height: 52px; padding: 0 16px; font-size: 1.2rem; font-weight: 600; border: 2px solid var(--pl-line); border-radius: 12px; }
.pl-task input[aria-invalid="true"] { border-color: var(--pl-bad); }
.pl-task input[aria-invalid="false"] { border-color: var(--pl-ok); }
.pl [hidden] { display: none; }
.pl-result p { padding: 14px 16px; border-radius: 12px; margin-top: 12px; max-width: none; }
.pl-result__bad { background: var(--pl-bad-bg); color: var(--pl-bad); }
.pl-result__ok { background: var(--pl-ok-bg); color: var(--pl-ok); }
.pl-result__info { background: var(--pl-tint); }
.pl-after { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.pl-tablewrap { overflow-x: auto; }
.pl-table { width: 100%; border-collapse: collapse; text-align: left; }
.pl-table th, .pl-table td { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--pl-line); vertical-align: top; }
.pl-table thead th { font-size: .95rem; color: var(--pl-muted); font-weight: 600; }
.pl-table tbody th { font-weight: 700; }
.pl-table tbody td { color: var(--pl-muted); }
.pl-table--cmp th:last-child, .pl-table--cmp td:last-child { background: #eef2ff; color: var(--pl-ink); font-weight: 700; padding-left: 20px; }

.pl-plans { display: grid; gap: 24px; margin-top: 28px; }
.pl-plan { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--pl-line); border-radius: 16px; padding: 28px; }
.pl-plan:first-child { border: 2px solid var(--pl-primary); }
.pl-price { font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.pl-plan ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; margin: 6px 0 16px; }
.pl-plan li::marker { color: var(--pl-primary); }
.pl-plan .pl-btn { margin-top: auto; }

.pl-author { display: grid; gap: 28px; align-items: center; }
.pl-author img { width: 180px; height: auto; border-radius: 16px; }
.pl-author p + p { margin-top: 12px; }
.pl-author a, .pl-diag a { color: var(--pl-primary-hover); text-decoration: underline; text-underline-offset: 3px; }

.pl-faq { border-bottom: 1px solid var(--pl-line); }
.pl-faq summary { padding: 18px 0; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.pl-faq p { padding-bottom: 20px; color: var(--pl-muted); }
.pl .pl-diag { max-width: 60ch; margin: 0 auto; padding: 28px 20px 40px; text-align: center; color: var(--pl-muted); }

@media (max-width: 759px) {
    .pl-table thead { display: none; }
    .pl-table tr { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--pl-line); }
    .pl-table th, .pl-table td { padding: 3px 0; border: 0; }
    .pl-table td[data-l]::before { content: attr(data-l) ": "; color: var(--pl-muted); font-weight: 400; }
    .pl-table--cmp td:last-child { order: 1; padding: 8px 12px; margin: 6px 0; border-radius: 8px; }
    .pl-table--cmp td:not(:last-child) { order: 2; }
}
@media (min-width: 760px) {
    .pl-facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pl-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-author { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (min-width: 960px) {
    .pl-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
    .pl-section { padding: 88px 0; }
    .pl-split, .pl-try { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
    .pl-split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .pl-split--flip > img { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
    .pl-btn { transition: none; }
}
