/* Contacts and tickets. Built on the theme: .label, .button, .underlink, the .pchk-lead form, tokens --ink, --muted, --line. */
.pkc-directory, .pkc-new, .pkc-lost { padding: 30px 0 90px; border-top: 1px solid var(--line) }
.pkc-lost { padding: 0 0 90px; border-top: 0 }
.pkc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 80px; align-items: start; margin: 0 0 40px }
.pkc-head .label { grid-column: 1 / -1 }
.pkc-head h2 { margin: 0; font-size: 42px }
.pkc-head p { margin: 6px 0 0; font-size: 18px; line-height: 1.75; color: #6b6b6b; max-width: 560px }

.pkc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 80px }
.pkc-list li { padding: 26px 0 30px; border-top: 1px solid var(--line) }
.pkc-dept { display: block; font-size: 13px; line-height: 1.5; color: #6b6b6b }
.pkc-mail { display: inline-block; margin: 8px 0 0; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere }
.pkc-mail:hover, .pkc-mail:focus-visible { text-decoration: underline; text-underline-offset: 4px }
.pkc-list p { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: #6b6b6b; max-width: 460px }
.pkc-list .underlink { margin-top: 12px }

/* The theme's .pchk-lead look without its class: the theme script submits every .pchk-lead form to its own handler. */
.pkc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; max-width: 900px }
.pkc-form label { display: block; font-size: 15px; line-height: 1.6 }
.pkc-form input:not([type=checkbox]), .pkc-form textarea { display: block; width: 100%; padding: 15px; border: 1px solid #bbb; border-radius: 6px; font: inherit; font-size: 17px; margin-top: 9px; background: #fff; color: #222; resize: vertical }
.pkc-form .lead-consent, .pkc-form .lead-status, .pkc-form .pkc-actions { grid-column: 1 / -1 }
.pkc-form > .button { justify-self: start }
.pkc-form select { display: block; width: 100%; margin-top: 9px; padding: 15px; border: 1px solid #bbb; border-radius: 6px; font: inherit; font-size: 17px; background: #fff; color: #222 }
.pkc-form .pkc-wide { grid-column: 1 / -1 }
.pkc-form input:focus-visible, .pkc-form textarea:focus-visible, .pkc-form select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink) }
.pkc-form [aria-invalid=true] { border-color: #b3261e }
.pkc-form .lead-status:not(:empty) { padding: 12px 16px; border-left: 3px solid var(--accent, #ffdc21); background: #faf8e8 }
.pkc-form button[disabled] { opacity: .55; cursor: default }

.pkc-created { max-width: 900px; padding: 28px 0 0; border-top: 1px solid var(--ink) }
/* The box gets focus from the script so screen readers announce the result; no ring for that programmatic focus. */
.pkc-created:focus:not(:focus-visible) { outline: 0 }
.pkc-created h3 { margin: 6px 0 12px; font-size: 42px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1 }
.pkc-created p { font-size: 17px; line-height: 1.7; color: #555; max-width: 640px; margin: 0 0 14px }
.pkc-link a { font-size: 15px; overflow-wrap: anywhere; color: var(--ink); text-decoration: underline; text-underline-offset: 3px }
.pkc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px }
.pkc-actions .button, .pkc-actions .underlink { margin: 0 }
.pkc-note { font-size: 15px; line-height: 1.7; color: #6b6b6b; max-width: 640px }

.pkc-lost details { max-width: 900px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.pkc-lost summary { display: flex; align-items: center; min-height: 56px; font-size: 18px; cursor: pointer }
.pkc-lost summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px }
.pkc-lost details[open] { padding-bottom: 28px }

/* The ticket page. */
.pkc-badge { display: inline-block; margin-right: 12px; padding: 4px 12px; border: 1px solid var(--ink); border-radius: 20px; font-size: 14px; line-height: 1.5; vertical-align: 2px }
.pkc-badge.is-waiting { background: var(--accent, #ffdc21); border-color: var(--accent, #ffdc21) }
.pkc-badge.is-closed { background: var(--ink); color: #fff }
.pkc-thread { max-width: 900px; padding: 0 0 20px }
.pkc-thread ol { list-style: none; margin: 0; padding: 0 }
.pkc-thread li { margin: 0 0 16px; padding: 18px 22px; border-radius: 10px; background: #f7f7f7 }
.pkc-thread li.from-staff { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink) }
.pkc-thread li.from-system { background: transparent; padding: 6px 0; font-size: 15px; color: #6b6b6b }
.pkc-meta { margin: 0 0 8px; font-size: 13px; color: #6b6b6b }
.pkc-text { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere }
.pkc-reply { max-width: 900px; padding: 10px 0 90px }
.pkc-badge.is-resolved { background: #f3f3f1; border-color: #bbb }
.pkc-account { align-self: end; margin: 0 }

/* Получено → В работе → Решено, after the cabinet's project stages: a top rule per step, the current one in ink. */
.pkc-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 900px; list-style: none; margin: 0 0 40px; padding: 0 }
.pkc-stages li { min-width: 0; padding: 18px 0 0; border-top: 2px solid var(--line, #ddd) }
.pkc-stages li.is-done { border-color: #999 }
.pkc-stages li.is-current { border-color: var(--ink) }
.pkc-stages li.is-attention { border-color: var(--accent, #ffdc21); border-top-width: 4px; padding-top: 16px }
.pkc-stages span { display: block; margin: 0 0 12px; font-size: 12px; color: #6b6b6b }
.pkc-stages strong { display: block; font-size: 22px; font-weight: 400; line-height: 1.2; letter-spacing: -.035em }
.pkc-stages p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #6b6b6b }
.pkc-stages li.is-current p { color: var(--ink) }

/* The cabinet: a status pill and the «new reply» mark inside the theme's record rows. */
.cabinet-record .pkc-badge { margin: 0; padding: 2px 10px; font-size: 12px; color: var(--ink); vertical-align: 0 }
.pkc-new-reply { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--ink) }
.pkc-new-reply::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--accent, #ffdc21); box-shadow: 0 0 0 1px #8b7400 }
.pchk-cabinet .pkc-thread { padding-top: 10px }

@media (max-width: 900px) {
	.pkc-form { grid-template-columns: 1fr; gap: 20px }
	.pkc-head { grid-template-columns: 1fr }
	.pkc-head h2, .pkc-created h3 { font-size: 34px }
	.pkc-list { grid-template-columns: 1fr }
	.pkc-directory, .pkc-new { padding: 10px 0 60px }
	.pkc-lost, .pkc-reply { padding-bottom: 60px }
	.pkc-mail { font-size: 22px }
	.pkc-stages { gap: 10px; margin-bottom: 30px }
	.pkc-stages strong { font-size: 17px }
	.pkc-stages p { font-size: 13px }
}
