/* =========================================================================
   Проекты Академии: у каждого проекта свой мир
   АМЛ-занятость — фирменная бумага Академии; Единая фитнес-база — спортивный синий
   ========================================================================= */

/* ---------- первый экран ---------- */
.pr-hero { position: relative; overflow: hidden; color: var(--sheet); background: radial-gradient(110% 120% at 90% 0%, #2C5145 0%, var(--forest) 45%, var(--forest-deep) 100%); }
.pr-hero__inner { position: relative; z-index: 1; padding-top: 124px; padding-bottom: clamp(40px, 5vw, 64px); }
.pr-hero .crumbs { color: rgba(247, 248, 244, .7); }
.pr-hero__title { font: 400 clamp(2.6rem, 6vw, 5rem)/.98 var(--serif); letter-spacing: -.035em; margin-bottom: 18px; }
.pr-hero__lead { max-width: 36em; font-size: 1.125rem; color: rgba(247, 248, 244, .8); }
.pr-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pr-jump__link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 500;
  background: rgba(247, 248, 244, .08); border: 1px solid rgba(247, 248, 244, .18); transition: background-color .2s, border-color .2s; }
.pr-jump__link:hover { background: rgba(247, 248, 244, .14); border-color: rgba(247, 248, 244, .4); }
.pr-jump__link i { width: 10px; height: 10px; border-radius: 50%; }
.pr-jump__link--aml-zanyatost i { background: var(--kraft); }
.pr-jump__link--fitnes-baza i { background: #4C6BFF; }

/* ---------- общий каркас проекта ---------- */
.pj { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 88px) 0; }
.pj__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pj__status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: .9rem; font-weight: 500; margin-bottom: 18px; }
.pj__status i { width: 8px; height: 8px; border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } 0%, 100% { box-shadow: 0 0 0 0 currentColor; } }
.pj__name { margin-bottom: 10px; }
.pj__tagline { margin-bottom: 14px; }
.pj__desc { max-width: 32em; margin-bottom: 22px; }
.pj__host { display: inline-block; margin-left: 14px; font-size: .92rem; }

/* ==========================================================================
   АМЛ-занятость
   ========================================================================== */
