/* Эталон композиции: landing-niche.css. Все цвета — токены общей светлой темы. */
.lp-body { margin: 0; }
.lp-page { font-size: 16px; line-height: 1.5; overflow: clip; }
.lp-page *, .lp-page *::before, .lp-page *::after { box-sizing: border-box; }
.lp-page [hidden] { display: none !important; }
.lp-page a { text-decoration: none; }
.lp-page p, .lp-page h1, .lp-page h2, .lp-page h3, .lp-page figure { margin: 0; }
.lp-page button { font: inherit; }
.lp-page :focus-visible { outline: 3px solid var(--success); outline-offset: 5px; }
.lp-wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.lp-skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 24px; background: var(--card-bg); color: var(--text-main); }
.lp-skip:focus { top: 16px; }
.lp-topbar { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--border-main); }
.lp-topbar-inner { display: flex; align-items: center; gap: 32px; height: 80px; }
.lp-brand { display: flex; align-items: center; min-height: 44px; }
.lp-brand img { display: block; width: 112px; height: auto; }
.lp-brand-note { font-size: 14px; color: var(--text-secondary); }
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.lp-change { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-secondary); font-size: 14px; }
.lp-login { min-height: 44px; gap: 12px; }
.lp-page .ln-icon { width: 24px; height: 24px; flex: 0 0 auto; }
.lp-choice { min-height: calc(100svh - 81px); display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-block: 40px 24px; }
.lp-choice-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.lp-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 14px; font-weight: 700; }
.lp-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }
.lp-page h1 { margin-block: 24px; font-size: clamp(44px, 4.7vw, 68px); line-height: 1.06; font-weight: 800; letter-spacing: -0.045em; }
.lp-page h1 span { color: var(--success); }
.lp-intro { max-width: 600px; color: var(--text-secondary); font-size: 20px; line-height: 1.5; }
.lp-orbit { position: relative; height: 304px; display: grid; place-items: center; }
.lp-orbit-ring { position: absolute; width: 280px; height: 280px; border: 1px solid var(--border-main); border-radius: 50%; transform: rotate(-20deg); }
.lp-orbit-ring-inner { width: 216px; height: 216px; border-style: dashed; }
.lp-orbit-logo { width: 160px; height: 160px; object-fit: contain; }
.lp-orbit-label { position: absolute; background: var(--card-bg); border: 1px solid var(--border-main); border-radius: 12px; padding: 12px 16px; color: var(--text-secondary); font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px var(--accent-tint); }
.lp-orbit-first { left: 0; top: 40px; transform: rotate(-8deg); }
.lp-orbit-second { right: -8px; top: 136px; transform: rotate(5deg); }
.lp-orbit-third { left: 24px; bottom: 0; display: flex; align-items: center; gap: 12px; color: var(--success); transform: rotate(-4deg); }
.lp-pick-label { margin-bottom: 16px !important; font-size: 16px; font-weight: 700; }
.lp-choices { display: grid; grid-template-columns: 1fr; gap: 16px; }
.lp-choice-card { display: flex; align-items: center; gap: 24px; padding: 16px; border: 1px solid var(--border-main); background: var(--card-bg); border-radius: 16px; color: var(--text-main); transition: border-color .2s, transform .2s, box-shadow .2s; }
.lp-choice-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 32px var(--accent-tint); }
.lp-choice-card > img { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; object-position: 65% center; }
.lp-choice-card strong { display: block; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.lp-choice-card small { display: block; color: var(--text-secondary); font-size: 16px; margin-top: 8px; }
.lp-choice-arrow { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; color: var(--success); border-radius: 50%; background: var(--accent-tint); }
.lp-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-block: 64px 72px; }
.lp-hero h1 { font-size: clamp(40px, 4.15vw, 60px); max-width: 600px; }
.lp-hero h1 span { display: block; }
.lp-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.lp-actions .btn-primary, .lp-close .btn-primary { gap: 16px; min-height: 56px; padding-inline: 24px; }
.lp-text-link { color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.lp-text-link:hover, .lp-change:hover { color: var(--success); }
.lp-reg-note { margin-top: 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.lp-reg-note details { margin-top: 0; max-width: 420px; }
.lp-reg-note summary { display: list-item; width: fit-content; cursor: pointer; padding-block: 8px; min-height: 44px; text-underline-offset: 4px; }
.lp-reg-note details[open] summary { color: var(--success); }
.lp-reg-note details p { margin-bottom: 8px; }
.lp-scene { position: relative; height: 520px; border-radius: 24px; isolation: isolate; background: var(--n100); }
.lp-scene-photo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 65% center; border-radius: inherit; }
.lp-scene::after { position: absolute; content: ''; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--n900) 130%); opacity: .45; border-radius: inherit; z-index: -0; pointer-events: none; }
.lp-scene-caption { position: absolute; z-index: 2; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lp-scene-caption > span, .lp-pause { padding: 8px 12px; font-size: 14px; font-weight: 700; border-radius: 8px; background: var(--card-bg); color: var(--text-secondary); border: 1px solid var(--border-main); }
.lp-pause { min-height: 44px; cursor: pointer; }
.lp-pause:hover { color: var(--success); }
.lp-scene-stack { position: absolute; z-index: 2; bottom: 44px; left: -24px; right: 24px; display: grid; gap: 12px; }
.lp-step { display: flex; align-items: center; gap: 16px; border: 1px solid var(--border-main); border-radius: 12px; background: var(--card-bg); padding: 16px; box-shadow: 0 8px 24px var(--accent-tint); transform: translateX(0); }
.lp-step-1 { margin-left: 24px; margin-right: -24px; }
.lp-step-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; color: var(--success); background: var(--accent-tint); border-radius: 12px; }
.lp-step-tag { display: block; color: var(--text-secondary); font-size: 14px; }
.lp-step strong { display: block; font-size: 18px; line-height: 1.3; margin-block: 4px; }
.lp-step p { font-size: 14px; color: var(--text-secondary); }
.lp-step-tick { margin-left: auto; color: var(--success); }
.lp-scene-progress { position: absolute; bottom: 20px; left: 24px; right: 24px; z-index: 2; display: flex; gap: 8px; }
.lp-scene-progress span { height: 4px; border-radius: 4px; background: var(--card-bg); flex: 1; opacity: .45; }
.lp-scene.is-animated .lp-step { animation: lp-step-focus 12s ease-in-out infinite; }
.lp-scene.is-animated .lp-step-1 { animation-delay: -8s; }
.lp-scene.is-animated .lp-step-2 { animation-delay: -4s; }
.lp-scene.is-animated .lp-scene-progress span { animation: lp-progress 12s ease-in-out infinite; }
.lp-scene.is-animated .lp-scene-progress span:nth-child(2) { animation-delay: -8s; }
.lp-scene.is-animated .lp-scene-progress span:nth-child(3) { animation-delay: -4s; }
.lp-scene.is-paused *, .lp-scene.is-paused *::before { animation-play-state: paused !important; }
@keyframes lp-step-focus { 0%, 28% { border-color: var(--accent); transform: translateX(8px); } 34%, 94% { border-color: var(--border-main); transform: translateX(0); } 100% { border-color: var(--accent); transform: translateX(8px); } }
@keyframes lp-progress { 0%, 28%, 100% { opacity: 1; background: var(--accent-soft); } 34%, 94% { opacity: .45; background: var(--card-bg); } }
.lp-reasons { padding-block: 72px; background: var(--n50); border-block: 1px solid var(--border-main); scroll-margin-top: 96px; }
.lp-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.lp-page h2 { font-size: clamp(32px, 3.1vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -0.035em; }
.lp-section-heading h2 { margin-top: 12px; }
.lp-section-heading > p { font-size: 16px; color: var(--text-secondary); }
.lp-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0 0 32px; }
.lp-feature { border: 1px solid var(--border-main); background: var(--card-bg); border-radius: 16px; padding: 28px; }
.lp-feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.lp-number { font-size: 14px; font-weight: 700; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.lp-feature-icon { color: var(--success); }
.lp-page h3 { font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.lp-feature p { color: var(--text-secondary); margin-top: 12px; }
.lp-reason-list { list-style: none; padding: 0; margin: 0; }
.lp-reason-list li { padding: 24px 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: start; gap: 24px; border-bottom: 1px solid var(--border-main); }
.lp-reason-list li:last-child { border-bottom: 0; }
.lp-reason-list p { color: var(--text-secondary); }
.lp-reason-list .ln-icon { color: var(--success); }
.lp-close { text-align: center; padding-block: 80px 64px; max-width: 800px; }
.lp-close-mark { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: var(--accent-tint); color: var(--success); }
.lp-close .lp-eyebrow { justify-content: center; margin-bottom: 16px; }
.lp-close h2 { max-width: 680px; margin-inline: auto; margin-bottom: 28px; }
.lp-close .lp-intro { margin: 20px auto 28px; }
.lp-close .lp-reg-note details { margin-inline: auto; }
.lp-close .lp-reg-note summary { margin-inline: auto; }
.lp-terms { font-size: 14px; line-height: 1.6; color: var(--text-secondary); max-width: 640px; margin: 28px auto 0 !important; }
.lp-footer { border-top: 1px solid var(--border-main); padding-block: 40px 24px; font-size: 14px; color: var(--text-secondary); }
.lp-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.lp-made-in { margin-left: auto; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.lp-footer a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
.lp-footer > span { padding-block: 12px; }
@media (min-width: 1500px) { .lp-choice { gap: 64px; } }
@media (max-width: 1050px) {
    .lp-brand-note { display: none; }
    .lp-orbit { transform: scale(.85); }
    .lp-choice-top { grid-template-columns: 1.25fr 1fr; gap: 32px; }
    .lp-choice-card { gap: 16px; }
    .lp-choice-card > img { width: 72px; height: 80px; }
    .lp-choice-card strong { font-size: 24px; }
    .lp-hero { gap: 40px; padding-block: 48px; }
    .lp-scene { height: 500px; }
    .lp-step-icon { display: none; }
    .lp-step-tick { display: none; }
    .lp-feature { padding: 24px; }
}
@media (max-width: 700px) {
    .lp-wrap { width: calc(100% - 40px); }
    .lp-topbar-inner { height: 72px; gap: 16px; }
    .lp-brand img { width: 96px; }
    .lp-nav { gap: 16px; }
    .lp-change { font-size: 14px; }
    .lp-login { gap: 8px; padding-inline: 12px; }
    .lp-login .ln-icon { display: none; }
    .lp-choice { min-height: calc(100svh - 73px); padding-block: 32px 20px; gap: 32px; }
    .lp-choice-top { display: block; }
    .lp-pick { margin-top: 32px; }
    .lp-orbit { display: none; }
    .lp-page h1 { font-size: clamp(32px, 9.5vw, 44px); margin-block: 20px; line-height: 1.08; }
    .lp-choice h1 { max-width: 520px; }
    .lp-intro { font-size: 18px; }
    .lp-choices { grid-template-columns: 1fr; gap: 12px; }
    .lp-pick-label { margin-bottom: 12px !important; }
    .lp-choice-card { padding: 12px; gap: 16px; }
    .lp-choice-card > img { width: 64px; height: 72px; }
    .lp-choice-card strong { font-size: 24px; }
    .lp-choice-card small { font-size: 14px; margin-top: 4px; }
    .lp-choice-arrow { width: 36px; height: 36px; }
    .lp-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 32px 40px; }
    .lp-hero h1 { max-width: 500px; }
    .lp-actions { margin-top: 24px; gap: 12px 20px; }
    .lp-actions .btn-primary { width: 100%; }
    .lp-actions .lp-text-link { min-height: 44px; }
    .lp-reg-note { margin-top: 8px; }
    .lp-scene { height: auto; min-height: 440px; width: 100%; display: flex; flex-direction: column; gap: 32px; padding: 16px 20px; }
    .lp-scene-photo { position: absolute; inset: 0; }
    .lp-scene-caption { position: relative; inset: auto; }
    .lp-scene-stack { position: relative; inset: auto; margin-top: auto; margin-left: -8px; gap: 8px; }
    .lp-step { padding: 12px; gap: 12px; }
    .lp-step-1 { margin-left: 12px; margin-right: -12px; }
    .lp-step strong { font-size: 16px; }
    .lp-step p, .lp-step-tag { font-size: 14px; }
    .lp-scene-progress { position: relative; inset: auto; margin-top: -16px; }
    .lp-reasons { padding-block: 40px; scroll-margin-top: 88px; }
    .lp-section-heading { display: block; margin-bottom: 24px; }
    .lp-section-heading > p { display: none; }
    .lp-page h2 { font-size: 32px; }
    .lp-featured { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
    .lp-feature { padding: 24px; }
    .lp-feature-top { margin-bottom: 16px; }
    .lp-reason-list li { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 16px; padding-block: 24px; }
    .lp-reason-list h3 { font-size: 18px; }
    .lp-reason-list p { grid-column: 2; font-size: 16px; }
    .lp-reason-list .lp-number { padding-top: 3px; }
    .lp-reason-list .ln-icon { display: none; }
    .lp-close { padding-block: 48px; }
    .lp-close .btn-primary { width: 100%; }
    .lp-footer { padding-block: 32px 20px; }
    .lp-footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
    .lp-made-in { margin-left: 0; }
    .lp-footer > span { display: block; }
    .lp-footer nav { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-page *, .lp-page *::before, .lp-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.lp-text-link .ln-icon { transform: rotate(90deg); }

/* Общая команда в футере: фото и короткая подпись, без повторного большого блока. */
.lp-team { padding-bottom: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--border-main); }
.lp-footer .lp-team h2 { font-size: 24px; line-height: 1.3; margin-bottom: 24px; color: var(--text-main); }
.lp-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.lp-person { display: flex; align-items: center; gap: 16px; min-width: 0; position: relative; }
.lp-person-open { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); padding: 0; border: 0 !important; background-color: transparent !important; z-index: 1; }
.lp-person-open:hover { background-color: var(--accent-tint) !important; }
.lp-person-more { display: none; align-items: center; gap: 4px; margin-top: 4px; font-size: 14px; color: var(--success); }
.lp-person-more .ln-icon { width: 16px; height: 16px; }
.lp-person-open:not([hidden]) ~ .lp-person-body .lp-person-more { display: inline-flex; }
.lp-person > img { display: block; width: 64px; height: 80px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; object-position: center 24%; }
.lp-person-body { min-width: 0; }
.lp-person-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; color: var(--text-main); }
.lp-person-body > p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.lp-profile-open { overflow: hidden; }
.lp-person-dialog { width: min(840px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; color: var(--text-main); }
.lp-person-dialog:not([open]) { display: none; }
.lp-person-dialog::backdrop { background: color-mix(in srgb, var(--n900) 40%, transparent); backdrop-filter: blur(4px); }
.lp-person-dialog .ds-modal-title { font-size: 16px; }
/* Safari (iOS): у <dialog> высота auto, и flex: 1 (основа 0%) схлопывает тело до 0 —
   видна только шапка. Основа по содержимому + сжатие до max-height окна, скролл в теле. */
.lp-person-dialog .ds-modal-body { flex: 1 1 auto; min-height: 0; }
.lp-person-dialog .ds-modal-close { width: 44px; min-height: 44px; padding: 8px; border: 0 !important; }
.lp-profile-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 32px; }
.lp-profile-body > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 24%; border-radius: 12px; }
.lp-profile-copy h2 { font-size: 32px; line-height: 1.15; margin-bottom: 12px; }
.lp-profile-copy .lp-profile-role { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--success); margin-bottom: 24px; }
.lp-profile-about, .lp-profile-focus { font-size: 16px; line-height: 1.65; white-space: pre-line; }
.lp-profile-copy h3 { font-size: 18px; margin-block: 24px 8px; }
.lp-profile-focus { color: var(--text-secondary); }
.lp-presentations { width: 100%; }
@media (max-width: 1050px) { .lp-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .lp-team-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 700px) {
    .lp-profile-body { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
    .lp-profile-body > img { height: 200px; aspect-ratio: auto; }
    .lp-profile-copy h2 { font-size: 28px; }
}
