/* ============================================================================
   public-site.css — скин публичной витрины по дизайну publicsitedesign
   (PART-M-PUBLIC-redesign). Без Bootstrap и grant-design.css. Токены палитры,
   бренд, иконки и подвал — в showcase-shared.css (DSDC-839): он общий с личным
   кабинетом и подключается перед этим файлом.

   Палитра «пергамент/золото» — литеральные значения дизайна. Тенант с другим
   брендом получает override --ps-accent* из партиала _ShowcaseAccent (color-mix-производные);
   для дефолтного золота действуют точные значения макета.
   ========================================================================== */

/* ── база (без Bootstrap) ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* [hidden] сильнее display-классов (грабля из каталога) */
html, body {
  margin: 0;
  padding: 0;
  background: var(--ps-bg);
  font-family: var(--ps-font);
  color: var(--ps-ink);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ps-accent-ink); text-decoration: none; }
a:hover { color: var(--ps-accent-deep); }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.ps-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ps-main { flex: 1 0 auto; padding: 44px 0 72px; }
.ps-narrow { max-width: 880px; }

@keyframes psFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes psPopIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ps-fadeup { animation: psFadeUp .45s cubic-bezier(.4, 0, .2, 1) both; }
.ps-fadeup--late { animation: psFadeUp .5s cubic-bezier(.4, 0, .2, 1) .06s both; }

/* ── шапка ────────────────────────────────────────────────────────────── */
.ps-header { background: var(--ps-card); border-bottom: 1px solid var(--ps-line); }
.ps-header__inner {
  max-width: 1160px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
}
.ps-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* нейтральная кнопка шапки (a11y, «Все сервисы») */
.ps-hbtn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ps-ink);
  background: var(--ps-bg); border: 0; border-radius: var(--ps-r);
  padding: 11px 18px; cursor: pointer; text-decoration: none;
}
.ps-hbtn:hover { background: #ece8e0; color: var(--ps-ink); }
.ps-hbtn .ps-i { width: 18px; height: 18px; }

/* переключатель языка (DSDC-829) */
.ps-lang {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--ps-bg); border-radius: 999px; padding: 4px;
}
.ps-lang__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; padding: 6px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ps-muted); text-decoration: none;
}
.ps-lang__item:hover { color: var(--ps-ink); }
.ps-lang__item.is-active { background: #fff; color: var(--ps-ink); box-shadow: 0 1px 3px rgba(20,23,28,.12); }

/* панель «Все сервисы»: широкая, под шапкой (как в ЛК; шапка — контейнер позиционирования) */
.ps-services { display: inline-flex; }
.ps-header { position: relative; }
.ps-services__pop {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100vw - 32px));
  background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 0 0 var(--ps-r-xl) var(--ps-r-xl);
  box-shadow: var(--ps-shadow-pop); padding: 28px 36px 24px; z-index: 300;
  animation: psPopIn .18s ease;
}
.ps-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 32px; align-items: start; }
.ps-services__col { display: flex; flex-direction: column; gap: 4px; }
.ps-services__item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: var(--ps-r-sm);
  font-size: 14.5px; font-weight: 500; color: var(--ps-ink);
}
.ps-services__item:hover { background: var(--ps-bg); color: var(--ps-accent-ink); }
.ps-services__item img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.ps-services__socials { display: flex; gap: 10px; margin-top: 18px; padding-left: 12px; }
.ps-services__socials a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ps-bg); display: grid; place-items: center; transition: background .15s;
}
.ps-services__socials a:hover { background: #ece8e0; }
.ps-services__socials img { width: 22px; height: 22px; object-fit: contain; }

/* профиль-пилюля */
.ps-profile { position: relative; }
.ps-profile__btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--ps-ink);
  background: var(--ps-card); border: 1px solid var(--ps-line2); border-radius: var(--ps-pill);
  padding: 6px 14px 6px 6px; cursor: pointer;
}
.ps-profile__btn:hover { background: var(--ps-bg); }
.ps-profile__who { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.ps-profile__role {
  font-size: 11px; font-weight: 500; line-height: 1; color: var(--ps-faint);
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ps-profile__name {
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ps-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ps-accent-soft); color: var(--ps-accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
}
.ps-profile__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px;
  background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-r-md);
  box-shadow: var(--ps-shadow-pop); padding: 8px; z-index: 300;
  display: flex; flex-direction: column; animation: psPopIn .18s ease;
}
.ps-profile__menu a {
  padding: 10px 14px; border-radius: var(--ps-r-sm);
  font-size: 14px; font-weight: 500; color: var(--ps-ink);
}
.ps-profile__menu a:hover { background: var(--ps-bg); color: var(--ps-accent-ink); }

