/* Партнёрская программа (partners.html): page-specific стили, вынесенные из inline <style>.
   Общие компоненты (.btn, .eyebrow, .pa-wrap, .pa-section, заголовки .pa-heading,
   форма .site-contact form, .site-*) задаёт assets/site.css, который загружается раньше.
   Где site.css уже переопределяет .pa-* (unified-слой, в т.ч. через !important),
   значения ниже повторяют фактически отрисованные, чтобы визуал не изменился.
   Старые стили шапки/подвала/notice (.pa-skip, .pa-notice, .pa-header*, .pa-brand*,
   .pa-nav, .pa-header-contact, .pa-menu, .pa-mobile-nav, .pa-footer*) удалены:
   соответствующего DOM на странице нет — используются .site-header/.site-footer. */

/* База страницы. Ширина .pa-wrap и отступы .pa-section задаёт site.css
   (унифицированные значения), поэтому здесь их нет. */
.pa-page { margin: 0; background: #f7f9fc; color: var(--color-text); font: 15px/1.65 Inter, system-ui, sans-serif; --header-height: 96px; }
.pa-page *, .pa-page *::before, .pa-page *::after { box-sizing: border-box; }
.pa-page [hidden] { display: none !important; }
.pa-page [id] { scroll-margin-top: var(--header-height); }
.pa-page :focus-visible { outline: 3px solid #3498db; outline-offset: 4px; }
.pa-page button { cursor: pointer; }
.pa-page button:disabled { cursor: wait; opacity: .65; }
.pa-page svg { flex-shrink: 0; }
.pa-white { background: white; }
.pa-heading { color: var(--color-primary); font-size: clamp(30px, 3.3vw, 44px); font-weight: 700; line-height: 1.17; letter-spacing: -.045em; }
.pa-copy { color: #64748b; font-size: 15px; line-height: 1.8; }
.pa-page .eyebrow { font-size: 12px; letter-spacing: .18em; margin-bottom: 17px; }
.pa-page .btn svg, .pa-link svg { width: 16px; height: 16px; }
.pa-link { display: inline-flex; gap: 9px; align-items: center; color: #5968b4; font-size: 14px; font-weight: 600; }
.pa-link:hover { color: #3498db; }
.pa-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 29px; }
.pa-head { display: flex; justify-content: space-between; align-items: end; gap: 38px; margin-bottom: 36px; }
.pa-head > p { max-width: 390px; font-size: 13px; }
.pa-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #737bc6; border: 1px solid #dfe3f1; background: #f8f9fe; }
.pa-icon svg { width: 20px; height: 20px; }

/* Hero: экосистема партнёр + платформа + клиенты */
.pa-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 80% 35%, #3b4b6d 0, transparent 53%), linear-gradient(115deg, #2c3e50, #18232f); color: white; }
.pa-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: linear-gradient(#a8c3e326 1px, transparent 1px), linear-gradient(90deg, #a8c3e326 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent, black); }
.pa-hero-layout { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 65px; padding-block: 32px 64px; }
.pa-breadcrumb { position: relative; padding-top: 24px; font-size: 12px; color: #b0c0d4; display: flex; gap: 12px; }
.pa-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12px; color: #cfdaeb; border: 1px solid #ffffff26; border-radius: 6px; background: #ffffff05; }
.pa-tag svg { width: 13px; height: 13px; }
.pa-hero h1 { font-size: clamp(42px, 4.5vw, 63px); font-weight: 700; line-height: 1.09; letter-spacing: -.055em; margin-block: 23px; }
.pa-accent { background: linear-gradient(110deg, #c5c9ff, #70c9f6); background-clip: text; -webkit-background-clip: text; color: transparent; }
.pa-hero-copy { max-width: 520px; font-size: 15px; line-height: 1.9; color: #c7d4e4; }
.pa-ghost { border: 1px solid #ffffff40; color: white; background: #ffffff04; }
.pa-ghost:hover { background: #ffffff12; }
.pa-hero-note { color: #aebed2; font-size: 13px; margin-top: 17px; }
.pa-scene { padding: 20px 0 0; }
.pa-scene-caption { display: flex; justify-content: space-between; gap: 15px; font: 12px ui-monospace, Consolas, monospace; color: #b5c5dc; margin-bottom: 14px; }
.pa-map { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 28px; box-shadow: 0 26px 70px #0d17243d; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pa-map-top { display: grid; grid-template-columns: 1fr 36px 1fr; align-items: center; }
.pa-node { border: 1px solid #ffffff26; background: #ffffff05; padding: 21px 15px; border-radius: 10px; text-align: center; }
.pa-node > svg { color: #b6c3ff; width: 27px; height: 27px; margin: 0 auto 13px; }
.pa-node strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
.pa-node span { display: block; color: #afc0d6; font-size: 12px; margin-top: 4px; }
.pa-node.partner { border-color: #a0a8f78c; background: #9da5ff12; }
.pa-map-plus { text-align: center; color: #a8b7db; font-size: 23px; font-weight: 400; }
.pa-map-line { height: 28px; width: 1px; margin: auto; background: linear-gradient(#8998cf, #8998cf55); }
.pa-map-service { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 10px; border: 1px solid #93a5dc4d; border-radius: 8px; background: #101d2d40; font-size: 13px; }
.pa-map-service svg { color: #b2baff; width: 16px; height: 16px; }
.pa-clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pa-clients > div { padding: 14px 5px; text-align: center; border: 1px solid #ffffff18; border-radius: 7px; font-size: 12px; color: #c6d4e6; }
.pa-clients svg { display: block; margin: 0 auto 8px; width: 18px; height: 18px; color: #a3b6d5; }
.pa-scene-bottom { display: flex; gap: 11px; align-items: start; color: #becce0; font-size: 13px; line-height: 1.8; margin: 19px 8px 0; }
.pa-scene-bottom svg { width: 17px; height: 17px; color: #a4cbbb; margin-top: 2px; }
.pa-audience { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 25px; padding-block: 23px; color: #526174; font-size: 13px; }
.pa-audience > span { color: #7b8798; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* Две программы и таблица сравнения */
.pa-programs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pa-program { position: relative; display: flex; flex-direction: column; padding: 34px; background: white; border: 1px solid #dce3ed; border-radius: 14px; }
.pa-program.featured { border-color: #9ba5df; background: linear-gradient(140deg, #f3f4ff, white 70%); }
.pa-program-label { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pa-badge { display: inline-flex; align-items: center; gap: 7px; background: #eff2f8; color: #566685; border-radius: 5px; padding: 5px 9px; font-size: 12px; font-weight: 600; }
.featured .pa-badge { background: #e5e8ff; color: #5d67af; }
.pa-badge svg { width: 12px; height: 12px; }
.pa-program-label > span:last-child { font-size: 12px; color: #64748b; }
.pa-program h3 { font-size: 25px; line-height: 1.3; letter-spacing: -.035em; color: #2c3e50; font-weight: 600; }
.pa-program-intro { color: #64748b; font-size: 13px; line-height: 1.85; margin-top: 14px; }
.pa-program-rate { display: flex; align-items: baseline; flex-wrap: wrap; gap: 13px; margin-top: 23px; color: #64748b; font-size: 13px; }
.pa-program-rate strong { color: #2c3e50; font-size: 46px; line-height: 1.3; font-weight: 600; letter-spacing: -.055em; }
.pa-program-rate-note { margin-top: 4px; font-size: 13px; color: #64748b; }
.pa-checklist { display: grid; gap: 12px; margin-block: 26px; font-size: 14px; color: #475569; }
.pa-checklist li { display: flex; align-items: start; gap: 10px; }
.pa-checklist svg { width: 15px; height: 15px; margin-top: 3px; color: #6a82ab; }
.pa-program-fit { border-top: 1px solid #e2e7f0; padding-top: 19px; font-size: 13px; color: #64748b; margin-top: auto; }
.pa-program-fit strong { color: #334155; font-weight: 500; }
.pa-program .btn { margin-top: 22px; width: 100%; }
.pa-note { color: #64748b; font-size: 13px; line-height: 1.85; }
.pa-comparison { margin-top: 40px; }
.pa-table-wrap { border: 1px solid #dfe5ee; border-radius: 10px; overflow-x: auto; background: white; }
.pa-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.pa-table th, .pa-table td { padding: 17px 22px; border-bottom: 1px solid #e6ebf2; width: 33.333%; vertical-align: top; }
.pa-table thead { background: #eef1f8; color: #475569; }
.pa-table tbody th { font-weight: 500; color: #64748b; }
.pa-table tr:last-child td, .pa-table tr:last-child th { border-bottom: 0; }

/* Пример дохода рядом с условиями программ */
.pa-income-example { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding: 24px 28px; margin-top: 24px; border: 1px solid #dbe2ed; border-radius: 12px; background: #eef1f9; }
.pa-income-example h3 { color: #2c3e50; font-size: 15px; font-weight: 600; }
.pa-income-example p { color: #526174; font-size: 13px; margin-top: 6px; }
.pa-income-example .pa-note { font-size: 13px; }
.pa-income-total strong { display: block; color: #2c3e50; font-size: 32px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; white-space: nowrap; }
.pa-income-total span { display: block; color: #64748b; font-size: 12px; margin-top: 5px; }
.pa-income-example > .pa-link { min-height: 44px; }

/* Карточки поддержки */
.pa-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pa-card { border: 1px solid #e0e6ee; border-radius: 12px; padding: 27px; background: white; transition: border-color .2s, transform .2s; }
.pa-card:hover { border-color: #afb9df; transform: translateY(-3px); }
.pa-card h3 { font-size: 16px; font-weight: 600; color: #2c3e50; line-height: 1.4; letter-spacing: -.025em; margin: 22px 0 10px; }
.pa-card p { font-size: 14px; color: #64748b; line-height: 1.85; }

/* Тёмная секция платформы */
.pa-platform { background: #202e3e; color: white; }
.pa-platform .pa-heading, .pa-contact .pa-heading { color: white; }
.pa-platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; }
.pa-platform-list { display: grid; gap: 26px; margin-top: 34px; }
.pa-platform-list article { display: flex; gap: 16px; }
.pa-platform-list svg { width: 21px; height: 21px; color: #a8b7ed; margin-top: 3px; }
.pa-platform-list h3 { font-size: 14px; font-weight: 600; }
.pa-platform-list p { color: #b6c5d9; font-size: 14px; line-height: 1.85; margin-top: 6px; }
.pa-dc { position: relative; overflow: hidden; border-radius: 13px; min-height: 340px; border: 1px solid #ffffff26; background: #152232; }
.pa-dc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pa-dc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #14223210, #142232ee); }
.pa-dc figcaption { display: flex; flex-direction: column; align-items: flex-start; position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; z-index: 1; }
.pa-platform-list p a { color: #bfd3ff; text-decoration: underline; text-underline-offset: 3px; }
.pa-platform-details { border-top: 1px solid #ffffff29; border-bottom: 1px solid #ffffff29; margin-top: 30px; }
.pa-platform-details summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 20px; color: #d9e4f3; font-size: 13px; cursor: pointer; list-style: none; }
.pa-platform-details summary::-webkit-details-marker { display: none; }
.pa-platform-details summary::after { content: '+'; color: #bfd3ff; font-size: 22px; flex-shrink: 0; }
.pa-platform-details[open] summary::after { content: '−'; }
.pa-responsibility { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-bottom: 25px; }
.pa-responsibility h3 { font-size: 13px; font-weight: 600; }
.pa-responsibility p { font-size: 14px; color: #b6c5d9; line-height: 1.85; margin-top: 9px; }
.pa-platform .pa-link { color: #bfd3ff; margin-top: 17px; }

/* Шаги старта */
.pa-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 39px; }
.pa-step { border-top: 1px solid #cbd4e3; padding-top: 23px; }
.pa-step > span { font: 12px ui-monospace, Consolas, monospace; color: #7d85c1; }
.pa-step h3 { font-size: 15px; color: #2c3e50; font-weight: 600; margin: 17px 0 10px; }
.pa-step p { font-size: 14px; color: #64748b; line-height: 1.85; }
.pa-start-note { padding: 22px 26px; border: 1px solid #dbe2ee; border-radius: 10px; background: white; display: flex; justify-content: space-between; gap: 22px; align-items: center; margin-top: 35px; }
.pa-start-note h3 { font-weight: 600; color: #2c3e50; font-size: 14px; }
.pa-start-note p { color: #64748b; font-size: 14px; margin-top: 4px; }
.pa-start-note .btn { flex-shrink: 0; }

/* FAQ на <details>: aria-expanded синхронизирует assets/site.js. */
.pa-faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 75px; }
.pa-faq { border-bottom: 1px solid #e0e6ee; }
.pa-faq:first-child { border-top: 1px solid #e0e6ee; }
.pa-faq summary { position: relative; cursor: pointer; list-style: none; padding: 21px 35px 21px 0; color: #334155; font-size: 13px; font-weight: 500; }
.pa-faq summary::-webkit-details-marker { display: none; }
.pa-faq summary::after { content: '+'; position: absolute; right: 3px; top: 17px; color: #7f8db0; font-size: 22px; font-weight: 400; }
.pa-faq[open] summary::after { content: '−'; }
.pa-faq p { color: #64748b; font-size: 15px; line-height: 1.9; padding: 0 24px 22px 0; }
.pa-faq p a { color: #5968b4; text-decoration: underline; }

/* Контакт и форма заявки. Фон/паддинги формы переопределяет .site-contact из site.css. */
.pa-contact { background: radial-gradient(ellipse at 5% 75%, #344568, transparent 60%), #202e3e; color: white; }
.pa-contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 80px; }
.pa-contact-list { display: grid; gap: 19px; margin-top: 31px; font-size: 13px; color: #c4d2e3; }
.pa-contact-list li { display: flex; gap: 15px; align-items: baseline; }
.pa-contact-list span { color: #a7b6e8; font: 12px ui-monospace, Consolas, monospace; }
.pa-form { padding: 33px; border: 1px solid #e2e8f0; border-radius: 14px; background: white; color: #334155; box-shadow: 0 25px 60px #07132129; }
.pa-form label, .pa-form legend { font-size: 13px; font-weight: 500; }
.pa-form label > span { color: #64748b; font-weight: 400; }
.pa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pa-field { display: block; width: 100%; min-width: 0; border: 1px solid #d7dfea; background: #fafbfe; border-radius: 6px; padding: 11px 12px; font: inherit; font-size: 13px; margin-top: 7px; min-height: 44px; color: #334155; }
textarea.pa-field { resize: vertical; }
.pa-field::placeholder { color: #8290a3; }
.pa-field:focus { border-color: #8292d2; }
.pa-field-block { margin-top: 17px; }
.pa-form-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.pa-option { display: flex; align-items: start; gap: 8px; cursor: pointer; border: 1px solid #dbe1ed; padding: 12px 10px; border-radius: 6px; }
.pa-option:has(input:checked) { background: #f0f2ff; border-color: #8d9adb; }
.pa-option input { margin-top: 3px; accent-color: #717cc7; }
.pa-option strong { font-size: 13px; font-weight: 600; color: #334155; display: block; }
.pa-option small { font-size: 12px; display: block; margin-top: 3px; color: #64748b; }
.pa-form .pa-consent { display: flex; align-items: start; gap: 9px; font-size: 13px; line-height: 1.8; margin-top: 20px; font-weight: 400; }
.pa-consent input { margin-top: 4px; accent-color: #717cc7; flex-shrink: 0; }
.pa-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pa-status { font-size: 13px; line-height: 1.6; padding: 13px; border-radius: 7px; margin-top: 14px; }
.pa-status[data-state="success"] { background: #eaf7f0; color: #237553; }
.pa-status[data-state="error"] { background: #fff0ee; color: #b42332; }

@media (max-width: 1150px) {
    .pa-hero-layout { gap: 35px; }
}
@media (max-width: 960px) {
    .pa-hero-layout { grid-template-columns: 1fr; gap: 20px; }
    .pa-hero h1 { font-size: 60px; }
    .pa-scene { width: 100%; max-width: 560px; margin: auto; }
    .pa-hero-copy { max-width: 640px; }
    .pa-platform-grid, .pa-contact-grid { gap: 35px; }
    .pa-benefits { grid-template-columns: repeat(2, 1fr); }
    .pa-program { padding: 26px; }
    .pa-income-example { grid-template-columns: minmax(0, 1fr) auto; }
    .pa-income-example > .pa-link { grid-column: 1 / -1; }
    .pa-faq-layout { gap: 40px; }
}
@media (max-width: 760px) {
    .pa-programs, .pa-platform-grid, .pa-faq-layout, .pa-contact-grid { grid-template-columns: 1fr; }
    .pa-responsibility { grid-template-columns: 1fr; gap: 25px; }
    .pa-steps { grid-template-columns: 1fr; gap: 22px; }
    .pa-start-note { align-items: start; flex-direction: column; }
    .pa-dc { min-height: 260px; }
    .pa-table { min-width: 580px; }
}
@media (max-width: 600px) {
    .pa-hero-layout { padding-block: 27px 38px; }
    .pa-hero h1 { font-size: clamp(37px, 10vw, 54px); }
    .pa-hero-copy { font-size: 14px; }
    .pa-actions { flex-direction: column; }
    .pa-map { padding: 19px; }
    .pa-node { padding: 17px 10px; }
    .pa-node strong { font-size: 14px; }
    .pa-node span { font-size: 11px; }
    .pa-scene-caption { font-size: 11px; }
    .pa-audience { justify-content: center; gap: 12px 20px; font-size: 12px; }
    .pa-audience > span { width: 100%; text-align: center; }
    .pa-head { display: block; }
    .pa-head > p { margin-top: 20px; }
}
@media (max-width: 480px) {
    .pa-benefits { grid-template-columns: 1fr; gap: 13px; }
    .pa-card, .pa-program, .pa-form { padding: 23px; }
    .pa-income-example { grid-template-columns: 1fr; gap: 18px; padding: 23px; }
    .pa-program h3 { font-size: 23px; }
    .pa-program-rate strong { font-size: 42px; }
    .pa-form-row { grid-template-columns: 1fr; }
    .pa-option { padding: 11px 8px; gap: 6px; }
    .pa-option strong { font-size: 12px; }
    .pa-option small { font-size: 12px; }
    .pa-steps { gap: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pa-page *, .pa-page *::before, .pa-page *::after { animation: none !important; transition: none !important; }
}
