/*
 * Блок page-hero (blocks/page-hero.php): первый экран внутренних страниц.
 * Текст слева, справа 3D-иллюстрация на голубой подложке, которая медленно «дышит» (как в хиро главной).
 * Иллюстрация только появляется (подъём + проявление), зациклена лишь подложка. «Уменьшить движение» — base.css.
 */

.phero { overflow-x: clip; background: #fff; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.phero--text .phero__grid { grid-template-columns: minmax(0, 1fr); max-width: 860px; } /* по колонке документа (blocks/doc.php) */
.phero--text .phero__title { font-size: clamp(34px, 3.6vw, 52px); }
/* упрощённый по центру (center => true) */
.phero--center .phero__grid { max-width: 980px; text-align: center; }
.phero--center .phero__title { font-size: clamp(38px, 4.2vw, 64px); }
.phero--center .crumbs ol, .phero--center .phero__actions, .phero--center .phero__chips { justify-content: center; }
.phero--center .phero__lead { margin-inline: auto; }
.phero__main { padding-top: clamp(12px, 1.6vw, 24px); }

/* хлебные крошки */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 26px; color: var(--c-muted); font-size: 15px; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #b7c8f0; }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary); }
.crumbs [aria-current] { color: var(--c-ink); }

.phero__title { color: var(--c-ink); font-size: clamp(38px, 4.2vw, 64px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.phero__lead { max-width: 36em; margin-top: 24px; color: var(--c-muted); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; }
.phero__lead a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.phero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.phero__chips li { padding: 8px 16px; border: 1px solid var(--c-line); border-radius: var(--pill); color: var(--c-text); font-size: 15px; font-weight: 500; }

/* иллюстрация на подложке */
.phero__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 600px; width: 100%; justify-self: center; }
.phero__blob {
    position: absolute; inset: 8% 6% 6% 8%;
    border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%;
    background: radial-gradient(120% 100% at 38% 32%, #ecf4ff 0%, #deeafd 52%, #d0e1fb 100%);
    animation: phero-blob-in 1.2s cubic-bezier(.22, 1, .36, 1) both, phero-blob 18s cubic-bezier(.37, 0, .63, 1) 1.2s infinite;
}
.phero__img { position: relative; width: 84%; height: auto; animation: phero-rise 1s cubic-bezier(.22, 1, .36, 1) .15s both; }
@keyframes phero-blob-in { from { opacity: 0; scale: .9; } }
@keyframes phero-blob {
    0%, 100% { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; rotate: 0deg; }
    33% { border-radius: 46% 54% 43% 57% / 57% 44% 56% 43%; rotate: 7deg; }
    66% { border-radius: 53% 47% 61% 39% / 43% 55% 45% 57%; rotate: -5deg; }
}
@keyframes phero-rise { from { opacity: 0; translate: 0 24px; scale: .96; } }

@media (max-width: 1024px) {
    .phero__grid { grid-template-columns: 1fr; }
    .phero__art { max-width: 380px; }
}
/* телефон: компактный первый экран — меньше отступов, кнопки ниже, пункты-капсулы мельче, иллюстрация меньше */
@media (max-width: 640px) {
    .phero__grid { gap: 8px; }
    .crumbs ol { margin-bottom: 14px; font-size: 13px; }
    .phero .eyebrow { margin-bottom: 10px; font-size: 11px; letter-spacing: .14em; }
    .phero__title, .phero--text .phero__title, .phero--center .phero__title { font-size: var(--fs-h1-m); line-height: 1.12; }
    .phero__lead { margin-top: 14px; font-size: 16px; line-height: 1.5; }
    .phero__actions { flex-direction: column; gap: 10px; margin-top: 22px; }
    .phero__actions .btn { width: 100%; min-height: 50px; padding: 10px 16px; font-size: 15px; }
    .phero__chips { gap: 6px; margin-top: 16px; }
    .phero__chips li { padding: 5px 12px; font-size: 13.5px; }
    .phero__art { max-width: 230px; }
}