/* меню */
.ps-nav {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: center; gap: 34px;
}
.ps-nav a {
  padding: 14px 0; font-size: 15px; font-weight: 500; color: var(--ps-ink);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.ps-nav a:hover { color: var(--ps-accent-ink); }
.ps-nav a[aria-current="page"] {
  font-weight: 600; color: var(--ps-accent-strong);
  border-bottom-color: var(--ps-accent);
}

/* ── кнопки ───────────────────────────────────────────────────────────── */
.ps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14px; font-weight: 600; line-height: 1;
  border-radius: var(--ps-r-sm); padding: 13px 22px;
  border: 1px solid var(--ps-line2); background: var(--ps-card); color: var(--ps-muted);
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.ps-btn:hover { border-color: var(--ps-accent); color: var(--ps-accent-ink); }
.ps-btn .ps-i { width: 15px; height: 15px; }

@keyframes psBtnSheen {
  0%, 68% { transform: translateX(-160%) skewX(-22deg); }
  84%, 100% { transform: translateX(280%) skewX(-22deg); }
}
.ps-btn--accent {
  position: relative; overflow: hidden; border: 0; color: #fff;
  background: linear-gradient(135deg, var(--ps-accent) 0%, var(--ps-accent-strong) 100%);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ps-accent) 38%, transparent);
}
.ps-btn--accent:hover { color: #fff; filter: brightness(1.05); }
.ps-btn--accent::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: psBtnSheen 4.5s ease-in-out infinite;
}
/* светлое золото макета: тёмный текст на песочном градиенте (герой лендинга и CTA) */
.ps-btn--gold {
  position: relative; overflow: hidden; border: 0; color: #241d0e;
  border-radius: var(--ps-r); padding: 14px 26px;
  background: linear-gradient(105deg, #e3c98f, #d4b984 60%, #c9ab6e);
  box-shadow: 0 6px 18px rgba(201, 164, 92, .35);
}
.ps-btn--gold:hover { color: #241d0e; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(201, 164, 92, .45); }
.ps-btn--gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: psBtnSheen 6s ease-in-out infinite; pointer-events: none;
}
.ps-btn--sm { padding: 10px 18px; font-size: 13.5px; }

/* ── чипы-фильтры ─────────────────────────────────────────────────────── */
.ps-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-chip {
  font-size: 13px; font-weight: 500; color: var(--ps-muted);
  background: var(--ps-card); border: 1px solid var(--ps-line2); border-radius: var(--ps-pill);
  padding: 8px 16px; cursor: pointer; text-decoration: none; transition: all .15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.ps-chip:hover { border-color: var(--ps-accent); color: var(--ps-accent-ink); }
.ps-chip.is-active, .ps-chip[aria-current] {
  font-weight: 700; color: #fff; background: var(--ps-accent); border-color: var(--ps-accent);
}
.ps-chip.is-active:hover { color: #fff; }

/* ── карточки ─────────────────────────────────────────────────────────── */
.ps-card {
  background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-r-lg);
  box-shadow: var(--ps-shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ps-card--hover:hover { border-color: var(--ps-accent-line); box-shadow: var(--ps-shadow-card); }
.ps-card--lift:hover { transform: translateY(-2px); }

/* ── страница входа (DSDC-638) ────────────────────────────────────────── */
/* Вход живёт на этом же скине, что и витрина (замечание ОР от 07.08: «страница входа
   не похожа на сайт площадки»), поэтому его карточка — компонент дизайн-системы витрины,
   а не набор инлайновых стилей. Текст согласия набран основным кеглем и цветом --ps-muted
   (контраст 6.8:1): это юридически значимый текст, а не подпись поля. */
.ps-login { display: flex; justify-content: center; }
.ps-login__card { width: 100%; max-width: 460px; padding: 36px 32px; text-align: center; }
.ps-login__title { font-size: 30px; margin-bottom: 20px; }
.ps-login__text { font-size: 15px; line-height: 1.55; color: var(--ps-muted); margin-bottom: 16px; }
.ps-login__text a { text-decoration: underline; }
.ps-login__text b,
.ps-login__text b * { font-size: inherit !important; }
.ps-login__btn { width: 100%; margin-top: 8px; }
.ps-login__error {
  margin-bottom: 16px; padding: 12px 16px; border-radius: var(--ps-r-sm);
  background: #fdecec; color: #8c2b2b; font-size: 14px; text-align: left;
}
.ps-login__dev { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ps-line); text-align: left; }
.ps-login__dev p { font-size: 13px; color: var(--ps-faint); margin-bottom: 10px; }
.ps-login__dev form { margin-bottom: 8px; }
.ps-login__dev .ps-btn { width: 100%; }
.ps-login__dev .ps-input { width: 100%; margin-bottom: 8px; }

/* ── бейджи ───────────────────────────────────────────────────────────── */
.ps-badge {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-radius: var(--ps-pill); padding: 4px 10px; white-space: nowrap;
}
.ps-badge--gold { color: var(--ps-accent-ink); background: var(--ps-accent-soft); }
.ps-badge--green { color: var(--ps-green-ink); background: var(--ps-green-soft); }
.ps-badge--leaf { color: var(--ps-leaf-ink); background: var(--ps-leaf-soft); }
.ps-badge--terra { color: var(--ps-terra-ink); background: var(--ps-terra-soft); }
.ps-badge--neutral { color: var(--ps-neutral-ink); background: var(--ps-neutral-soft); }

/* ── типографика (DSDC-681) ───────────────────────────────────────────── */
/* Телефон, завёрнутый хелпером Typo: неразрывен целиком, вместе с дефисами. */
.ps-nowrap { white-space: nowrap; }

/* ── заголовки страниц/секций ─────────────────────────────────────────── */
.ps-h1 { font-size: 36px; letter-spacing: -.02em; }
.ps-titlerow { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ps-titlerow .ps-chips { margin-left: auto; }
.ps-sechead { display: flex; align-items: center; gap: 18px; }
.ps-sechead h2 { font-size: 24px; letter-spacing: -.01em; flex: none; }
.ps-sechead::after { content: ""; flex: 1; height: 1px; background: var(--ps-line2); }

/* ── формы (фильтры) ──────────────────────────────────────────────────── */
.ps-input, .ps-select, .ps-textarea {
  width: 100%; font-size: 14px; color: var(--ps-ink);
  background: var(--ps-card); border: 1px solid var(--ps-line2); border-radius: var(--ps-r-sm);
  padding: 10px 12px; outline: none; transition: border-color .15s;
}
.ps-input:focus, .ps-select:focus, .ps-textarea:focus { border-color: var(--ps-accent); }
.ps-input::placeholder, .ps-textarea::placeholder { color: var(--ps-faint); }
.ps-select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8f96' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.ps-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ps-muted); cursor: pointer; }
.ps-check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 18px; height: 18px; border: 1.5px solid var(--ps-line2); border-radius: 5px;
  background: var(--ps-card); cursor: pointer; display: grid; place-items: center; margin: 0;
}
.ps-check input:checked { background: var(--ps-accent); border-color: var(--ps-accent); }
.ps-check input:checked::after {
  content: ""; width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── пагинация ────────────────────────────────────────────────────────── */
.ps-pager { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ps-pager a, .ps-pager span {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--ps-muted);
  background: var(--ps-card); border: 1px solid var(--ps-line2); border-radius: var(--ps-r-sm);
}
.ps-pager a:hover { border-color: var(--ps-accent); color: var(--ps-accent-ink); }
.ps-pager .is-current { color: #fff; background: var(--ps-accent); border-color: var(--ps-accent); }
.ps-pager .ps-pager__dots { border: 0; background: none; color: var(--ps-faint2); min-width: auto; }

/* ── пустое состояние ─────────────────────────────────────────────────── */
.ps-empty {
  text-align: center; padding: 64px 24px;
  background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-r-lg);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ps-empty__title { font-size: 18px; font-weight: 700; }
.ps-empty__sub { font-size: 14px; color: var(--ps-muted2); }
.ps-empty .ps-btn { margin-top: 10px; }

/* ── кнопка «Наверх» ──────────────────────────────────────────────────── */
.ps-totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ps-card); border: 1px solid var(--ps-line2); color: var(--ps-muted);
  box-shadow: var(--ps-shadow-card); cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.ps-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ps-totop:hover { color: var(--ps-accent-ink); border-color: var(--ps-accent); }

/* ── панель «Версия для слабовидящих» ─────────────────────────────────── */
.ps-a11y { position: relative; display: inline-flex; }
.ps-a11y__pop {
  position: absolute; top: calc(100% + 12px); right: 0; width: 372px;
  background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-r-xl);
  box-shadow: var(--ps-shadow-pop); padding: 22px 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 20px; animation: psPopIn .18s ease;
}
.ps-a11y__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ps-a11y__label { font-size: 14.5px; font-weight: 600; color: var(--ps-ink); min-width: 0; }
.ps-a11y__group { display: flex; align-items: center; gap: 6px; flex: none; }
.ps-a11y__round {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ps-bg); border: 2px solid var(--ps-line2); color: var(--ps-ink);
  font-weight: 600; cursor: pointer; display: grid; place-items: center;
}
.ps-a11y__round[data-active="1"] { border-color: var(--ps-accent); }
.ps-a11y__round[data-fs="1"] { font-size: 13px; }
.ps-a11y__round[data-fs="2"] { font-size: 17px; }
.ps-a11y__round[data-fs="3"] { font-size: 21px; font-weight: 700; }
.ps-a11y__round[data-swatch] { font-size: 14px; font-weight: 700; }
.ps-a11y__round[data-swatch="default"] { background: var(--ps-accent-soft); color: var(--ps-accent-ink); }
.ps-a11y__round[data-swatch="white"] { background: #fff; color: #000; }
.ps-a11y__round[data-swatch="yellow"] { background: #fff7cf; color: #4a3b00; }
.ps-a11y__round[data-swatch="blue"] { background: #9dd1ff; color: #063462; }
.ps-a11y__round[data-swatch="black"] { background: #000; color: #fff; }
.ps-a11y__toggle {
  position: relative; flex: none; width: 48px; height: 27px; border-radius: var(--ps-pill);
  background: #d8d4cb; border: 0; cursor: pointer; padding: 0; transition: background .15s;
}
.ps-a11y__toggle[aria-checked="true"] { background: var(--ps-accent); }
.ps-a11y__knob {
  position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s;
}
.ps-a11y__toggle[aria-checked="true"] .ps-a11y__knob { left: 24px; }
.ps-a11y__reset {
  width: 100%; font-size: 14px; font-weight: 600; color: var(--ps-ink);
  background: var(--ps-bg); border: 0; border-radius: var(--ps-r); padding: 13px; cursor: pointer;
}
.ps-a11y__reset:hover { background: #ece8e0; }

/* контрастные схемы: глобальное упрощение вида (по макету) */
html[data-scheme] * {
  background-image: none !important; box-shadow: none !important; text-shadow: none !important;
  animation: none !important; transition: none !important;
  font-family: Arial, Helvetica, sans-serif !important; border-radius: 0 !important;
}
html[data-scheme] svg, html[data-scheme] svg * { stroke: currentColor !important; }
html[data-scheme] *::before, html[data-scheme] *::after {
  background-image: none !important; animation: none !important; box-shadow: none !important;
}
html[data-scheme] a { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-scheme] button { border: 2px solid currentColor !important; }
html[data-scheme="white"] { background-color: #fff; }
html[data-scheme="black"] { background-color: #000; }
html[data-scheme="yellow"] { background-color: #fff7cf; }
html[data-scheme="blue"] { background-color: #9dd1ff; }
html[data-scheme="white"] :is(body, header, footer, nav, main, section, article, aside, div, ul, li, p, h1, h2, h3, h4, span, a, button, label, strong, b, em, form, input, select, option, textarea, summary, details)
  { background-color: #fff !important; color: #000 !important; border-color: #000 !important; }
html[data-scheme="black"] :is(body, header, footer, nav, main, section, article, aside, div, ul, li, p, h1, h2, h3, h4, span, a, button, label, strong, b, em, form, input, select, option, textarea, summary, details)
  { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
html[data-scheme="yellow"] :is(body, header, footer, nav, main, section, article, aside, div, ul, li, p, h1, h2, h3, h4, span, a, button, label, strong, b, em, form, input, select, option, textarea, summary, details)
  { background-color: #fff7cf !important; color: #4a3b00 !important; border-color: #4a3b00 !important; }
html[data-scheme="blue"] :is(body, header, footer, nav, main, section, article, aside, div, ul, li, p, h1, h2, h3, h4, span, a, button, label, strong, b, em, form, input, select, option, textarea, summary, details)
  { background-color: #9dd1ff !important; color: #063462 !important; border-color: #063462 !important; }
/* свотчи в панели сохраняют свои цвета при любой схеме */
html[data-scheme] .ps-a11y__round[data-swatch="default"] { background-color: #f6ead2 !important; color: #a8752c !important; }
html[data-scheme] .ps-a11y__round[data-swatch="white"] { background-color: #fff !important; color: #000 !important; }
html[data-scheme] .ps-a11y__round[data-swatch="yellow"] { background-color: #fff7cf !important; color: #4a3b00 !important; }
html[data-scheme] .ps-a11y__round[data-swatch="blue"] { background-color: #9dd1ff !important; color: #063462 !important; }
html[data-scheme] .ps-a11y__round[data-swatch="black"] { background-color: #000 !important; color: #fff !important; }
html[data-scheme] .ps-a11y__knob { background-color: currentColor !important; }
html[data-scheme] [data-active="1"] { outline: 3px solid currentColor !important; outline-offset: 2px; }
/* тумблер «Изображения» */
html[data-img="off"] img { display: none !important; }

/* ── CMS-проза (страницы /page/{slug}) ────────────────────────────────── */
.ps-prose { font-size: 15px; line-height: 1.7; color: var(--ps-ink); }
.ps-prose h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 18px; }
.ps-prose h2 { font-size: 24px; letter-spacing: -.01em; margin: 28px 0 12px; }
.ps-prose h3 { font-size: 18px; margin: 22px 0 10px; }
.ps-prose p { margin: 0 0 14px; }
.ps-prose ul, .ps-prose ol { margin: 0 0 14px; padding-left: 24px; }
.ps-prose img { border-radius: var(--ps-r-lg); }

/* ── документы ────────────────────────────────────────────────────────── */
.ps-docs { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.ps-doc { padding: 20px 24px; display: flex; align-items: center; gap: 20px; }
.ps-doc__icon {
  flex: none; width: 46px; height: 54px; border-radius: var(--ps-r-sm);
  background: var(--ps-neutral-ink); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.ps-doc__icon--docx { background: var(--ps-doc-docx); }
.ps-doc__icon--xlsx { background: var(--ps-doc-xlsx); }
.ps-doc__icon--pdf { background: var(--ps-doc-pdf); }
.ps-doc__ext { font-size: 8.5px; font-weight: 800; letter-spacing: .04em; }
.ps-doc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ps-doc__title { font-size: 15.5px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.ps-doc__desc { font-size: 13px; line-height: 1.55; color: var(--ps-muted2); max-width: 640px; text-wrap: pretty; }
.ps-doc__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.ps-doc__size { font-size: 12.5px; color: var(--ps-faint2); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.ps-faq { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.ps-faq__item { transition: border-color .15s, box-shadow .15s; }
.ps-faq__item[open] { border-color: var(--ps-accent-line); box-shadow: var(--ps-shadow-card); }
.ps-faq__q {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 15.5px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em;
}
.ps-faq__q::-webkit-details-marker { display: none; }
.ps-faq__chev {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ps-bg); color: var(--ps-muted);
  display: grid; place-items: center; transition: transform .2s, background .15s, color .15s;
}
.ps-faq__item[open] .ps-faq__chev {
  transform: rotate(180deg); background: var(--ps-accent-soft); color: var(--ps-accent-ink);
}
.ps-faq__a {
  margin: 0 22px; padding: 16px 0 20px; border-top: 1px solid var(--ps-line);
  font-size: 14.5px; line-height: 1.65; color: var(--ps-muted);
}
.ps-faq__a p { margin: 0 0 10px; }
.ps-faq__a p:last-child { margin-bottom: 0; }
/* Призыв под аккордеоном: ведёт на страницу «Обратная связь» (DSDC-638). */
.ps-cta-ask {
  margin-top: 40px; padding: 36px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ps-cta-ask__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ps-cta-ask__sub { font-size: 14px; color: var(--ps-muted2); }
.ps-cta-ask .ps-btn { margin-top: 14px; }

/* ── страница «Обратная связь» (DSDC-638) ─────────────────────────────── */
/* Отдельная страница «Обратная связь» (фидбэк заказчика): форма слева, контакты площадки
   справа — как на референсе ОР. На узком экране колонки схлопываются в одну. */
.ps-feedback { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
/* Контактов у площадки нет — колонка одна, иначе справа зияет пустая треть страницы. */
.ps-feedback--solo { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.ps-feedback__form { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
/* Заголовки колонок страницы «Обратная связь»: h1 слева и h2 справа выглядят одинаково —
   разный уровень нужен структуре документа, а не глазу (макет ОР). */
.ps-feedback__title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ps-feedback__field { display: flex; flex-direction: column; gap: 6px; }
.ps-feedback__label { font-size: 13px; font-weight: 600; color: var(--ps-muted); }
.ps-feedback__area { min-height: 120px; resize: vertical; }
.ps-feedback__note { font-size: 13px; line-height: 1.5; color: var(--ps-muted); }
.ps-feedback__note a { text-decoration: underline; }
.ps-feedback__warn { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ps-accent-ink); }
/* Правило display в классе перебивает браузерное [hidden] { display: none } — без этой строки
   блок с атрибутом hidden виден всегда (грабля записана в памяти проекта). */
.ps-feedback__warn[hidden] { display: none; }
.ps-feedback__msg { padding: 12px 16px; border-radius: var(--ps-r-sm); font-size: 14px; line-height: 1.5; }
.ps-feedback__msg--ok { background: var(--ps-green-soft); color: var(--ps-green-ink); }
.ps-feedback__msg--err { background: var(--ps-terra-soft); color: var(--ps-terra-ink); }
/* Honeypot: поле-приманка для ботов — человеку не видно и в фокус не попадает. */
.ps-feedback__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ps-feedback__contacts { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.ps-feedback__contact { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.ps-feedback__contact .ps-i { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: var(--ps-accent-ink); }
@media (max-width: 900px) { .ps-feedback { grid-template-columns: 1fr; } }

/* ── экспертный совет ─────────────────────────────────────────────────── */
/* карточка председателя: по центру, шириной в колонку грида (правка заказчика 2026-08-03) */
.ps-chair {
  margin: 18px auto 0; width: calc(50% - 7px); padding: 24px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.ps-chair__photo { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.ps-chair__name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ps-chair__role { font-size: 13px; color: var(--ps-muted2); line-height: 1.5; margin-top: 3px; max-width: 480px; }
.ps-experts-head { margin-top: 36px; }
.ps-experts { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ps-expert { padding: 18px 22px; display: flex; align-items: center; gap: 18px; }
.ps-expert__photo { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ps-expert__ph {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: var(--ps-accent-soft); color: var(--ps-accent-ink);
  display: grid; place-items: center; font-size: 22px; font-weight: 700;
}
.ps-chair .ps-expert__ph { width: 76px; height: 76px; font-size: 24px; }
/* нечётное число членов совета: последняя карточка — по центру на всю строку */
.ps-expert:nth-child(odd):last-child {
  grid-column: 1 / -1; justify-self: center;
  width: calc(50% - 7px); /* половина грида минус половина gap — как обычная колонка */
}
.ps-expert__name { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.ps-expert__role { font-size: 13px; color: var(--ps-muted2); line-height: 1.5; margin-top: 3px; }

/* ── реестр проектов ──────────────────────────────────────────────────── */
.ps-projgrid { margin-top: 22px; display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.ps-projmain { min-width: 0; }
.ps-projtop { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ps-projtotal { font-size: 13.5px; font-weight: 600; color: var(--ps-muted2); margin-right: 4px; }
.ps-sortform { margin-left: auto; flex: none; }
.ps-sortform .ps-select { width: auto; font-size: 13.5px; }
.ps-plist { display: flex; flex-direction: column; gap: 12px; }
.ps-pcard { position: relative; overflow: hidden; padding: 20px 24px; display: flex; gap: 24px; color: inherit; }
.ps-pcard:hover { color: inherit; }
.ps-pcard__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ps-pcard__title { font-size: 16.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.ps-pcard:hover .ps-pcard__title { color: var(--ps-accent-ink); }
.ps-pcard__org { font-size: 13.5px; font-weight: 600; color: var(--ps-muted); }
.ps-pcard__meta { font-size: 12.5px; color: var(--ps-faint); line-height: 1.5; }
.ps-pcard__num { font-size: 12.5px; font-weight: 600; color: var(--ps-muted2); margin-top: 4px; }
.ps-pcard__aside {
  flex: none; width: 210px; display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px; text-align: right;
}
.ps-pcard__amountlbl { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ps-faint2); margin-top: 6px; }
.ps-pcard__amountlbl:first-child { margin-top: 0; }
.ps-pcard__amount { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.ps-pcard__amount--sub { font-size: 13.5px; font-weight: 600; color: var(--ps-muted); }
.ps-pcard__aside .ps-badge { margin-top: 10px; }
/* glow за курсором (по макету): радиальный градиент в точке --mx/--my */
[data-ps-glow]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--ps-accent) 10%, transparent), transparent 60%);
  transition: opacity .2s;
}
[data-ps-glow]:hover::after { opacity: 1; }

/* панель фильтров */
.ps-filters { position: sticky; top: 16px; }
.ps-filters__card { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.ps-filters__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ps-filters__title { font-size: 16px; font-weight: 700; }
.ps-filters__reset { font-size: 13px; font-weight: 600; }
.ps-filters__group { display: flex; flex-direction: column; gap: 9px; }
.ps-filters__lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ps-faint2); }
.ps-filters__dates { display: flex; flex-wrap: wrap; gap: 8px; }
/* базис min-content: пара стоит в строку, пока нативный type=date влезает, иначе переносится — DSDC-743 */
.ps-filters__dates > .ps-input { flex: 1 1 min-content; min-width: 0; }
.ps-filters__apply { width: 100%; }

/* ── карточка проекта (DSDC-694) ───────────────────────────────────────── */
.ps-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ps-faint); margin-bottom: 20px; }
.ps-crumbs a { color: var(--ps-muted); }
.ps-crumbs a:hover { color: var(--ps-accent-ink); }
.ps-crumbs__sep { color: var(--ps-faint2); }

/* пары «подпись — значение» (карточка конкурса) */
.ps-kv { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ps-kv__row { display: flex; flex-direction: column; gap: 3px; }
.ps-kv__lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ps-faint2); }
.ps-kv__val { font-size: 14px; line-height: 1.5; color: var(--ps-muted); }
.ps-kv__val--strong { font-weight: 700; color: var(--ps-ink); }
a.ps-kv__val--strong { color: var(--ps-accent-ink); }

.ps-phead { overflow: hidden; }
.ps-phead__main { padding: 22px 28px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ps-phead__toprow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ps-phead__num {
  margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 14px; color: var(--ps-muted2); font-variant-numeric: tabular-nums;
}
.ps-phead__numval { font-weight: 700; color: var(--ps-ink); }
.ps-phead__numlink {
  font-weight: 700; color: var(--ps-accent-deep);
  border-bottom: 1px dashed var(--ps-accent-line); padding-bottom: 1px;
}
.ps-phead__numlink:hover { color: var(--ps-accent-deep); border-bottom-color: var(--ps-accent-deep); }
.ps-phead__title {
  margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em;
  max-width: 900px; overflow-wrap: break-word;
}
.ps-phead__org { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; max-width: 900px; min-width: 0; }
.ps-phead__orgname { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: break-word; }
.ps-phead__ids { font-size: 14px; color: var(--ps-muted2); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }

.ps-pmeta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 28px;
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--ps-line);
}
.ps-pmeta__item { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.ps-pmeta__lbl { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ps-faint2); }
.ps-pmeta__val { font-size: 14px; line-height: 1.45; color: var(--ps-muted); overflow-wrap: break-word; }
a.ps-pmeta__val:hover { color: var(--ps-accent-ink); }
.ps-pmeta__val--nums { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* свёрнутый длинный текст: кнопку раскрытия показывает JS, только если текст не поместился */
.ps-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ps-clamp.is-open { -webkit-line-clamp: unset; }
.ps-clamp__more {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ps-accent-ink);
  background: none; border: 0; padding: 2px 0 0; cursor: pointer;
}
.ps-clamp__more:hover { color: var(--ps-accent-deep); }

/* бюджет: кольцо + строки */
.ps-budget {
  background: #faf7f1; border-top: 1px solid var(--ps-line); padding: 20px 28px;
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.ps-budget__ring { position: relative; width: 156px; height: 156px; flex: none; }
.ps-budget__ring svg { width: 100%; height: 100%; }
.ps-donut__track { fill: none; stroke: #ded5c3; stroke-width: 13; }
/* Длина дуги и её смещение заданы АТРИБУТАМИ разметки: анимация только доращивает дугу от нуля.
   Держать конечное состояние в кадрах нельзя — анимации глушит и системная «уменьшить движение»,
   и своя «версия для слабовидящих», а диаграмма обязана рисовать верные доли в любом режиме. */
.ps-donut__seg {
  fill: none; stroke-width: 13; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%;
  animation: psDonutIn 1.1s cubic-bezier(.4, 0, .2, 1);
  transition: stroke-width .22s ease, opacity .22s ease;
}
.ps-donut__seg--main { stroke: var(--ps-accent); }
.ps-donut__seg--co { stroke: var(--ps-deep); }
/* DSDC-718 */
.ps-donut--sliver .ps-donut__seg { stroke-linecap: butt; }
@keyframes psDonutIn { from { stroke-dasharray: 0 var(--ps-ring); } }
.ps-donut__center {
  position: absolute; inset: 22px; border-radius: 50%; pointer-events: none;
  display: grid; place-items: center;
}
.ps-donut__pct {
  font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums; grid-area: 1 / 1;
}
.ps-donut__pct--main { color: var(--ps-accent-deep); }
.ps-donut__pct--co { color: var(--ps-deep); display: none; }
/* подсветка доли: наведение на сегмент или на его строку гасит вторую долю */
.ps-budget:has(.ps-donut__seg--co:hover) .ps-donut__pct--main,
.ps-budget:has(.ps-bline--co:hover) .ps-donut__pct--main { display: none; }
.ps-budget:has(.ps-donut__seg--co:hover) .ps-donut__pct--co,
.ps-budget:has(.ps-bline--co:hover) .ps-donut__pct--co { display: block; }
.ps-budget:has(.ps-donut__seg--co:hover) .ps-donut__seg--main,
.ps-budget:has(.ps-bline--co:hover) .ps-donut__seg--main { opacity: .32; }
.ps-budget:has(.ps-donut__seg--main:hover) .ps-donut__seg--co,
.ps-budget:has(.ps-bline--main:hover) .ps-donut__seg--co { opacity: .32; }
.ps-donut__seg--main:hover, .ps-donut__seg--co:hover { stroke-width: 17; }

.ps-budget__rows { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; }
.ps-bline {
  display: flex; align-items: baseline; gap: 16px; padding: 9px 12px; margin: 0 -12px;
  border-radius: var(--ps-r-sm); transition: background .22s ease;
}
.ps-bline:hover { background: var(--ps-card); }
.ps-bline__dot { flex: none; width: 9px; height: 9px; border-radius: 3px; align-self: center; }
.ps-bline--main .ps-bline__dot { background: var(--ps-accent); }
.ps-bline--co .ps-bline__dot { background: var(--ps-deep); }
.ps-bline__lbl { font-size: 14px; font-weight: 500; color: var(--ps-ink); }
.ps-bline__lead { flex: 1; border-bottom: 1px dotted #d8d2c4; min-width: 24px; }
.ps-bline__pct { font-size: 14px; color: var(--ps-muted2); font-variant-numeric: tabular-nums; }
.ps-bline__sum { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-bline--main .ps-bline__sum { color: var(--ps-accent-deep); }
.ps-bline--co .ps-bline__sum { color: var(--ps-ink); }
.ps-btotal {
  display: flex; align-items: baseline; gap: 16px; padding: 13px 0 0; margin-top: 6px;
  border-top: 2px solid #e0d7c4;
}
.ps-btotal__lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ps-accent-deep);
}
.ps-btotal__sum {
  margin-left: auto; font-size: 21px; font-weight: 700; color: var(--ps-deep);
  font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.015em;
}

/* якорная навигация по разделам заявки */
.ps-pnav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 24px;
  padding: 0 36px; border-top: 1px solid var(--ps-line);
}
.ps-pnav__item {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ps-muted); text-decoration: none;
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 14px 2px 13px; cursor: pointer; transition: color .15s, border-color .15s;
}
.ps-pnav__item:hover { color: var(--ps-accent-ink); }
.ps-pnav__item.is-active { font-weight: 600; color: var(--ps-accent-deep); border-bottom-color: var(--ps-accent); }

/* тело: разделы заявки */
.ps-pbody { margin-top: 16px; padding: 8px 48px 40px; }
.ps-psec { padding-top: 28px; max-width: 860px; scroll-margin-top: 16px; }
.ps-psec__head { display: flex; align-items: center; gap: 14px; }
.ps-psec__head h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.ps-psec__rule { flex: 1; height: 1px; background: var(--ps-line); }
.ps-psec__text { margin: 14px 0 0; font-size: 14px; line-height: 1.65; color: var(--ps-muted); white-space: pre-line; }
.ps-psec__list { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ps-psec__item { display: flex; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--ps-muted); }
.ps-psec__n {
  flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  background: var(--ps-accent-soft); color: var(--ps-accent-ink);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.ps-pback { margin-top: 16px; }

/* ── новости ──────────────────────────────────────────────────────────── */
.ps-nfeat { margin-top: 24px; display: flex; overflow: hidden; color: inherit; }
.ps-nfeat:hover { color: inherit; }
.ps-nfeat__img { flex: 0 0 55%; min-height: 280px; }
.ps-nfeat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-nfeat__body { flex: 1; padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: flex-start; }
.ps-nfeat__meta { display: flex; align-items: center; gap: 12px; }
.ps-nfeat__title { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.ps-nfeat:hover .ps-nfeat__title { color: var(--ps-accent-ink); }
.ps-nfeat__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ps-accent-ink); }
.ps-nfeat__more .ps-i { width: 15px; height: 15px; }
.ps-newsgrid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ps-ncard { display: flex; flex-direction: column; overflow: hidden; color: inherit; }
.ps-ncard:hover { color: inherit; }
.ps-ncard__img { aspect-ratio: 16 / 9.5; background: var(--ps-bg); }
.ps-ncard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-ncard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.ps-ncard__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps-ncard__date { font-size: 12.5px; color: var(--ps-faint); }
.ps-ncard__title {
  font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-ncard:hover .ps-ncard__title { color: var(--ps-accent-ink); }

/* ── лендинг «О конкурсе» (главная; классы используются CMS-контентом) ── */
@keyframes psLogoSpin { 0%, 82% { transform: rotateY(0); } 92% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes psCoinFloat { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes psMoneySheen { 0%, 55% { transform: translateX(-160%) skewX(-20deg); } 80%, 100% { transform: translateX(320%) skewX(-20deg); } }
@keyframes psLineGrow { 0% { transform: scaleX(0); opacity: 1; } 2% { transform: scaleX(0); opacity: 1; } 58% { transform: scaleX(1); opacity: 1; } 92% { transform: scaleX(1); opacity: 1; } 97%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes psComet { 0%, 2% { left: calc(10% + 18px); opacity: 0; } 5% { opacity: 1; } 54% { opacity: 1; } 58%, 100% { left: calc(90% - 18px); opacity: 0; } }
/* последовательная подсветка кружков этапов (10-секундный цикл, по макету) */
@keyframes psSt1 { 0%, 2% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } 5% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1.22); } 8% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(.97); } 10%, 92% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1); } 97%, 100% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } }
@keyframes psSt2 { 0%, 16% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } 19% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1.22); } 22% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(.97); } 24%, 92% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1); } 97%, 100% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } }
@keyframes psSt3 { 0%, 30% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } 33% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1.22); } 36% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(.97); } 38%, 92% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1); } 97%, 100% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } }
@keyframes psSt4 { 0%, 44% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } 47% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1.22); } 50% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(.97); } 52%, 92% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1); } 97%, 100% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } }
@keyframes psSt5 { 0%, 58% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } 61% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1.22); } 64% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(.97); } 66%, 92% { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); transform: scale(1); } 97%, 100% { background: #fff; color: var(--ps-accent-ink); border-color: #e8d3a8; transform: scale(1); } }

.ps-lhero {
  background: linear-gradient(135deg, #fff 55%, #fbf6ea);
  border: 1px solid var(--ps-line); border-radius: 20px; box-shadow: var(--ps-shadow-sm);
  overflow: hidden; animation: psFadeUp .45s cubic-bezier(.4, 0, .2, 1) both;
}
.ps-lhero__grid { display: flex; gap: 48px; padding: 44px 48px 40px; align-items: flex-start; }
.ps-lhero__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ps-lhero__title { font-size: 42px; line-height: 1.15; letter-spacing: -.02em; max-width: 640px; }
.ps-lhero__sub { font-size: 17px; line-height: 1.6; color: var(--ps-muted); max-width: 600px; }
.ps-lhero__fund { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.ps-lhero__fund img { width: 34px; height: 38px; flex: none; object-fit: contain; animation: psLogoSpin 9s ease-in-out infinite; }
.ps-lhero__fund span { font-size: 12.5px; line-height: 1.5; color: var(--ps-faint); }
.ps-lhero__fund strong { color: var(--ps-muted); }
.ps-lhero__btns { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.ps-lfacts { flex: none; width: 320px; display: flex; flex-direction: column; gap: 10px; }
.ps-lfact {
  background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-r-md);
  padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
}
.ps-licon {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: var(--ps-accent-soft); color: var(--ps-accent-ink); display: grid; place-items: center;
}
.ps-licon .ps-i { width: 18px; height: 18px; }
.ps-lfact__lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ps-faint2); }
.ps-lfact__val { margin-top: 3px; font-size: 15px; font-weight: 600; }
.ps-lhero__panorama { position: relative; height: 180px; overflow: hidden; }
.ps-lhero__panorama img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; display: block; }
.ps-lhero__panorama::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ps-foot) 0%, rgba(253, 251, 245, 0) 34%); }
.ps-lchips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 16px 48px; background: #faf7f1; border-top: 1px solid var(--ps-line);
}

