/* Дополнения продукта к стилям демо: только то, чего в демо не было */
.boot { max-width: 760px; margin: 80px auto; padding: 0 20px; color: var(--ink-3); }
.photo-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 180px; background: #e6edff; color: var(--blue); font-size: 22px; }
.section-photo.photo-fallback { min-height: 320px; border-radius: var(--r-lg); }

/* формы: галочки и выбор «сверху / из суммы» */
.check, .radio { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; line-height: 1.45; font-size: 15px; cursor: pointer; }
.check input, .radio input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.fee-mode { border: 0; padding: 0; margin: 22px 0; }
.fee-mode legend { margin-bottom: 6px; }
.panel-action { margin-top: 20px; }
.panel-note { margin-top: 14px; }

/* каталог: «Нужна помощь» — такой же чип, как виды спорта, отбит от них */
.need-chip { margin-left: 12px; }
.need-chip::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--coral); vertical-align: 1px; }

/* пустой каталог */
.soon { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding: 32px; border-radius: var(--r-lg); background: var(--card); }
.soon h3 { font-size: 22px; font-weight: 400; margin: 0 0 8px; }
.soon p { color: var(--ink-2); max-width: 520px; margin: 0; }

/* QR пожертвования */
.qr-box { display: flex; gap: 24px; align-items: center; margin-bottom: 18px; }
.qr-box img { width: 220px; height: 220px; flex: none; border-radius: 12px; background: #fff; }
@media (max-width: 640px) { .qr-box { flex-direction: column; align-items: flex-start; } }
strong.wrap { max-width: 60%; white-space: normal; text-align: right; }

/* страница секции */
.coach-block { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.coach-block h3 { margin: 0 0 4px; }
.update-photo { width: 100%; border-radius: 12px; margin: 10px 0; }

/* вход */
.login { max-width: 460px; margin: clamp(24px, 6vh, 72px) auto; padding: 36px; border-radius: var(--r-lg); background: var(--card); }
.login h1 { font-size: 44px; margin: 0 0 8px; }
.login > .muted { margin: 0 0 18px; }
.login .error:not(:empty) { margin: 10px 0; }
.btn.yandex { gap: 10px; margin-top: 10px; background: #000; color: #fff; border-color: #000; }
.ya-mark { width: 22px; height: 22px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login .text-btn { margin-top: 12px; }

/* подвал приложения: логотип · АНО · документы — одна строка, на телефоне в столбик */
.app-footer { flex-wrap: wrap; }
.footer-org { flex: 1; min-width: 240px; color: var(--ink-3); }
.legal-links { display: flex; gap: 18px; }
.legal-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .app-footer { flex-direction: column; align-items: flex-start; gap: 12px; } }

.upload-link { color: var(--blue); cursor: pointer; text-decoration: underline; }
.chips a { padding: 8px 14px; border-radius: 999px; background: var(--card); color: inherit; }
.chips a.active { background: var(--ink); color: #fff; }

/* шапка: под именем видна роль */
.role-name small { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.1; }
.welcome-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }

/* секция: заголовок не прилипает к карточке; на телефоне — фото, название, запись/сбор, потом подробности */
.section-title { margin-bottom: 32px; }
.section-body { display: flex; flex-direction: column; gap: 0; }
@media (max-width: 900px) { .section-body { order: 5; margin-top: 24px; } }
.ticket-note .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--blue); }
.ticket .btn + .btn, .ticket-note + .btn { margin-top: 12px; }

/* формы: кнопка не прилипает к полю */
form .field + .btn, form .field + .error + .btn, form .check + .btn, form .error + .btn, form > p + .btn { margin-top: 18px; }
.text-btn.danger { color: #c4332c; }

/* выбор файла по-русски */
.file-pick { display: flex; align-items: center; gap: 12px; margin: 16px 0; cursor: pointer; position: relative; }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-name { color: var(--ink-2); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pick:focus-within .btn { outline: 2px solid var(--blue); outline-offset: 2px; }

/* путь пожертвования */
.path-steps { display: flex; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.path-steps li { flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 12px; background: var(--paper); color: var(--ink-3); font-size: 13.5px; }
.path-steps li.done { background: #e8f3ea; color: #1f6b33; }
.path-steps li.now { background: #e6edff; color: var(--blue); }

/* «Тренерам»: шаги по номерам */
.steps-list { counter-reset: step; margin: 8px 0 20px; padding: 0; list-style: none; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps-list li:first-child { border-top: 0; }
.steps-list li::before { content: counter(step); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: #e6edff; color: var(--blue); display: grid; place-items: center; font-size: 14px; }
.steps-list b { font-weight: 500; }
.steps-list span { color: var(--ink-2); font-size: 14.5px; }

.coach-pick { max-width: 360px; margin-bottom: 20px; }
.need-sum small.rub { font-size: 0.5em; }
.panel h3 a { color: inherit; }

@media (max-width: 640px) {
  .page-head h1, .page-intro h1, .login h1 { font-size: 38px; }
  .chips { mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
  .login { padding: 24px; }
}
.budget-row strong, .card-need-top strong { white-space: nowrap; }
.panel > .budget-row:first-child { border-top: 0; }
.side-column { gap: 16px; }
strong.amount { font-size: 20px; font-weight: 500; white-space: nowrap; }
.narrow-panel { max-width: 640px; }
.stack + .panel, .panel + .panel { margin-top: 24px; }
.path-steps { flex-wrap: nowrap; }
.path-steps li { min-width: 0; }
.coach-block .small { margin-bottom: 8px; }
.text-btn.danger { padding: 12px 0; }
@media (max-width: 640px) {
  .account-button .role-name { display: block; font-size: 13px; }
  .role-name small { display: none; }
}
/* вход — в рамке «С чего начнём?» */
.login-role { margin: 0 0 6px; color: var(--ink-3); font-size: 14px; }
.login-role a { color: var(--blue); }
.welcome-main .login { margin-top: 0; }

/* «Мои занятия»: статус, секция, ребёнок — сверху вниз */
.application-card .top { flex-direction: column; align-items: flex-start; gap: 0; }

/* реквизиты: значение копируется по нажатию, длинное назначение переносится */
.req-row { flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; }
.req-row > div { flex: 0 1 auto; max-width: 45%; }
.copy { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: right; cursor: pointer; }
.copy strong { overflow-wrap: normal; white-space: normal !important; min-width: 0; }
.copy .icon { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
@media (hover: hover) { .copy:hover .icon { color: var(--blue); } }
.qr-box .btn { margin-top: 12px; }
.qr-phone { display: none; }
@media (max-width: 640px) { .qr-phone { display: block; margin-top: 8px; } .qr-box img { align-self: center; } }

/* «Моя поддержка»: перевод и доля секции */
.amount-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }

/* кабинет: предупреждение о закрытии нужды */
.info-banner.warn { margin: 0 0 8px; background: #fff4e5; }
.info-banner.warn > .icon { color: #b45309; }

/* АНО: счёт на оплату — одна строка, на телефоне в столбик */
.bill-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.panel h2 + .bill-row { border-top: 0; }
.bill-row > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 720px) { .bill-row { grid-template-columns: minmax(0, 1fr) auto; } .bill-row > .row { grid-column: 1 / -1; } }

/* помощник: примеры вопросов */
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
@media (hover: hover) { .chip:hover { border-color: var(--ink); color: var(--ink); } }
@media (max-width: 640px) { .file-pick { flex-wrap: wrap; } .file-name { white-space: normal; } }

/* проверка АНО: баннер статуса над кабинетом и над страницей секции */
.status-banner, .preview-banner { margin: 0 0 24px; }
.info-banner .icon + div p:empty { display: none; }
/* поступление без номера: номер пожертвования — короткое поле */
.match-no input { width: 96px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); font: inherit; }

.text-btn.small { padding: 0; font-size: 13px; }
/* анкета секции: поля в строке делят ширину; стоимость — только для платных занятий */
#section-form .row > .field { flex: 1; min-width: 0; }
#section-form:has([name="free"]:checked) .fee-field { display: none; }
.two-column > .panel + .panel { margin-top: 0; }

/* гость по ссылке: логотип слева, «Войти» справа */
.header-gap { flex: 1; }
.section-top { align-items: center; margin-bottom: 4px; }
.section-top .back { margin-bottom: 0; }
/* история сбора: собрано → оплачено с документами → отчёт */
.need-story h3 { margin: 0; }
.need-story .budget-row:first-of-type { margin-top: 8px; }
.story-report { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.path-docs { margin-top: 10px; }
.path-docs .budget-row { padding: 10px 0; font-size: 14px; }
/* записка тренера семье */
.coach-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 14px; }
/* дети из прошлых заявок */
.kid-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
/* подсказки сверки под строкой выписки */
.bill-row .chip { font-size: 13px; padding: 6px 12px; }
.funnel-gap { height: 14px; }
.match-hints { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
/* новости: фото не выше экрана, хоть портретное */
.update-photo { max-height: 480px; object-fit: cover; }
.panel p + .bill-row { margin-top: 8px; }

.nav-due { display: inline-block; min-width: 20px; margin-left: 2px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 12px; font-weight: 500; line-height: 20px; text-align: center; }

/* вход: заголовок и роль, Яндекс, почта; остальное мелко внизу */
.login { max-width: 400px; padding: 32px; }
.login-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login h1 { margin: 0; font-size: 40px; line-height: 1.1; }
.login > .login-sub { margin: 6px 0 22px; }
.login .btn.yandex { min-height: 56px; margin-top: 0; }
.login-role { position: relative; margin: 0; flex: none; }
.role-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 14px; border: 0; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s; }
.role-pill:hover { background: #d8dcff; }
.role-pill .icon { width: 16px; height: 16px; color: var(--blue-deep); transition: transform .2s var(--ease); }
.role-pill[aria-expanded="true"] .icon { transform: rotate(180deg); }
.role-pill-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: 168px; padding: 6px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); }
.role-pill-menu[hidden] { display: none; }
.role-pill-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 15px; text-align: left; cursor: pointer; }
.role-pill-menu button:hover { background: var(--paper); }
.role-pill-menu .icon { width: 16px; height: 16px; opacity: 0; color: var(--blue); }
.role-pill-menu .selected { color: var(--blue); }
.role-pill-menu .selected .icon { opacity: 1; }
.login .or { margin: 14px 0; }
.login-email { position: relative; }
.login-input { display: block; width: 100%; height: 56px; padding: 0 60px 0 18px; border: 1px solid transparent; border-radius: 16px; background: var(--paper); color: var(--ink); font: inherit; font-size: 17px; transition: border-color .2s, background .2s; }
.login-input:focus { outline: 0; border-color: var(--blue); background: #fff; }
.field-go { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .16s linear; }
.field-go .icon { width: 20px; height: 20px; }
.login-input:valid + .field-go { opacity: 1; pointer-events: auto; }
.code-input { height: 76px; padding: 0 0 0 .4em; font: 500 44px/1 var(--num); letter-spacing: .4em; text-align: center; }
.login-legal { margin-top: 18px; }
.login-legal .check { gap: 8px; margin: 6px 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.login-legal .check input { width: 15px; height: 15px; margin-top: 1px; }
@media (max-width: 720px) { .login { padding: 24px; } .login h1 { font-size: 36px; } }

.welcome-main:has(.login) { justify-content: flex-start; padding-top: clamp(32px, 13vh, 130px); }

/* каталог и сбор */
.card-actions > :only-child { grid-column: 1 / -1; }
.need-trust { display: flex; gap: 8px; margin: 14px 0 0; color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.4; }
.need-trust .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.give-amount { margin-top: 0; }
#give-form .amounts { margin-top: 10px; }
.receipt { margin: 20px 0 6px; padding: 14px 16px; border-radius: 16px; background: var(--paper); font-size: 15px; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink-2); }
.receipt b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.receipt .total { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
#give-form .check { font-size: 14px; color: var(--ink-2); }
#give-form .check input { width: 16px; height: 16px; }
#give-form .segmented { margin-top: 20px; }
.small-check { font-size: 13px !important; color: var(--ink-3) !important; }
.under-btn { margin: 10px 0 0; color: var(--ink-3); font-size: 12.5px; text-align: center; }
.under-btn a { text-decoration: underline; text-underline-offset: 2px; }

/* кабинет тренера: что сделать дальше */
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; padding: 18px 22px; border-radius: var(--r-md); background: var(--blue-soft); }
.next-step b { display: block; font-weight: 500; font-size: 17px; }
.next-step p { margin: 2px 0 0; color: var(--ink-2); font-size: 14.5px; }
.next-step.warn { background: var(--coral-soft); }
.next-step .btn { flex: none; }
.coach-gap { height: 16px; }
@media (max-width: 620px) { .next-step { flex-direction: column; align-items: stretch; } }
.group-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.group-row b { display: block; font-weight: 500; }
.group-row .btn { flex: none; }

/* закрыть сбор и свой вклад */
.close-need { display: block; width: 100%; min-height: 50px; margin-top: 8px; border: 1px solid var(--blue); border-radius: var(--r-sm); background: var(--blue-soft); color: var(--blue-deep); font: inherit; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.close-need.active { background: var(--blue); color: #fff; }
.my-share { margin-top: 16px; }
.my-share-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 14px; }
.my-share-top b { font-weight: 500; }
.share-bar { display: flex; height: 8px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--paper-2); }
.share-bar i { display: block; height: 100%; }
.share-bar .others { background: #b3bdff; }
.share-bar .mine { min-width: 4px; background: var(--blue); }
.share-bar .mine.waiting { opacity: .45; }
.need-mine { margin: 10px 0 0; font-size: 14px; color: #fff; }
.need-mine b { font-weight: 500; }

/* упаковка секции: онбординг по шагам — сайт, презентация, фильм */
.pack-flow { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.pack-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pack-steps li { position: relative; }
.pack-steps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: var(--card); color: var(--ink-3); font: 500 14px/1.2 var(--font); text-align: left; cursor: default; }
.pack-steps button:not([disabled]) { cursor: pointer; }
.pack-steps button:not([disabled]):hover { color: var(--ink); }
.pack-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 13px; font-weight: 600; }
.pack-step-n .icon { width: 14px; height: 14px; }
.pack-steps .now button { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--blue); }
.pack-steps .now .pack-step-n { background: var(--blue); color: #fff; }
.pack-steps .done button { color: var(--ink-2); }
.pack-steps .done .pack-step-n { background: var(--green-soft); color: var(--green); }
@media (max-width: 640px) { .pack-step-l { display: none; } .pack-steps button { justify-content: center; } .pack-steps .now .pack-step-l { display: inline; } .pack-steps { grid-template-columns: auto auto auto auto; justify-content: start; } }

.pack-step h2, .pack-intro h2 { margin-bottom: 8px; }
.pack-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.pack-intro h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; max-width: 22ch; }
.pack-outs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 22px 0 8px; }
.pack-out-item { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-md); background: var(--blue-soft); }
.pack-out-item .icon { width: 22px; height: 22px; color: var(--blue); }
.pack-out-item span { font-size: 14px; color: var(--ink-2); }
.pack-has-label { margin: 18px 0 8px; }
.pack-has { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.pack-has li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper); font-size: 14px; color: var(--ink-2); }
.pack-has li.ok { background: var(--green-soft); color: var(--green); }
.pack-has .icon { width: 16px; height: 16px; }

.pack-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pack-nav .row { gap: 14px; align-items: center; }
.pack-nav .btn .icon { width: 18px; height: 18px; }
.pack-foot { margin-top: 12px; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.pack-thumb { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2); }
.pack-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-thumb-sm { width: 110px; }
.pack-cover { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 99px; background: var(--blue); color: #fff; }
.pack-mini { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(17,18,22,.6); color: #fff; font-size: 13px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pack-mini.pack-x { left: auto; right: 6px; }
.pack-mini .icon { width: 14px; height: 14px; }
.pack-add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); color: var(--ink-2); font-size: 13px; cursor: pointer; text-align: center; padding: 8px; }
.pack-add:hover, .pack-add:focus-within { border-color: var(--blue); color: var(--blue); }
.pack-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.pack-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border-radius: var(--r-md); background: var(--paper); }
.pack-extra .budget-row { width: 100%; }

.pack-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.pack-dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--paper-2); }
.pack-dots i.done { background: var(--green); }
.pack-dots i.now { background: var(--blue); }
.pack-step h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
.pack-big { width: 100%; margin-top: 14px; padding: 16px; font: 400 17px/1.5 var(--font); border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--card); resize: vertical; min-height: 140px; }
.pack-big:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.pack-mic-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 18px; border: 1.5px solid var(--line-2); border-radius: 99px; background: var(--card); font: 500 15px/1 var(--font); color: var(--ink); cursor: pointer; }
.pack-mic-btn:hover { border-color: var(--blue); }
.pack-mic-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.pack-mic-btn.on { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-ink); }
.pack-mic-btn.on .pack-mic-dot { animation: pack-pulse 1.1s ease-in-out infinite; }
@keyframes pack-pulse { 50% { transform: scale(1.5); opacity: .55; } }

