/* Профориентационный тест: оформление в стиле сайта Select (поверх app.css: те же цвета, шрифты, карточки и кнопки). */

body.pt { background: var(--paper); }
.pt-top { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; position: relative; z-index: 2; }
.pt-top-inner { max-width: 46rem; margin: 0 auto; padding: .7rem 1.1rem; }
.pt-brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font: 800 1.02rem var(--font-head); }
.pt-brand:hover { color: #fff; opacity: .92; }
.pt-mark { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: rgba(255, 255, 255, .95); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.pt-mark img { width: 2.1rem; height: 2.1rem; margin-top: .15rem; }
.pt-main { flex: 1; width: 100%; max-width: 46rem; margin: 1.4rem auto 1rem; padding: 0 1.1rem; position: relative; z-index: 1; }
.pt-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1rem 1rem 1.6rem; position: relative; z-index: 1; }
.pt-foot p { margin: .2rem 0; }
.pt-foot a { color: var(--muted); }
.pt-credit { font-weight: 600; }

.pt-hero h1 { font-size: 1.5rem; }
.pt-hero .tag { margin-bottom: .6rem; }
.pt-also { margin-top: .5rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: -.4rem; }
.pt-note ul, .card ul, .card ol { padding-left: 1.2rem; }
.card li { margin: .3rem 0; }
.messages-like { background: #FFF3D6; border-left: 5px solid #D49300; border-radius: var(--radius-sm); padding: .75rem 1rem; margin: 0 0 1rem; }

/* Вопросы */
.pt-progress { height: .55rem; background: var(--lavender); border-radius: 999px; overflow: hidden; margin-top: .4rem; }
.pt-progress span { display: block; height: 100%; background: linear-gradient(96deg, var(--accent), var(--accent-light)); border-radius: 999px; transition: width .25s; }
.pt-count { margin: .35rem 0 1rem; text-align: right; }
.pt-q h1 { font-size: 1.3rem; text-align: center; margin-bottom: 1.1rem; }
.pt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pt-cards.three { grid-template-columns: 1fr; }
.pt-card {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .6rem; margin: 0; width: 100%;
  background: #fff; color: var(--text); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem .9rem 1rem;
  box-shadow: var(--shadow); font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.35; letter-spacing: 0; text-align: center; cursor: pointer;
  transition: transform .12s, border-color .12s;
}
.pt-card:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--text); filter: none; }
.pt-card.chosen, button.chosen { border-color: var(--primary); background: var(--lavender); }
.pt-card .pic { font-size: 3rem; line-height: 1.1; min-height: 3.4rem; display: flex; align-items: center; }
.pt-card .txt { display: block; }
.pt-cards.three .pt-card { flex-direction: row; text-align: left; gap: 1rem; padding: .9rem 1rem; }
.pt-cards.three .pt-card .pic { font-size: 2.4rem; min-height: 0; flex: none; }
.pt-extra { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-top: .9rem; }
.pt-extra button { margin: 0; }
.pt-scale { display: grid; gap: .6rem; margin-top: 1rem; }
.pt-scale button { margin: 0; padding: 1rem; font-size: 1rem; }
button.secondary.chosen { background: var(--lavender); }
.pt-pic { text-align: center; font-size: 2.6rem; margin: 0 0 .3rem; line-height: 1.1; }
.pt-back { text-align: center; margin-top: 1.3rem; }

/* Вход без кода */
.pt-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .8rem; }
.pt-grade { margin: 0; position: relative; }
.pt-grade input { position: absolute; opacity: 0; }
.pt-grade span { display: flex; align-items: center; justify-content: center; height: 3.4rem; border-radius: 14px; background: var(--lavender); color: var(--primary-dark); font: 800 1.2rem var(--font-head); border: 2px solid transparent; cursor: pointer; }
.pt-grade input:checked + span { background: var(--primary); color: #fff; }
.pt-grade input:focus-visible + span { outline: 3px solid rgba(106, 2, 252, .35); outline-offset: 2px; }
.pt-code-form input { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

/* Результат */
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pt-bars { list-style: none; padding: 0 !important; margin: 0; }
.pt-bars li { display: grid; grid-template-columns: 5.2rem 1fr 2.2rem; gap: .2rem .7rem; align-items: center; margin: .7rem 0; }
.pt-bars .n { font: 800 .95rem var(--font-head); }
.pt-bars .bar { background: var(--lavender); border-radius: 999px; height: .8rem; overflow: hidden; }
.pt-bars .bar i { display: block; height: 100%; background: linear-gradient(96deg, var(--primary), var(--accent)); border-radius: 999px; }
.pt-bars .v { font-weight: 800; text-align: right; }
.pt-bars .a { grid-column: 2 / 4; color: var(--muted); font-size: .85rem; margin-top: -.3rem; }
.pt-it-low { border-left: 6px solid #D49300; }
.pt-it-mid { border-left: 6px solid var(--primary); }
.pt-it-high { border-left: 6px solid var(--ok); }
.pt-roles { padding-left: 1.2rem; }
.pt-disclaimer { background: var(--lavender); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-weight: 600; margin: 1.2rem 0; }

/* Согласие и контакт */
.pt-kinds { display: flex; gap: .6rem; }
.pt-kind { margin: 0; }
.pt-kind input { position: absolute; opacity: 0; }
.pt-kind span { display: inline-block; padding: .55rem 1.3rem; border-radius: 999px; background: var(--lavender); color: var(--primary-dark); font-weight: 800; cursor: pointer; border: 2px solid transparent; }
.pt-kind input:checked + span { background: var(--primary); color: #fff; }
.field.check label { align-items: flex-start; font-weight: 600; }
.field.check input { margin-top: .2rem; flex: none; }
.doc h2 { margin-top: 1.4rem; }
.doc p, .doc li { line-height: 1.6; }

/* Памятки */
.pt-memo-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pt-memo-actions .btn, .pt-memo-actions button { margin-top: 0; }
article.memo h2 { margin-top: 1.4rem; color: var(--primary-dark); }
article.memo .pt-credit { text-align: right; color: var(--muted); }

@media (max-width: 34rem) {
  .pt-cards { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .pt-card { padding: .8rem .5rem; font-size: .92rem; }
  .pt-card .pic { font-size: 2.4rem; }
  .pt-two { grid-template-columns: 1fr; }
  .pt-hero img { width: 4.6rem; height: 4.6rem; }
}

@media print {
  body.pt::after, .pt-top, .pt-foot, .no-print { display: none !important; }
  body.pt { background: #fff; font-size: 11.5pt; }
  .pt-main { max-width: none; margin: 0; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  article.memo h1 { font-size: 18pt; }
  article.memo h2 { break-after: avoid; }
  article.memo li, article.memo p { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