/* фото-герой: панорама во всю карточку под вуалью, контент по центру.
   Вуаль — отдельный div, а не ::before секции: контрастные схемы a11y гасят
   background-image, и заливка вуали закрывает фото, оставляя текст читаемым. */
.ps-lhero--photo { position: relative; background: var(--ps-foot); }
.ps-lhero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%; display: block;
}
.ps-lhero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(253, 251, 245, .8) 0%, rgba(253, 251, 245, .72) 45%,
    rgba(253, 251, 245, .48) 62%, rgba(253, 251, 245, .15) 80%, rgba(253, 251, 245, 0) 100%);
}
.ps-lhero__center {
  position: relative; padding: 40px 24px 34px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.ps-lhero__head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ps-lhero--photo .ps-lhero__title {
  max-width: none; font-size: 34px; font-weight: 400; letter-spacing: -.01em; color: #5c4632;
}
.ps-lhero--photo .ps-lhero__title strong { font-weight: 700; }
.ps-lhero--photo .ps-lhero__sub { max-width: 640px; color: #6b5744; text-wrap: pretty; }
.ps-lhero--photo .ps-lhero__fund { margin-top: 0; }
.ps-lhero--photo .ps-lhero__fund img { width: 50px; height: 56px; }
.ps-lhero__fundname { text-align: left; line-height: 1.18; }
.ps-lhero__fundname span {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ps-faint);
}
.ps-lhero__fundname b {
  display: block; font-size: 18px; font-weight: 800; letter-spacing: .01em;
  text-transform: uppercase; color: var(--ps-ink);
}
/* полоса фото ниже контента: её высота и есть «панорама» фото-героя */
.ps-lhero__reveal { position: relative; height: 170px; }
html[data-img="off"] .ps-lhero__reveal, html[data-scheme] .ps-lhero__reveal { display: none; }
html[data-scheme] .ps-mf-ticker, html[data-scheme] .ps-mf-step-panel__ghost { display: none; }
.ps-lhero--photo .ps-lchips { position: relative; }
/* активный чип-якорь лендинга — мягкая плашка макета, а не заливка фильтров */
.ps-lchips .ps-chip.is-active {
  font-weight: 600; color: var(--ps-accent-deep);
  background: var(--ps-accent-soft); border-color: #e8d3a8;
}

.ps-lsection {
  margin-top: 24px; background: var(--ps-card); border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-lg); box-shadow: var(--ps-shadow-sm);
  padding: 36px 48px 44px; animation: psFadeUp .5s cubic-bezier(.4, 0, .2, 1) .06s both;
}
.ps-lsection--flush { padding: 0; overflow: hidden; }