.pack-wants { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 18px; }
.pack-want { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--card); cursor: pointer; text-align: left; font: inherit; color: var(--ink-3); }
.pack-want > .icon { width: 22px; height: 22px; }
.pack-want b { color: var(--ink-2); }
.pack-want span:last-child { font-size: 13px; }
.pack-want.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.pack-want.on b { color: var(--ink); }
.pack-want.on span:last-child { color: var(--ink-2); }
.pack-want-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.pack-want.on .pack-want-check { background: var(--blue); border-color: var(--blue); color: #fff; }
.pack-want-check .icon { width: 13px; height: 13px; }
.pack-sw-label { margin: 22px 0 8px; }
.pack-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pack-swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; background: var(--paper); font-size: 11px; color: var(--ink-2); padding: 0; }
.pack-swatch.on { outline: 3px solid var(--ink); outline-offset: 2px; }

.pack-wait { text-align: center; padding-top: 36px; padding-bottom: 36px; }
.pack-wait .ask-thinking { justify-content: center; margin-bottom: 14px; }
.pack-stages { list-style: none; padding: 0; margin: 18px auto; display: inline-flex; flex-direction: column; gap: 10px; text-align: left; }
.pack-stages li { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.pack-stages li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--paper-2); }
.pack-stages li.now { color: var(--ink); font-weight: 600; }
.pack-stages li.now::before { background: var(--blue); }
.pack-stages li.done { color: var(--green); }
.pack-stages li.done::before { display: none; }
.pack-stages .icon { width: 16px; height: 16px; }

