/* ==========================================================================
   Информационные страницы: 9 типов, вопросы, методология, документы,
   поддержка, мои результаты, 404. Язык отчёта: тонкие линии, прямые углы,
   крупные цифры Playfair, подписи Inter капителью.
   ========================================================================== */

/* ---------- Общие ---------- */
.text-inline { color: var(--gold-deep); border-bottom: 1px solid var(--gold-line); transition: color .3s, border-color .3s; }
.text-inline:hover { color: var(--ink); border-color: var(--ink); }
.page-label { display: block; font-family: var(--f-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.final-band { position: relative; overflow: hidden; }
.final-band::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: clamp(40px, 6vw, 72px); background: linear-gradient(var(--gold), transparent); }
.final-band::after { content: ""; position: absolute; left: 50%; bottom: -55%; width: 90vw; max-width: 1100px; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, rgba(223, 172, 42, .09) 0%, transparent 60%); pointer-events: none; }
.final-band .container { position: relative; z-index: 1; }
.final-band h2 { margin-bottom: .4em; }
.final-band .lead { margin-bottom: 40px; max-width: 36em; }

/* ---------- Символ эннеаграммы ---------- */
.enneagram { width: 100%; height: auto; overflow: visible; }
.en-circle { stroke: var(--gold-line); stroke-width: 1; }
.en-triangle { stroke: var(--gold); stroke-width: 1; }
.en-hexad { stroke: var(--gold-deep); stroke-width: .75; stroke-opacity: .55; }
.en-dot { fill: var(--paper); stroke: var(--gold); stroke-width: 1.25; transition: fill .4s var(--ease); }
.en-dot.is-active { fill: var(--gold); }
.en-num { font-family: var(--f-display); font-size: 11.5px; fill: var(--ink); pointer-events: none; }
.en-num.is-active { fill: #fff; font-size: 14px; }
.en-arrow { stroke-width: 1.5; }
.en-growth { stroke: var(--gold); }
.en-stress { stroke: var(--muted-2); stroke-dasharray: 4 4; }

/* ---------- 9 типов ---------- */
.types-nav { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.types-nav a { display: grid; gap: 6px; padding: 18px 12px 16px; border-left: 1px solid var(--line); transition: background-color .3s; }
.types-nav a:first-child { border-left: 0; padding-left: 0; }
.types-nav b { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); font-weight: 400; line-height: 1; color: var(--gold); transition: text-shadow .3s; }
.types-nav span { font-family: var(--f-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); overflow-wrap: anywhere; }
.types-nav a:hover b { text-shadow: 0 0 18px rgba(223, 172, 42, .55); }
.types-nav a:hover span { color: var(--gold-deep); }

.centers-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.centers-grid__symbol { position: relative; max-width: 400px; width: 100%; margin-inline: auto; }
.centers-grid__symbol::before, .centers-grid__symbol::after { content: ""; position: absolute; width: clamp(48px, 6vw, 80px); height: clamp(48px, 6vw, 80px); pointer-events: none; }
.centers-grid__symbol::before { top: 0; left: 0; border-top: 2px solid var(--gold-pale); border-left: 2px solid var(--gold-pale); }
.centers-grid__symbol::after { right: 0; bottom: 0; border-right: 2px solid var(--gold-pale); border-bottom: 2px solid var(--gold-pale); }
.centers-list { margin: 32px 0 28px; border-top: 1px solid var(--ink); }
.centers-list div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.centers-list dt { font-family: var(--f-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); padding-top: 6px; }
.centers-list dd { margin: 0; color: var(--ink-2); }
.centers-grid .muted { font-size: 17px; max-width: 40em; }

.types-list { padding-block: clamp(56px, 8vw, 110px); }
.type-entry { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 72px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); }
.type-entry:first-child { padding-top: 0; border-top: 0; }
.type-entry__head { display: contents; }
.type-entry__num { grid-column: 1; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); font-family: var(--f-display); font-size: clamp(5rem, 3rem + 7vw, 9.5rem); line-height: .8; color: var(--gold); }
.type-entry__head > div, .type-entry__lead, .type-entry__ledger, .type-entry__critic { grid-column: 2; }
.type-entry__head .kicker { margin-bottom: 12px; }
.type-entry h2 { margin-bottom: .2em; }
.type-entry__tagline { margin: 0 0 28px; font-family: var(--f-display); font-style: italic; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); line-height: 1.45; color: var(--gold-deep); max-width: 38em; }
.type-entry__lead { font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem); line-height: 1.65; color: var(--ink); max-width: 42em; margin-bottom: 32px; }
.type-entry__ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); margin: 0 0 36px; }
.type-entry__ledger div { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.type-entry__ledger div:nth-child(-n+2) { border-top-color: var(--ink); }
.type-entry__ledger dt { margin-bottom: 6px; font-family: var(--f-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.type-entry__ledger dd { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.type-entry__critic { position: relative; margin: 0; padding: 4px 0 4px 34px; font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.45; color: var(--ink); max-width: 36em; }
.type-entry__critic::before { content: ""; position: absolute; left: 0; top: .85em; width: 20px; height: 1px; background: var(--gold); }
.type-entry__critic span { display: block; margin-top: 10px; font-family: var(--f-ui); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1024px) {
    .types-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .types-nav a { border-left: 0; border-top: 1px solid var(--line); padding: 16px 12px 14px 0; }
    .types-nav a:nth-child(-n+3) { border-top: 0; }
    .types-nav a:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); padding-left: 16px; }
}
@media (max-width: 900px) {
    .centers-grid { grid-template-columns: 1fr; }
    .centers-grid__symbol { max-width: 340px; }
    .type-entry { grid-template-columns: 1fr; }
    .type-entry__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; grid-column: 1; }
    .type-entry__num { grid-row: auto; position: static; font-size: clamp(4.2rem, 3rem + 6vw, 6rem); }
    .type-entry__head > div, .type-entry__lead, .type-entry__ledger, .type-entry__critic { grid-column: auto; }
    .type-entry__head > div { grid-column: 2; }
}
@media (max-width: 600px) {
    .centers-list div { grid-template-columns: 1fr; gap: 4px; }
    .centers-list dt { padding-top: 0; }
    .type-entry__ledger { grid-template-columns: 1fr; }
    .type-entry__ledger div:nth-child(2) { border-top-color: var(--line); }
    .type-entry__critic { padding-left: 26px; }
}
@media (max-width: 420px) {
    .types-nav span { font-size: 9.5px; letter-spacing: .08em; }
    .type-entry__head { grid-template-columns: 1fr; gap: 8px; }
    .type-entry__head > div { grid-column: 1; }
}

/* ---------- Вопросы и ответы ---------- */
.faq-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.faq-nav { position: sticky; top: calc(var(--header-h) + 28px); display: grid; border-top: 1px solid var(--ink); }
.faq-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.faq-nav a:hover { color: var(--gold-deep); }
.faq-group { margin-bottom: clamp(48px, 6vw, 80px); }
.faq-group h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.3rem); padding-bottom: 18px; margin-bottom: 0; border-bottom: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; cursor: pointer; font-family: var(--f-display); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.4; color: var(--ink); transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-family: var(--f-ui); font-weight: 300; font-size: 24px; line-height: 1; color: var(--gold); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--gold-deep); }
.qa p { margin: 0 0 26px; max-width: 44em; font-size: 18px; color: var(--ink-2); }
.faq-layout .note { margin-top: 8px; }
@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; }
    .faq-nav { position: static; display: flex; flex-wrap: wrap; column-gap: 24px; border-top: 0; border-bottom: 1px solid var(--line); }
    .faq-nav a { padding: 10px 0; border-bottom: 0; }
}