.ps-lgeo { display: flex; align-items: stretch; gap: 24px; }
.ps-lgeo__text { flex: 1; min-width: 0; padding: 36px 8px 40px 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ps-lgeo__place { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.ps-lgeo__map { flex: none; width: 46%; position: relative; min-height: 320px; overflow: hidden; }
.ps-lgeo__map img { position: absolute; inset: 4% 3%; width: 94%; height: 92%; object-fit: contain; }
.ps-ltext { font-size: 15px; line-height: 1.65; color: #42464c; max-width: 820px; text-wrap: pretty; }

.ps-lchecks { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ps-lchecks li { display: flex; gap: 14px; font-size: 15px; line-height: 1.6; color: #42464c; }
.ps-lchecks .ps-lcheck {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--ps-accent-soft); color: var(--ps-accent-ink); display: grid; place-items: center;
}
.ps-lchecks .ps-lcheck .ps-i { width: 12px; height: 12px; stroke-width: 2.4; }

.ps-lmoney {
  margin-top: 24px; position: relative; overflow: hidden;
  background: linear-gradient(115deg, #fdf9f0 0%, #f9efdb 55%, #f3e3c0 100%);
  border: 1px solid #e7dcc4; border-radius: var(--ps-r-xl); padding: 40px 44px;
  display: flex; gap: 36px; align-items: center; flex-wrap: wrap;
}
.ps-lmoney__coin {
  position: absolute; right: -30px; bottom: -58px; font-size: 250px; font-weight: 800;
  color: rgba(201, 164, 92, .13); line-height: 1; pointer-events: none; user-select: none;
  animation: psCoinFloat 7s ease-in-out infinite;
}
.ps-lmoney__sheen {
  position: absolute; top: 0; left: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: psMoneySheen 5.5s ease-in-out infinite; pointer-events: none;
}
.ps-lmoney__sum { position: relative; flex: none; display: flex; flex-direction: column; gap: 6px; }
.ps-lmoney__row { display: flex; align-items: baseline; gap: 14px; }
.ps-lmoney__pre { font-size: 26px; font-weight: 600; color: var(--ps-accent-deep); }
.ps-lmoney__num {
  font-size: 72px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(100deg, #8c5f20, #b3822e 45%, #c9a45c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ps-lmoney__cur { font-size: 44px; font-weight: 800; color: var(--ps-accent-strong); line-height: 1; }
.ps-lmoney__note { font-size: 14.5px; font-weight: 500; color: #8a7a58; padding-left: 2px; }
.ps-lmoney__points { position: relative; flex: 1; min-width: 280px; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.ps-lmoney__point { display: flex; align-items: flex-start; gap: 14px; }
.ps-lmoney__picon {
  flex: none; width: 34px; height: 34px; border-radius: var(--ps-r-sm);
  background: rgba(255, 255, 255, .65); border: 1px solid #e7dcc4;
  display: flex; align-items: center; justify-content: center; color: var(--ps-accent-strong);
}
.ps-lmoney__picon .ps-i { width: 17px; height: 17px; }
.ps-lmoney__ptitle { font-size: 15px; font-weight: 650; color: #42464c; line-height: 1.4; }
.ps-lmoney__ptext { font-size: 13.5px; line-height: 1.55; color: #8a7a58; text-wrap: pretty; margin-top: 3px; }
.ps-lmoney__sep { height: 1px; background: #e7dcc4; margin-left: 48px; }

.ps-lstages { margin-top: 32px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.ps-lstages__track { position: absolute; left: calc(10% + 18px); right: calc(10% + 18px); top: 17px; height: 2px; background: var(--ps-line); }
.ps-lstages__progress {
  position: absolute; left: calc(10% + 18px); right: calc(10% + 18px); top: 17px; height: 2px;
  background: linear-gradient(90deg, #c9a45c, #d4b984);
  transform-origin: left; transform: scaleX(0); animation: psLineGrow 10s linear infinite;
}
.ps-lstages__comet {
  position: absolute; top: 18px; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--ps-accent); box-shadow: 0 0 10px 3px rgba(201, 164, 92, .5);
  opacity: 0; animation: psComet 10s linear infinite; pointer-events: none;
}
.ps-lstage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 10px; }
.ps-lstage__n {
  width: 36px; height: 36px; border-radius: 50%; box-sizing: border-box;
  background: #fff; color: var(--ps-accent-ink); border: 2px solid #e8d3a8;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; position: relative; z-index: 1;
}
.ps-lstage--1 .ps-lstage__n { animation: psSt1 10s linear infinite; }
.ps-lstage--2 .ps-lstage__n { animation: psSt2 10s linear infinite; }
.ps-lstage--3 .ps-lstage__n { animation: psSt3 10s linear infinite; }
.ps-lstage--4 .ps-lstage__n { animation: psSt4 10s linear infinite; }
.ps-lstage--5 .ps-lstage__n { animation: psSt5 10s linear infinite; }
.ps-lstage__title { font-size: 14.5px; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.ps-lstage__date { margin-top: 5px; font-size: 13px; line-height: 1.45; color: var(--ps-faint); }

.ps-ldirs { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 40px; }
.ps-ldir { display: flex; flex-direction: column; gap: 9px; }
.ps-ldir--sep { padding-top: 16px; border-top: 1px solid var(--ps-line); }
.ps-ldir__head { display: flex; align-items: center; gap: 11px; }
.ps-ldir__head .ps-licon { width: 30px; height: 30px; border-radius: 9px; }
.ps-ldir__head .ps-licon .ps-i { width: 16px; height: 16px; }
.ps-ldir__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.ps-ldir__desc { font-size: 13px; line-height: 1.55; color: #6e6960; text-wrap: pretty; }

.ps-ldocs { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.ps-ldoc {
  display: flex; align-items: center; gap: 16px;
  background: #faf9f6; border: 1px solid #f0ede6; border-radius: var(--ps-r-md);
  padding: 16px 20px; color: var(--ps-ink); transition: all .15s;
}
.ps-ldoc:hover { border-color: #dcc394; background: #fff; color: var(--ps-ink); box-shadow: 0 6px 18px rgba(42, 36, 22, .07); }
.ps-ldoc__ext {
  flex: none; width: 40px; height: 40px; border-radius: 11px; color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  background: var(--ps-neutral-ink);
}
.ps-ldoc__title { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.ps-ldoc__meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ps-faint2); }
.ps-ldoc .ps-i { color: var(--ps-accent-ink); width: 17px; height: 17px; stroke-width: 1.9; }

.ps-lcta {
  position: relative; margin-top: 24px; border: 1px solid #e2cf9f; border-radius: var(--ps-r-lg);
  overflow: hidden; min-height: 260px; display: flex; align-items: center;
  animation: psFadeUp .5s cubic-bezier(.4, 0, .2, 1) .1s both;
}
.ps-lcta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.ps-lcta__grad { position: absolute; inset: 0; background: linear-gradient(95deg, #f5edd6 0%, #f5edd6 40%, rgba(245, 237, 214, .72) 58%, rgba(245, 237, 214, 0) 82%); }
.ps-lcta__box { position: relative; padding: 40px 48px; max-width: 54%; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ps-lcta--photo { background: var(--ps-foot); }
.ps-lcta--photo .ps-lcta__img { object-fit: contain; object-position: right center; }
.ps-lcta--photo .ps-lcta__grad {
  background: linear-gradient(90deg, var(--ps-foot) 0%, var(--ps-foot) 60%, rgba(253, 251, 245, 0) 78%);
}
.ps-lcta__title { font-size: 22px; letter-spacing: -.01em; color: #241d0e; }
.ps-lcta__sub { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: #5f5230; max-width: 520px; text-wrap: pretty; }

/* ── карточки конкурсов (главная-fallback, /competitions) ─────────────── */
.ps-ccards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ps-ccard { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ps-ccard__title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.ps-ccard__title a { color: inherit; }
.ps-ccard__title a:hover { color: var(--ps-accent-ink); }
.ps-ccard__sub { font-size: 13.5px; color: var(--ps-muted2); line-height: 1.5; }
.ps-ccard__meta { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ps-muted); }

/* ── лендинг Международного фонда (главная mpf; классы используются CMS-контентом, DSDC-829) ── */
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/golos-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@keyframes psMfDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes psMfRing { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes psMfPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes psMfPanelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.ps-mf {
  --mf-ink: #14171c;
  --mf-muted: #5a6069;
  --mf-muted2: #6e747c;
  --mf-faint: #9aa0a8;
  --mf-faint2: #b8bdc4;
  --mf-gold: #8a6533;
  --mf-gold-2: #b98e51;
  --mf-gold-3: #c9a06a;
  --mf-gold-4: #e2c9a3;
  --mf-bg: #f7f5f1;
  --mf-paper: #fbfaf7;
  --mf-sand: #f2efe9;
  --mf-night: #101317;
  --mf-cream: #f5f1ea;
  --mf-line: rgba(20, 23, 28, .12);
  --mf-line-night: rgba(245, 241, 234, .12);
  --mf-r: clamp(20px, 2.2vw, 32px);
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--mf-ink);
  overflow-x: clip;
  overflow-wrap: break-word;
}
.ps-mf-question {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px;
  border-radius: 999px; background: var(--mf-ink); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 14px 36px rgba(20, 23, 28, .28);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s ease;
}
.ps-mf-question:hover { transform: translateY(-2px); background: #2a2f36; color: #fff; }
.ps-mf-question__mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--mf-gold-3), var(--mf-gold-4));
  font-size: 15px; font-weight: 800; color: var(--mf-ink);
}
body:has(.ps-mf-question) .ps-totop { right: clamp(16px, 2.4vw, 32px); bottom: calc(clamp(16px, 2.4vw, 32px) + 68px); }
body:has(.ps-mf-question) .ps-footer__bottom { padding-bottom: calc(clamp(16px, 2.4vw, 32px) + 100px); }
html[data-scheme] .ps-mf-question { border: 2px solid currentColor !important; }
@supports not selector(:has(*)) {
  .ps-mf-question { right: calc(clamp(16px, 2.4vw, 32px) + 60px); }
}
@media print {
  .ps-mf-question { display: none; }
}
.ps-mf-gold {
  color: transparent;
  background: linear-gradient(100deg, var(--mf-gold-2), var(--mf-gold-4) 60%, var(--mf-gold-2));
  -webkit-background-clip: text; background-clip: text;
  padding-right: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ps-mf-section { padding: clamp(72px, 9vw, 140px) clamp(20px, 4vw, 72px); }
.ps-mf-inner { position: relative; max-width: 1360px; margin: 0 auto; }
.ps-mf-section--night { position: relative; overflow: hidden; background: var(--mf-night); color: var(--mf-cream); }
.ps-mf-section--night::before, .ps-mf-section--night::after { content: ""; position: absolute; pointer-events: none; }
.ps-mf-section--night::before {
  inset: 0;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(201, 160, 106, .22), rgba(16, 19, 23, 0) 70%),
    radial-gradient(45% 40% at 10% 100%, rgba(201, 160, 106, .1), rgba(16, 19, 23, 0) 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
}
.ps-mf-section--night::after {
  left: 50%; top: -460px; width: 1350px; height: 1350px; margin-left: -675px; border-radius: 50%;
  border: 1px dashed rgba(201, 160, 106, .1); animation: psMfRing 160s linear infinite;
}
.ps-mf-remind::before {
  background:
    radial-gradient(55% 60% at 15% 0%, rgba(201, 160, 106, .2), rgba(16, 19, 23, 0) 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 96px 96px, 96px 96px;
}
.ps-mf-remind::after { left: auto; right: -14%; top: 50%; width: 820px; height: 820px; margin: -410px 0 0; border-color: rgba(201, 160, 106, .14); animation-duration: 140s; }
.ps-mf-h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.038em; text-wrap: balance; }
.ps-mf-sechead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.ps-mf-eyebrow, .ps-mf-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--mf-muted2); }
.ps-mf-label { font-size: 10.5px; }
.ps-mf-eyebrow--gold, .ps-mf-label--gold { color: var(--mf-gold); }
.ps-mf-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: clamp(18px, 2.2vw, 28px); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--mf-gold); }
.ps-mf-kicker--muted { color: var(--mf-muted2); }
.ps-mf-kicker__flag { flex: none; width: 18px; height: 11px; border-radius: 2px 5px 2px 5px; background: var(--mf-gold-3); transform: skewX(-16deg); }

/* кнопки лендинга */
.ps-mf .ps-mf-btn { padding: 17px 30px; font-size: 16px; border-radius: 14px; gap: 10px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background .3s ease, border-color .3s ease, color .15s; }
.ps-mf .ps-mf-btn:hover { transform: translateY(-2px); }
.ps-mf .ps-mf-btn .ps-i { width: 17px; height: 17px; }
.ps-mf .ps-mf-btn--ghost { border-color: rgba(245, 241, 234, .28); background: rgba(245, 241, 234, .04); color: var(--mf-cream); }
.ps-mf .ps-mf-btn--ghost:hover { border-color: rgba(226, 201, 163, .7); background: rgba(245, 241, 234, .09); color: var(--mf-cream); }
.ps-mf .ps-mf-btn--wide { width: 100%; min-height: 58px; }

/* герой: карточка с фото, бегущие строки по краям */
.ps-mf-hero { padding: 0 clamp(14px, 3vw, 40px) clamp(28px, 4vw, 56px); }
.ps-mf-hero__card {
  position: relative; max-width: 1440px; margin: 0 auto; min-height: min(78vh, 760px); overflow: hidden;
  border-radius: var(--mf-r); border: 1px solid rgba(20, 23, 28, .06);
  background: linear-gradient(120deg, #f6eada 0%, #f3eee4 45%, #efe6d6 100%);
  display: flex; align-items: center; padding: clamp(96px, 11vw, 150px) clamp(24px, 4vw, 72px);
}
.ps-mf-ticker {
  position: absolute; left: 0; width: 100%; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ps-mf-ticker--top { top: clamp(22px, 3vw, 44px); }
.ps-mf-ticker--bot { bottom: clamp(14px, 2.4vw, 34px); }
.ps-mf-ticker__track { display: flex; width: max-content; white-space: nowrap; font-weight: 800; animation: psMfDrift 78s linear infinite; }
.ps-mf-ticker--top .ps-mf-ticker__track {
  font-size: clamp(42px, 5.4vw, 94px); letter-spacing: -.04em; line-height: 1.3;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 160, 106, .3);
}
.ps-mf-ticker--bot .ps-mf-ticker__track { font-size: clamp(34px, 4.2vw, 72px); letter-spacing: -.03em; line-height: 1.28; animation-duration: 64s; }
.ps-mf-ticker--bot .ps-mf-ticker__track > span {
  color: transparent; opacity: .55;
  background: linear-gradient(100deg, var(--mf-gold-2), var(--mf-gold-4) 55%, var(--mf-gold-2));
  -webkit-background-clip: text; background-clip: text;
}
.ps-mf-hero__photo { position: absolute; right: 0; top: 0; bottom: 0; width: min(50%, 720px); pointer-events: none; }
.ps-mf-hero__photo img {
  position: absolute; right: 0; bottom: 0; top: clamp(28px, 5vh, 60px); width: 100%; height: calc(100% - clamp(28px, 5vh, 60px));
  object-fit: contain; object-position: right bottom; display: block;
}
.ps-mf-hero__body { position: relative; width: 100%; max-width: 1300px; margin: 0 auto; padding-right: min(44%, 620px); }
.ps-mf-hero__title { max-width: 12em; font-size: clamp(44px, 6.4vw, 104px); line-height: .98; font-weight: 800; letter-spacing: -.042em; text-wrap: balance; }
.ps-mf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vh, 40px); }

/* конкурс: миссия, отсчет, таймлайн */
.ps-mf-call__title { font-size: clamp(40px, 5.4vw, 88px); line-height: .96; font-weight: 800; letter-spacing: -.045em; max-width: 14em; }
.ps-mf-call__title .ps-mf-gold { background-image: linear-gradient(100deg, #e7cda4 0%, var(--mf-gold-3) 45%, #e7cda4 100%); }
.ps-mf-call__lead { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 5vw, 88px); margin-top: clamp(28px, 3.4vw, 48px); }
.ps-mf-call__mission { max-width: 32em; font-size: clamp(16px, 1.35vw, 19.5px); line-height: 1.6; color: rgba(245, 241, 234, .72); text-wrap: pretty; }
.ps-mf-call__mission strong { color: var(--mf-cream); font-weight: 700; }
.ps-mf-call__mission em { font-style: normal; font-weight: 600; color: #e7cda4; }
.ps-mf-call__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ps-mf-cdwrap { margin-top: clamp(56px, 7vw, 110px); padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--mf-line-night); }
.ps-mf-cd {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(18px, 3vw, 48px); margin-top: clamp(18px, 2.4vw, 30px);
  font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-size: clamp(64px, 10.5vw, 168px);
}
.ps-mf-cd__cell { display: flex; flex-direction: column; gap: 14px; }
.ps-mf-cd__cell--accent { color: var(--mf-gold-3); }
.ps-mf-cd__num { display: block; }
.ps-mf-cd__lbl { font-size: 11px; font-weight: 700; letter-spacing: .18em; line-height: 1; color: rgba(245, 241, 234, .5); }
.ps-mf-cd__sep { padding-bottom: .34em; color: rgba(201, 160, 106, .5); font-weight: 300; }
.ps-mf-timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px;
  margin-top: clamp(40px, 5vw, 72px); border: 1px solid var(--mf-line-night); border-radius: clamp(16px, 1.8vw, 24px); overflow: hidden;
}
.ps-mf-timeline__item { padding: clamp(22px, 2.4vw, 32px); box-shadow: 0 0 0 1px var(--mf-line-night); transition: background .3s ease; }
.ps-mf-timeline__item:hover { background: #161a1f; }
.ps-mf-timeline__lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: rgba(245, 241, 234, .5); }
.ps-mf-timeline__date { margin-top: 14px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.ps-mf-timeline__note { margin-top: 8px; font-size: 14px; color: rgba(245, 241, 234, .55); }
.ps-mf-timeline__lbl + .ps-mf-timeline__note { margin-top: 14px; }
.ps-mf-timeline__note + .ps-mf-timeline__date { margin-top: 4px; }
.ps-mf-timeline__item--accent .ps-mf-timeline__lbl { color: var(--mf-gold-3); }
.ps-mf-timeline__item--accent .ps-mf-timeline__date { color: var(--mf-gold-4); }

/* направления: вкладки и панели */
.ps-mf-dirs { background: #fff; }
.ps-mf-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--mf-line); }
.ps-mf-tab {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; text-align: left;
  padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px) clamp(22px, 2.6vw, 34px) 0; margin-right: clamp(16px, 2vw, 28px);
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--mf-faint); transition: color .4s ease;
}
.ps-mf-tab::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--mf-gold-3);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.ps-mf-tab:focus-visible { outline: 2px solid var(--mf-gold-3); outline-offset: -2px; }
.ps-mf-tab[aria-selected="true"] { color: var(--mf-gold); }
.ps-mf-tab[aria-selected="true"]::before { transform: scaleX(1); }
.ps-mf-tab__num { font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.9; font-variant-numeric: tabular-nums; color: var(--mf-faint2); transition: color .4s ease; }
.ps-mf-tab[aria-selected="true"] .ps-mf-tab__num { color: var(--mf-gold); }
.ps-mf-tab__title { display: block; font-size: clamp(17px, 1.6vw, 23px); font-weight: 700; letter-spacing: -.028em; line-height: 1.15; text-wrap: balance; }
.ps-mf-tab__who { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--mf-faint2); transition: color .4s ease; }
.ps-mf-tab[aria-selected="true"] .ps-mf-tab__who { color: var(--mf-muted2); }
.ps-mf-panels {
  position: relative; margin-top: clamp(20px, 2.4vw, 36px); border-radius: var(--mf-r);
  background: #fff; border: 1px solid rgba(20, 23, 28, .1); box-shadow: 0 30px 80px rgba(20, 23, 28, .07); overflow: hidden;
}
.ps-mf-panels::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 0% 0%, rgba(201, 160, 106, .12), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.ps-mf-panel {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 4vw, 72px); padding: clamp(30px, 3.8vw, 60px); animation: psMfPanelIn .5s ease both;
}
.ps-mf-panel__main { display: flex; flex-direction: column; }
.ps-mf-panel__aside { min-width: 0; }
.ps-mf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.ps-mf-meta__key { color: var(--mf-gold); }
.ps-mf-meta__sep { width: 1px; height: 12px; background: rgba(20, 23, 28, .2); }
.ps-mf-meta__val { color: #41474f; letter-spacing: .1em; }
.ps-mf-panel__title { margin-top: 22px; font-size: clamp(34px, 4vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: .98; text-wrap: balance; color: var(--mf-gold); }
.ps-mf-panel__lead { margin-top: clamp(22px, 2.6vw, 34px); max-width: 26em; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; font-weight: 500; letter-spacing: -.012em; text-wrap: pretty; }
.ps-mf-panel__foot { margin-top: auto; padding-top: clamp(32px, 4vw, 56px); }
.ps-mf-grants { padding-top: 22px; border-top: 1px solid rgba(201, 160, 106, .4); }
.ps-mf-grants__list { display: flex; flex-wrap: wrap; gap: clamp(28px, 3.6vw, 60px); margin-top: 16px; }
.ps-mf-grant { display: flex; flex-direction: column; gap: 14px; }
.ps-mf-grant__who { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--mf-gold); }
.ps-mf-grant__sum { display: flex; align-items: baseline; gap: 8px; }
.ps-mf-grant__pre { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; color: var(--mf-gold); }
.ps-mf-grant__num { font-size: clamp(64px, 7vw, 104px); line-height: 1; font-weight: 800; letter-spacing: -.06em; padding: 0 .08em .06em .04em; }
.ps-mf-grant__cur { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.ps-mf-panel__official { margin-top: 14px; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.55; letter-spacing: -.01em; text-wrap: pretty; }
.ps-mf-panel__eg { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(201, 160, 106, .35); }
.ps-mf-niches { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; letter-spacing: -.02em; text-wrap: pretty; }
.ps-mf-niche { line-height: 1.2; }
.ps-mf-niche__t { font-size: 22px; font-weight: 700; line-height: 1.12; }
.ps-mf-niche:nth-child(5n+1) .ps-mf-niche__t { font-size: 30px; font-weight: 800; }
.ps-mf-niche:nth-child(5n+2) .ps-mf-niche__t { font-size: 24px; }
.ps-mf-niche:nth-child(5n+4) .ps-mf-niche__t { font-size: 26px; font-weight: 800; }
.ps-mf-niche:nth-child(5n) .ps-mf-niche__t { font-size: 23px; }
.ps-mf-niche__d { font-size: 16px; line-height: 1.45; color: var(--mf-gold); }
.ps-mf-niches__more { margin-top: 14px; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--mf-faint2); }

/* о фонде: линия преемственности и счетчики */
.ps-mf-about { background: var(--mf-sand); border-top: 1px solid rgba(20, 23, 28, .08); }
.ps-mf-about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(36px, 5vw, 88px); align-items: start; }
.ps-mf-about__text { margin-top: 20px; max-width: 34em; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.62; color: #41474f; text-wrap: pretty; }
.ps-mf-h2 + .ps-mf-about__text { margin-top: clamp(24px, 3vw, 38px); }
.ps-mf-line { margin-top: clamp(34px, 4vw, 54px); max-width: 520px; }
.ps-mf-line__ends { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 16px; }
.ps-mf-line__end--right { text-align: right; }
.ps-mf-line__year { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--mf-muted2); }
.ps-mf-line__end--right .ps-mf-line__year { color: var(--mf-gold); }
.ps-mf-line__name { margin-top: 7px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.ps-mf-line__track { position: relative; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--mf-gold-3), var(--mf-gold)); }
.ps-mf-line__track::after {
  content: ""; position: absolute; top: 50%; right: 0; width: 9px; height: 9px; margin: -4.5px -4.5px 0 0; border-radius: 50%;
  background: var(--mf-gold); box-shadow: 0 0 0 5px rgba(201, 160, 106, .2);
}
.ps-mf-about__link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: clamp(30px, 3.4vw, 44px); padding-bottom: 6px;
  border-bottom: 1px solid rgba(201, 160, 106, .55); font-size: 16px; font-weight: 600; color: var(--mf-gold);
}
.ps-mf-about__link:hover { color: var(--mf-gold-2); border-bottom-color: var(--mf-gold-2); }
.ps-mf-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  background: rgba(20, 23, 28, .1); border: 1px solid rgba(20, 23, 28, .1); border-radius: clamp(16px, 1.8vw, 24px);
}
.ps-mf-stat { background: var(--mf-paper); padding: clamp(24px, 2.8vw, 40px); }
.ps-mf-stat__num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: clamp(38px, 4.4vw, 62px); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; font-variant-numeric: tabular-nums; }
.ps-mf-stat__unit { font-size: clamp(17px, 1.6vw, 23px); font-weight: 700; letter-spacing: -.02em; color: var(--mf-gold); }
.ps-mf-stat__text { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--mf-muted); text-wrap: pretty; }
.ps-mf-about__source { margin-top: 16px; font-size: 12px; color: var(--mf-muted2); }

/* пять шагов: шкала с точками и панель активного шага */
.ps-mf-apply { background: var(--mf-bg); }
.ps-mf-apply .ps-mf-sechead { margin-bottom: clamp(40px, 5vw, 72px); }
.ps-mf-steps { position: relative; }
.ps-mf-steps__nav { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 20px); }
.ps-mf-steps__nav::before, .ps-mf-steps__nav::after { content: ""; position: absolute; left: 18px; top: 18px; height: 2px; }
.ps-mf-steps__nav::before { right: 18px; background: var(--mf-line); }
.ps-mf-steps__nav::after { width: 0; background: linear-gradient(90deg, var(--mf-gold), var(--mf-gold-3)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.ps-mf-steps[data-step="2"] .ps-mf-steps__nav::after { width: calc(25% - 9px); }
.ps-mf-steps[data-step="3"] .ps-mf-steps__nav::after { width: calc(50% - 18px); }
.ps-mf-steps[data-step="4"] .ps-mf-steps__nav::after { width: calc(75% - 27px); }
.ps-mf-steps[data-step="5"] .ps-mf-steps__nav::after { width: calc(100% - 36px); }
.ps-mf-step { display: block; text-align: left; background: none; border: 0; padding: 0 clamp(4px, 1vw, 16px) 0 0; cursor: pointer; font: inherit; color: inherit; }
.ps-mf-step:focus-visible { outline: 2px solid var(--mf-gold-3); outline-offset: 4px; border-radius: 8px; }
.ps-mf-step__dot {
  position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; background: #fff; color: var(--mf-faint); border: 1px solid rgba(20, 23, 28, .16);
  box-shadow: 0 0 0 6px var(--mf-bg); transition: background .35s ease, color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.ps-mf-step.is-done .ps-mf-step__dot { background: #efe3d0; color: var(--mf-gold); border-color: rgba(201, 160, 106, .5); }
.ps-mf-step[aria-selected="true"] .ps-mf-step__dot {
  background: var(--mf-gold); color: #fff; border-color: var(--mf-gold); transform: scale(1.08);
  box-shadow: 0 0 0 6px var(--mf-bg), 0 0 22px 6px rgba(201, 160, 106, .35);
}
.ps-mf-step__when { display: block; margin-top: 22px; font-size: 10.5px; font-weight: 700; letter-spacing: .13em; color: #8e949c; transition: color .35s ease; }
.ps-mf-step__title { display: block; margin-top: 8px; font-size: clamp(15px, 1.3vw, 19px); font-weight: 700; letter-spacing: -.022em; line-height: 1.2; color: #8e949c; transition: color .35s ease; text-wrap: balance; }
.ps-mf-step[aria-selected="true"] .ps-mf-step__when { color: var(--mf-gold); }
.ps-mf-step[aria-selected="true"] .ps-mf-step__title { color: var(--mf-ink); }
.ps-mf-steps__next {
  display: none; align-items: center; justify-content: center; gap: 10px; width: max-content; min-height: 44px; padding: 0 18px; margin-top: 16px;
  border: 1px solid rgba(201, 160, 106, .42); border-radius: var(--ps-pill); background: rgba(201, 160, 106, .08);
  font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--mf-gold); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ps-mf-steps__next:active { background: rgba(201, 160, 106, .2); }
.ps-mf-steps__next .ps-i { width: 14px; height: 14px; }
.ps-mf-steps .ps-mf-panels { margin-top: clamp(32px, 4vw, 56px); }
.ps-mf-step-panel { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); animation: psMfPanelIn .45s ease both; }
.ps-mf-step-panel__main {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 56px);
  background: linear-gradient(160deg, #f7f1e6 0%, var(--mf-bg) 60%);
}
.ps-mf-step-panel__main > :not(.ps-mf-step-panel__ghost) { position: relative; }
.ps-mf-step-panel__ghost {
  position: absolute; right: clamp(14px, 1.6vw, 28px); bottom: clamp(10px, 1.4vw, 22px);
  font-size: clamp(110px, 11vw, 190px); line-height: 1; font-weight: 800; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(201, 160, 106, .32); pointer-events: none; user-select: none;
}
.ps-mf-step-panel__title { margin-top: 22px; font-size: clamp(32px, 3.8vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: .98; max-width: 12em; text-wrap: balance; color: var(--mf-gold); }
.ps-mf-step-panel__body { margin-top: 20px; max-width: 26em; font-size: clamp(16px, 1.35vw, 19.5px); line-height: 1.5; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }
.ps-mf-step-panel__cta { margin-top: auto; padding-top: clamp(36px, 4vw, 64px); }
.ps-mf-step-panel__list { display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 56px); }
.ps-mf-step-panel__listhead { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: var(--mf-muted2); }
.ps-mf-checklist { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(20, 23, 28, .1); }
.ps-mf-checklist li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid rgba(20, 23, 28, .1);
  font-size: clamp(16px, 1.3vw, 18.5px); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; transition: transform .3s ease;
}
.ps-mf-checklist li:hover { transform: translateX(6px); }
.ps-mf-checklist__n { font-size: 12px; font-weight: 700; color: var(--mf-gold); }

/* принципы */
.ps-mf-principles { background: #fff; padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 72px); }
.ps-mf-principles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(32px, 5vw, 96px); align-items: start; }
.ps-mf-principles__aside { position: sticky; top: clamp(96px, 12vh, 140px); }
.ps-mf-principles__sub { margin-top: clamp(20px, 2.4vw, 30px); max-width: 26em; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; color: var(--mf-muted); text-wrap: pretty; }
.ps-mf-principles__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(20, 23, 28, .14); }
.ps-mf-principle {
  display: grid; grid-template-columns: clamp(56px, 6vw, 90px) minmax(0, 1fr); gap: clamp(14px, 2vw, 32px); align-items: start;
  padding: clamp(26px, 3vw, 44px) 0; border-bottom: 1px solid rgba(20, 23, 28, .14);
}
.ps-mf-principle__n { font-size: clamp(36px, 4vw, 60px); line-height: 1.06; padding-bottom: .04em; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; background-image: linear-gradient(160deg, var(--mf-gold-2), var(--mf-gold-4)); }
.ps-mf-principle__title { font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.ps-mf-principle__body { margin-top: 12px; max-width: 32em; font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.55; color: var(--mf-muted); text-wrap: pretty; }

/* напомнить о старте */
.ps-mf-remind__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 4.5vw, 80px); align-items: center; }
.ps-mf-live {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 11px; border-radius: var(--ps-pill);
  border: 1px solid rgba(201, 160, 106, .35); background: rgba(201, 160, 106, .08);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--mf-gold-4);
}
.ps-mf-live__dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mf-gold-3); }
.ps-mf-live__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(201, 160, 106, .8); animation: psMfPulse 2.2s ease-out infinite; }
.ps-mf-remind__title { margin-top: 22px; font-size: clamp(32px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.ps-mf-remind__line { white-space: nowrap; }
.ps-mf-remind__text { margin-top: clamp(22px, 2.6vw, 32px); max-width: 30em; font-size: clamp(16px, 1.35vw, 19.5px); line-height: 1.6; color: rgba(245, 241, 234, .72); text-wrap: pretty; }
.ps-mf-remind__text a { color: var(--mf-gold-4); font-weight: 600; border-bottom: 1px solid rgba(201, 160, 106, .5); transition: border-color .3s ease; }
.ps-mf-remind__text a:hover { color: var(--mf-gold-4); border-bottom-color: var(--mf-gold-4); }
.ps-mf-remind__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 26px); padding: clamp(28px, 3.2vw, 46px);
  border: 1px solid rgba(201, 160, 106, .26); border-radius: clamp(20px, 2.2vw, 28px);
  background: linear-gradient(158deg, rgba(201, 160, 106, .12) 0%, rgba(245, 241, 234, .035) 52%, rgba(245, 241, 234, .02) 100%);
}
.ps-mf-remind__card::before {
  content: ""; position: absolute; right: -70px; top: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 160, 106, .2), rgba(201, 160, 106, 0) 70%); pointer-events: none;
}
.ps-mf-remind__card > * { position: relative; }
.ps-mf-remind__cardtext { font-size: clamp(18px, 1.65vw, 24px); line-height: 1.4; font-weight: 600; letter-spacing: -.022em; max-width: 19em; text-wrap: pretty; }