.pj--zan { background: var(--paper); color: var(--ink); }
.pj--zan .pj__status { background: var(--kraft-soft); color: #6B4E2A; }
.pj--zan .pj__status i { background: #B9834A; color: rgba(185, 131, 74, .5); }
.pj--zan .pj__name { font: 500 clamp(2.4rem, 4.6vw, 3.8rem)/1 var(--serif); letter-spacing: -.03em; }
.pj--zan .pj__tagline { font: italic 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.3 var(--serif); color: var(--moss); }
.pj--zan .pj__desc { color: #4B5B53; }
.pj--zan .pj__host { color: #4B5B53; }
.zan-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.zan-kinds li { padding: 9px 16px; border-radius: 999px; background: var(--sheet); border: 1px solid rgba(21, 36, 31, .12); font-weight: 500; }
.zan-partners { margin-bottom: 26px; padding: 16px 18px; border-radius: var(--r); background: var(--sheet); }
.zan-partners p { font-size: .9rem; color: #4B5B53; margin-bottom: 8px; }
.zan-partners ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.zan-partners li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.zan-partners .icon { color: var(--moss); }

/* 3D-доска с предложениями */
.board { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / .92; justify-self: center; perspective: 1400px; --rx: 0deg; --ry: 0deg; }
.board__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-10deg + var(--ry))); }
.board__panel { position: absolute; inset: 4% 2%; border-radius: 28px; transform: translateZ(-60px);
  background: linear-gradient(160deg, #D9C3A3, #C9A97F); box-shadow: 0 50px 80px -40px rgba(21, 36, 31, .6), inset 0 0 0 12px rgba(255, 255, 255, .18); }
.board__panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .45;
  background-image: radial-gradient(rgba(120, 84, 44, .35) 1px, transparent 1.2px); background-size: 9px 9px; }
.board__mark { position: absolute; right: 22px; bottom: 18px; width: 54px; color: rgba(30, 58, 50, .35); }
.board__mark .emblem { width: 100%; height: auto; display: block; }
.offer { position: absolute; width: 44%; padding: 18px 18px 16px; border-radius: 18px; background: var(--sheet); color: var(--ink); display: grid; gap: 8px;
  box-shadow: 0 24px 40px -22px rgba(21, 36, 31, .55); transform: translateZ(var(--z)) rotate(var(--r)); animation: offer-bob 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes offer-bob { 50% { transform: translateZ(calc(var(--z) + 14px)) rotate(var(--r)); } }
.offer--1 { left: 4%; top: 12%; --z: 30px; --r: -3deg; --d: 0s; }
.offer--2 { right: 4%; top: 5%; --z: 70px; --r: 2.5deg; --d: -1.5s; background: var(--forest); color: var(--sheet); }
.offer--3 { left: 4%; bottom: 7%; --z: 90px; --r: 2deg; --d: -3s; }
.offer--4 { right: 4%; bottom: 17%; --z: 45px; --r: -2deg; --d: -4.5s; background: var(--sage-soft); }
.offer__pin { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E9B27A, #A86B33); box-shadow: 0 3px 4px rgba(0, 0, 0, .3); }
.offer__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--sage-soft); color: var(--forest); }
.offer--2 .offer__icon { background: rgba(247, 248, 244, .14); color: var(--sheet); }
.offer--4 .offer__icon { background: var(--sheet); }
.offer__kind { font: 500 1.35rem/1.1 var(--serif); }
.offer__line { height: 7px; border-radius: 4px; background: currentColor; opacity: .12; }
.offer__line--short { width: 60%; }
.offer__tag { font-size: .78rem; opacity: .65; }

/* ==========================================================================
   Единая фитнес-база
   ========================================================================== */
.pj--fit { --court: #2B50E6; --court-2: #4C6BFF; --ice: #EEF2FB; --navy: #0E1630; background: var(--ice); color: var(--navy); }
.fit-lanes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fit-lanes path { fill: none; stroke: rgba(43, 80, 230, .12); stroke-width: 1.5; }
.pj--fit .pj__status { background: var(--navy); color: #fff; }
.pj--fit .pj__status i { background: var(--court-2); color: rgba(76, 107, 255, .6); }
.pj--fit .pj__name { font: 700 clamp(2rem, 3.8vw, 3.2rem)/1.02 "Unbounded", var(--sans); letter-spacing: -.045em; }
.pj--fit .pj__tagline { font: 500 clamp(1.15rem, 1.7vw, 1.4rem)/1.3 var(--sans); color: var(--court); max-width: 24em; }
.pj--fit .pj__desc { color: #44506E; }
.pj--fit .pj__host { color: #44506E; }
.pj--fit .btn--primary { background: var(--court); color: #fff; }
.pj--fit .btn--primary:hover { background: #1F3CC0; }
.fit-roles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.fit-roles li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; font-weight: 600; box-shadow: 0 1px 0 rgba(14, 22, 48, .06); }
.fit-roles span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(43, 80, 230, .1); color: var(--court); }

/* 3D: треугольник ролей на вращающейся площадке */
.tri { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; perspective: 1200px; container-type: inline-size; --rx: 0deg; --ry: 0deg; }
.tri__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.tri__plane { position: absolute; inset: 8%; transform-style: preserve-3d; transform: rotateX(62deg); animation: tri-spin 36s linear infinite; }
@keyframes tri-spin { from { transform: rotateX(62deg) rotateZ(0deg); } to { transform: rotateX(62deg) rotateZ(360deg); } }
.tri__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tri__lines path { fill: rgba(43, 80, 230, .08); stroke: var(--court, #2B50E6); stroke-width: 1.2; stroke-linejoin: round; }
.tri__lines circle { fill: none; stroke: rgba(43, 80, 230, .35); stroke-width: .8; stroke-dasharray: 2 3; }
.tri__node { position: absolute; left: 50%; top: 56.5%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateZ(var(--a)) translateY(-41.6cqw) rotateZ(calc(-1 * var(--a))); }
.tri__node span { position: absolute; translate: -50% -50%; white-space: nowrap; padding: 12px 18px; border-radius: 999px; background: #fff; color: #0E1630;
  font: 600 .98rem "Unbounded", var(--sans); letter-spacing: -.02em; box-shadow: 0 18px 30px -16px rgba(14, 22, 48, .45); animation: tri-unspin 36s linear infinite; }
.tri__node:nth-child(3) span { background: #2B50E6; color: #fff; }
@keyframes tri-unspin { from { transform: rotateZ(0deg) rotateX(-62deg); } to { transform: rotateZ(-360deg) rotateX(-62deg); } }
.tri__core { position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; translate: -50% -42%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6E87FF, #2B50E6 55%, #1B33A8); color: #fff; font: 800 clamp(1rem, 5cqw, 1.6rem) "Unbounded", var(--sans); letter-spacing: -.04em;
  box-shadow: 0 30px 50px -18px rgba(27, 51, 168, .6), inset 0 -10px 24px rgba(0, 0, 0, .2); transform: translateZ(60px); }
.tri__core::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 1.5px solid rgba(43, 80, 230, .35); animation: ring-out 3s ease-out infinite; }
@keyframes ring-out { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- приглашение ---------- */
.pr-cta { background: var(--forest-deep); color: var(--sheet); padding: clamp(28px, 4vw, 44px) 0; }
.pr-cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.pr-cta p { font: 400 clamp(1.2rem, 2vw, 1.6rem)/1.3 var(--serif); max-width: 30em; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .pj__grid { grid-template-columns: 1fr; }
  .pj__grid--rev .tri { order: 2; }
  .board { max-width: 460px; }
  .tri { max-width: 400px; }
}
@media (max-width: 560px) {
  .offer { width: 45%; padding: 12px; gap: 6px; }
  .offer__kind { font-size: 1.05rem; }
  .offer__icon { width: 30px; height: 30px; }
  .offer__tag { display: none; }
  .tri { width: 76%; }
  .tri__node span { padding: 8px 12px; font-size: .78rem; }
  .pj__host { display: block; margin: 10px 0 0; }
  .pr-cta .btn { width: 100%; }
}