/* ---------- Методология ---------- */
.method-steps { list-style: none; margin: 0 0 clamp(64px, 9vw, 120px); padding: 0; border-top: 1px solid var(--ink); }
.method-steps li { display: grid; grid-template-columns: minmax(80px, 160px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.method-steps__num { font-family: var(--f-display); font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.2rem); line-height: .9; color: var(--gold); }
.method-steps h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin-bottom: .45em; }
.method-steps p { margin: 0; max-width: 40em; color: var(--ink-2); }
.method-limits { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.r-plainlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.r-plainlist li { position: relative; padding: 16px 0 16px 38px; border-bottom: 1px solid var(--line-warm); color: var(--ink-2); }
.r-plainlist li::before { content: ""; position: absolute; left: 0; top: 30px; width: 18px; height: 1px; background: var(--gold); }
@media (max-width: 900px) { .method-limits { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .method-steps li { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Документы ---------- */
.legal { padding-bottom: clamp(64px, 9vw, 120px); }
.legal-meta { margin: 0; font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.legal-body { max-width: 760px; border-top: 1px solid var(--ink); padding-top: 12px; }
.legal-body h2 { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.75rem); }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body strong { color: var(--ink); }
.legal-body ul { list-style: none; padding: 0; }
.legal-body li { position: relative; padding-left: 30px; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: .85em; width: 16px; height: 1px; background: var(--gold); }
.placeholder { background: var(--gold-light); padding: 0 4px; }

/* ---------- Поддержка ---------- */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--ink); margin-bottom: clamp(64px, 9vw, 120px); }
.support-col { padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 56px) 0 0; }
.support-col + .support-col { padding-left: clamp(28px, 4vw, 56px); padding-right: 0; border-left: 1px solid var(--line); }
.support-col .page-label { margin-bottom: 14px; }
.support-col h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.support-mail { display: inline-block; margin: 8px 0 28px; font-family: var(--f-display); font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); line-height: 1.2; color: var(--ink); border-bottom: 1px solid var(--gold); overflow-wrap: anywhere; transition: color .3s; }
.support-mail:hover { color: var(--gold-deep); }
.support-cases { margin: 0 0 28px; }
.support-cases div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.support-cases div:first-child { padding-top: 0; }
.support-cases dt { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }
.support-cases dd { margin: 0; font-size: 17.5px; color: var(--ink-2); }
.support-cases a { color: var(--gold-deep); border-bottom: 1px solid var(--gold-line); }
@media (max-width: 860px) {
    .support-grid { grid-template-columns: 1fr; }
    .support-col, .support-col + .support-col { padding: 36px 0 0; border-left: 0; }
    .support-col + .support-col { margin-top: 36px; border-top: 1px solid var(--line); }
}