@media (max-width: 768px) {
  .ps-mf-hero { padding: 0 8px 24px; }
  .ps-mf-hero__card { flex-direction: column; align-items: stretch; min-height: 0; padding: 84px 20px 0; }
  .ps-mf-hero__body { order: 1; padding-right: 0; }
  .ps-mf-hero__title { font-size: 40px; }
  .ps-mf-hero__photo { order: 2; position: relative; width: calc(100% + 40px); margin: 22px -20px 0; height: min(80vw, 420px); }
  .ps-mf-hero__photo img { top: 0; height: 100%; }
  .ps-mf-ticker--top .ps-mf-ticker__track { font-size: 34px; }
  .ps-mf-ticker--bot .ps-mf-ticker__track { font-size: 26px; }
  .ps-mf-section--night::after { display: none; }
  .ps-mf-cd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; font-size: clamp(46px, 16vw, 84px); align-items: start; }
  .ps-mf-cd__sep { display: none; }
  .ps-mf-tabs { grid-template-columns: 1fr; }
  .ps-mf-tab { margin-right: 0; padding: 18px 0 20px; border-bottom: 1px solid var(--mf-line); }
  .ps-mf-panel__title, .ps-mf-step-panel__title { font-size: clamp(23px, 7.4vw, 30px); }
  .ps-mf-grant__num { font-size: 64px; }
  .ps-mf-stats { grid-template-columns: 1fr; }
  .ps-mf-steps__nav {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 10px calc(36vw - 6px) 4px 12px; margin-left: -12px; scroll-padding-left: 12px; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 82%, rgba(0, 0, 0, .15) 100%); -webkit-mask-image: linear-gradient(90deg, #000 82%, rgba(0, 0, 0, .15) 100%);
  }
  .ps-mf-steps__nav::-webkit-scrollbar { display: none; }
  .ps-mf-steps__nav::before, .ps-mf-steps__nav::after { display: none; }
  .ps-mf-step { flex: 0 0 calc(80vw - 26px); scroll-snap-align: start; padding-right: 0; }
  .ps-mf-steps__next { display: inline-flex; }
  .ps-mf-principles__aside { position: static; }
  .ps-mf-remind__line { white-space: normal; }
}