.pack-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.pack-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-md); background: var(--paper); }
.pack-card > .icon { width: 22px; height: 22px; color: var(--blue); }
.pack-card .row { margin-top: auto; gap: 8px; padding-top: 6px; }
.pack-video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: #000; }

/* каталог: список и карта — два вида одного раздела */
.page-intro .view-switch { grid-column: 9 / -1; justify-self: end; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.view-switch a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.view-switch a.active { background: var(--ink); color: #fff; }
.view-switch .icon { width: 18px; height: 18px; }
.sections-map { height: min(64vh, 620px); min-height: 360px; margin-top: 18px; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); z-index: 0; }
.map-fail { padding: 24px; }
.map-pin span { display: block; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--blue); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(17, 18, 22, .3); }
.map-popup { font: 14px/1.4 var(--font); color: var(--ink); }
.map-popup b { display: block; font-size: 17px; margin: 2px 0 4px; }
.map-popup p { margin: 0 0 6px; color: var(--ink-2); }
.map-popup .map-popup-meta { font-size: 12.5px; color: var(--ink-3); }
.map-popup-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px !important; }
.map-popup .btn { height: 34px; padding: 0 12px; font-size: 13.5px; }
.map-popup .btn.blue { color: #fff; }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); }
#map-missing .section-head { margin-top: 32px; }
@media (max-width: 900px) {
  .page-intro .view-switch { grid-column: 1 / -1; justify-self: start; margin-top: 18px; }
  .sections-map { height: 58vh; }
}

/* сайт и фильм: свой вид — логотип и цвет */
.pack-sub { margin: 28px 0 4px; font-size: 18px; }
.pack-brand { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.pack-logo { position: relative; margin: 0; width: 180px; height: 90px; border-radius: var(--r-sm); background: repeating-conic-gradient(#e8e6e0 0 25%, #fff 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; }
.pack-logo img { max-width: 150px; max-height: 70px; object-fit: contain; }
.pack-own { position: relative; display: grid; place-items: center; font-size: 20px; color: var(--ink-2); overflow: hidden; }
.pack-own input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }

/* пакеты поддержки: карточки на странице секции, выбранный пакет при оплате, фото выполнения */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tier-grid > .tier-card { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.tier-card h3 { margin: 0; }
.tier-card .btn { margin-top: auto; align-self: flex-start; }
.tier-price { margin: 0; color: var(--blue); font-weight: 600; font-size: 15px; }
.tier-perks { margin: 0; white-space: pre-line; color: var(--ink-2); }
.tier-pick { margin: 12px 0 4px; padding: 14px 16px; border-radius: 16px; background: var(--paper); }
.tier-pick h3 { margin: 2px 0 6px; }
.tier-pick .label { margin: 0; font-size: 13px; color: var(--ink-3); }
.tier-pick .small { margin: 8px 0 0; }
.tier-promise { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.tier-promise .icon { flex: none; width: 18px; height: 18px; color: var(--blue); }
.tier-proof { margin-top: 12px; }
.tier-proof img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; }
.tier-proof p { margin: 8px 0 0; }
.tier-row > div:first-child { min-width: 0; }
.tier-row .tier-perks { display: block; font-size: 13.5px; }
.tier-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tier-row.is-hidden > div:first-child { opacity: .55; }
.tier-actions .row { gap: 4px 14px; justify-content: flex-end; }
/* анкета: первый сбор идёт вместе с секцией */
#section-form .form-sub { margin: 20px 0 2px; font-size: 17px; }
/* правка упаковки словами */
.pack-edit { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.pack-edit h3, .pack-edit p { margin: 0; }
.pack-edit textarea { min-height: 96px; }
.pack-edit-state { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--paper); white-space: pre-line; }
.pack-edit-state:has(.ask-thinking) { flex-direction: row; align-items: center; gap: 12px; }
.pack-edit-state.warn { background: #fff4e5; }
.pack-edit-files { gap: 8px; align-items: center; }
.pack-edit-files .chip { display: inline-flex; align-items: center; gap: 4px; }
.pack-edit button[type="submit"] { align-self: flex-start; }