/* ---------- 404 ---------- */
.not-found { display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 220px); padding: clamp(56px, 8vw, 120px) var(--gutter); text-align: center; }
.not-found__frame { width: min(720px, 100%); padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); }
.not-found__num { margin-bottom: 18px; font-family: var(--f-display); font-size: clamp(5.5rem, 3.5rem + 8vw, 10rem); line-height: .9; color: var(--gold); letter-spacing: .04em; }
.not-found h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.not-found .lead { margin: 0 auto 36px; max-width: 30em; }
.not-found .btn-row { justify-content: center; }

/* ---------- Мои результаты ---------- */
.profile-page { padding-bottom: clamp(64px, 9vw, 120px); }
.my-list { margin: 0 0 clamp(48px, 6vw, 72px); }
.my-list:not(:empty) { border-top: 1px solid var(--ink); }
.my-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 32px); padding: 22px 0; border-bottom: 1px solid var(--line); }
.my-item__num { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--gold); font-family: var(--f-display); font-size: 1.7rem; color: var(--gold); transition: box-shadow .3s; }
.my-item:hover .my-item__num { box-shadow: var(--gold-glow); }
.my-item__text strong { display: block; font-family: var(--f-display); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); font-weight: 400; line-height: 1.3; color: var(--ink); }
.my-item__text span { display: block; margin-top: 4px; font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.my-item__acts { display: flex; align-items: center; gap: 22px; }
.my-act { padding: 6px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: color .3s, border-color .3s; }
.my-act:hover { color: var(--gold-deep); border-color: var(--gold); }
.my-act.is-danger:hover, .my-act[data-armed="1"] { color: var(--danger); border-color: var(--danger); }
.my-empty { padding: clamp(32px, 5vw, 56px); margin-bottom: clamp(48px, 6vw, 72px); }
.my-empty h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.my-empty p { color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.danger-zone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-top: 28px; border-top: 1px solid var(--line); }
.danger-zone .page-label { color: var(--danger); margin-bottom: 10px; }
.danger-zone h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); margin-bottom: .4em; }
.danger-zone p { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 40em; }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn--danger:hover, .btn--danger[data-armed="1"] { background: var(--danger); color: #fff; }
@media (max-width: 700px) {
    .my-item { grid-template-columns: auto minmax(0, 1fr); }
    .my-item__acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 14px 22px; }
    .my-item__acts .btn { grid-column: 1 / -1; }
    .my-act { justify-self: start; }
    .my-act.is-danger { justify-self: end; }
    .danger-zone { grid-template-columns: 1fr; }
    .danger-zone .btn { justify-self: start; white-space: normal; text-align: center; line-height: 1.4; padding-block: 12px; }
}