/* ── доступность/движение ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html, body { scroll-behavior: auto; }
}

/* ── мобильная версия ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ps-a11y__btnlabel { display: none; }
  .ps-hbtn { padding: 10px 12px; }
  .ps-hbtn--services { display: none; }
  .ps-profile__name, .ps-profile__role { display: none; }
  .ps-profile__btn { padding: 5px 10px 5px 5px; gap: 6px; }
  .ps-header__inner { flex-wrap: wrap; padding: 12px 16px; gap: 10px 12px; }
  .ps-header__actions { gap: 8px; }
  .ps-lang { padding: 3px; }
  .ps-lang__item { min-width: 0; padding: 5px 7px; font-size: 12px; }
  .ps-a11y__pop { position: fixed; top: 70px; right: 12px; left: auto; width: min(360px, calc(100vw - 24px)); }
  .ps-a11y__round { width: 36px; height: 36px; }
  .ps-services__pop { width: calc(100vw - 24px); padding: 18px 16px; border-radius: var(--ps-r-lg); }
  .ps-services__grid { grid-template-columns: 1fr; }
  .ps-nav {
    padding: 0 16px; gap: 18px; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .ps-nav::-webkit-scrollbar { display: none; }
  .ps-nav a { flex: none; font-size: 14px; padding: 12px 0; }
  .ps-main { padding: 24px 0 56px; }
  .ps-container { padding: 0 16px; }
  .ps-h1 { font-size: 26px; }
  .ps-titlerow .ps-chips {
    margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none;
  }
  .ps-titlerow .ps-chips::-webkit-scrollbar { display: none; }
  .ps-titlerow .ps-chip { flex: none; }
  .ps-ccards { grid-template-columns: 1fr; }
  .ps-lhero__grid { flex-direction: column; gap: 26px; padding: 28px 20px 24px; }
  .ps-lhero__title { font-size: 30px; }
  .ps-lfacts { width: 100%; }
  .ps-lhero__panorama { height: 120px; }
  .ps-lhero__center { padding: 26px 20px 24px; gap: 18px; }
  .ps-lhero--photo .ps-lhero__title { font-size: 27px; }
  .ps-lhero--photo .ps-lhero__sub { font-size: 15.5px; }
  .ps-lhero__reveal { height: 110px; }
  .ps-sechead h2 { font-size: 20px; flex: 0 1 auto; min-width: 0; }
  .ps-lcta__title { font-size: 19px; }
  .ps-lcta--photo .ps-lcta__grad {
    background: linear-gradient(180deg, var(--ps-foot) 0%, rgba(253, 251, 245, .92) 62%, rgba(253, 251, 245, .68) 100%);
  }
  .ps-lchips { padding: 14px 16px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .ps-lchips::-webkit-scrollbar { display: none; }
  .ps-lchips .ps-chip { flex: none; }
  .ps-lsection { padding: 26px 20px 30px; }
  .ps-lgeo { flex-direction: column; gap: 0; }
  .ps-lgeo__text { padding: 26px 20px 8px; }
  .ps-lgeo__map { width: 100%; min-height: 240px; }
  .ps-lmoney { padding: 26px 22px; gap: 24px; }
  .ps-lmoney__num { font-size: 46px; }
  .ps-lmoney__cur { font-size: 30px; }
  .ps-lstages { grid-template-columns: 1fr; gap: 22px; }
  .ps-lstages__track, .ps-lstages__progress, .ps-lstages__comet { display: none; }
  .ps-lstage { flex-direction: row; text-align: left; align-items: flex-start; }
  .ps-ldirs { grid-template-columns: 1fr; gap: 18px; }
  .ps-ldir--sep { padding-top: 18px; }
  .ps-lcta__box { max-width: 100%; padding: 28px 22px; }
  .ps-newsgrid { grid-template-columns: 1fr; }
  .ps-nfeat { flex-direction: column; }
  .ps-nfeat__img { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .ps-projgrid { grid-template-columns: 1fr; }
  .ps-filters { position: static; order: -1; }
  .ps-pcard { flex-direction: column; gap: 14px; }
  .ps-pcard__aside { width: 100%; align-items: flex-start; text-align: left; }
  .ps-sortform { margin-left: 0; }
  .ps-phead__main { padding: 18px 18px 16px; }
  .ps-phead__num { margin-left: 0; width: 100%; }
  .ps-budget { padding: 18px; gap: 20px; justify-content: center; }
  .ps-budget__rows { flex-basis: 100%; }
  .ps-bline, .ps-btotal { flex-wrap: wrap; gap: 4px 12px; }
  .ps-bline__lead { display: none; }
  .ps-bline__lbl { flex: 1 1 0; }
  .ps-btotal__lbl { flex: 1 1 100%; }
  .ps-bline__sum, .ps-btotal__sum { margin-left: auto; }
  .ps-pnav { padding: 0 12px; gap: 0 16px; justify-content: flex-start; }
  .ps-pbody { padding: 8px 18px 28px; }
  .ps-doc { flex-wrap: wrap; gap: 14px; }
  .ps-doc__main { flex-basis: calc(100% - 66px); }
  .ps-doc > .ps-btn { width: 100%; }
  .ps-experts { grid-template-columns: 1fr; }
  .ps-expert:nth-child(odd):last-child { grid-column: auto; width: 100%; }
  .ps-chair { width: 100%; padding: 22px 18px; }
}
