/* =========================================================================
   Колледжам — «Мастерская будущего»: природа, мох и листья, Literata, органика
   ========================================================================= */
body.theme-spo {
  --moss: #4E6B3F; --leaf: #9CBF82; --deepgreen: #22382B; --meadow: #E8ECDF; --kraft: #C49E73;
  --c-bg: var(--meadow); --c-surface: #F6F8F1; --c-surface-2: #DDE3D2; --c-ink: #1C2A20; --c-muted: #556252; --c-line: rgba(28, 42, 32, .13);
  --c-accent: var(--moss); --c-accent-soft: #D7E3C8;
  --c-btn: var(--deepgreen); --c-btn-ink: #F1F4EA; --c-btn-hover: #15241B;
  --c-hero: var(--meadow); --c-hero-ink: #1C2A20; --c-hero-muted: #556252;
  --c-hdr: rgba(246, 248, 241, .72); --c-hdr-ink: #1C2A20; --c-hdr-active: var(--moss); --c-hdr-active-ink: #F6F8F1;
  --font-display: var(--serif);
}
.theme-spo h2 { font-weight: 500; letter-spacing: -.02em; }
.theme-spo .crumbs { color: var(--c-muted); }
.theme-spo .brand__mark { background: var(--moss); color: #F6F8F1; }

/* ---------- первый экран ---------- */
.sp-hero { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 80% 40%, #D6E2C3, rgba(232, 236, 223, 0) 70%), var(--meadow); }
.sp-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; min-height: min(780px, 100svh); padding-top: 112px; padding-bottom: 48px; }
.sp-role { font: italic 400 1.3rem var(--serif); color: var(--moss); margin-bottom: 14px; }
.sp-title { font: 400 clamp(2.6rem, 5.6vw, 4.8rem)/1 var(--serif); letter-spacing: -.035em; margin-bottom: 22px; }
.sp-lead { max-width: 31em; font-size: 1.12rem; color: var(--c-muted); }

/* 3D: арочное окно мастерской и парящие листья */
.leafscape { position: relative; width: 100%; max-width: 520px; aspect-ratio: 4 / 5; justify-self: center; perspective: 1300px; --rx: 0deg; --ry: 0deg; }
.leafscape__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.leafscape__stage > * { transform: translateZ(var(--z)); }
.leafscape__arch { position: absolute; inset: 6% 12% 4%; border-radius: 999px 999px 28px 28px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(34, 56, 43, .55), inset 0 0 0 10px rgba(246, 248, 241, .6); background: var(--deepgreen); }
.leafscape__img { width: 100%; height: 100%; object-fit: cover; }
.lf { position: absolute; width: 16%; filter: drop-shadow(0 18px 14px rgba(34, 56, 43, .3)); }
.lf svg { display: block; width: 100%; height: auto; transform-origin: 50% 100%; animation: sway var(--d, 6s) ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(var(--r0, -8deg)); } to { transform: rotate(var(--r1, 8deg)); } }
.lf--1 { left: 0; top: 18%; --r0: -40deg; --r1: -26deg; --d: 5s; }
.lf--2 { right: 2%; top: 8%; width: 13%; --r0: 24deg; --r1: 40deg; --d: 7s; }
.lf--3 { right: 0; top: 52%; width: 18%; --r0: 50deg; --r1: 64deg; --d: 6s; }
.lf--4 { left: 6%; bottom: 6%; width: 14%; --r0: -70deg; --r1: -54deg; --d: 8s; }
.lf--5 { left: 40%; top: -2%; width: 11%; --r0: -10deg; --r1: 10deg; --d: 9s; }
.lf--6 { right: 18%; bottom: -2%; width: 12%; --r0: 100deg; --r1: 116deg; --d: 6.5s; }
.leafscape__tag { position: absolute; left: -4%; bottom: 22%; display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: #F6F8F1; box-shadow: 0 24px 40px -20px rgba(34, 56, 43, .5); }
.leafscape__tag strong { font: 500 1.8rem/1 var(--serif); letter-spacing: -.03em; color: var(--deepgreen); }
.leafscape__tag span { font-size: .85rem; color: var(--c-muted); }

/* ---------- мега-цифра с текстурой листьев ---------- */
.sp-mega { padding: clamp(24px, 4vw, 48px) 0; }
.sp-mega__row { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.sp-mega__num { font: 600 clamp(4.5rem, 14vw, 12rem)/.9 var(--serif); letter-spacing: -.06em; background: url(/static/img/card-photo-800.webp) center / cover; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sp-mega__label { font: italic 400 clamp(1.1rem, 1.8vw, 1.4rem)/1.4 var(--serif); max-width: 22em; color: var(--c-muted); }

/* ---------- камешки-предложения ---------- */
.pebbles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
.pebble { padding: 34px 34px; display: grid; align-content: start; gap: 8px; min-height: 250px; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .6s var(--ease), border-radius 1.2s var(--ease); }
.pebble.is-tilting { transition: transform .08s linear, border-radius 1.2s var(--ease); }
.pebble--1 { background: var(--deepgreen); color: #F1F4EA; border-radius: 62% 38% 46% 54% / 48% 40% 60% 52%; }
.pebble--2 { background: #D7E3C8; border-radius: 42% 58% 36% 64% / 56% 44% 56% 44%; }
.pebble--3 { background: #E9D9BF; border-radius: 54% 46% 62% 38% / 42% 58% 42% 58%; }
.pebble--4 { background: var(--leaf); border-radius: 38% 62% 50% 50% / 60% 46% 54% 40%; }
.pebble:hover { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
.pebble__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .6); color: var(--deepgreen); margin-bottom: 8px; }
.pebble--1 .pebble__icon { background: var(--leaf); }
.pebble h3 { font: 500 1.4rem/1.15 var(--serif); }
.pebble p { font-size: .96rem; opacity: .85; }

/* ---------- экосистема ---------- */
.sp-eco { padding-top: 0; }
.sp-eco__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.eco { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: center; perspective: 1000px; container-type: inline-size; --rx: 0deg; --ry: 0deg; }
.eco__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(18deg + var(--rx))) rotateY(var(--ry)); }
.eco__ring { position: absolute; inset: 12%; border-radius: 50%; border: 1.5px dashed rgba(78, 107, 63, .5); animation: o-rot 50s linear infinite; }
@keyframes o-rot { to { transform: rotate(360deg); } }
.eco__core { position: absolute; inset: 32%; display: grid; place-items: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6F8F59, var(--deepgreen)); color: #F1F4EA; font: italic 500 clamp(1.1rem, 4.6cqw, 1.5rem)/1.1 var(--serif); box-shadow: 0 30px 50px -20px rgba(34, 56, 43, .6), inset 0 -10px 30px rgba(0, 0, 0, .25); transform: translateZ(40px); }
.eco__node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(var(--k) * 90deg - 45deg)) translateX(38cqw) rotate(calc(var(--k) * -90deg + 45deg)) translateZ(70px); }
.eco__node span { position: absolute; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #F6F8F1; color: var(--moss); box-shadow: 0 16px 30px -14px rgba(34, 56, 43, .5); animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--k) * -1s); }
@keyframes bob { 50% { translate: -50% calc(-50% - 8px); } }
.sp-eco__list { display: grid; gap: 4px; }
.sp-eco__list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.sp-eco__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #D7E3C8; color: var(--moss); }
.sp-eco__list h3 { font: 500 1.2rem var(--serif); margin-bottom: 2px; }
.sp-eco__list p { color: var(--c-muted); font-size: .97rem; }

/* ---------- голос и цифры ---------- */
.sp-voice { padding: clamp(40px, 5vw, 64px) 0; background: var(--deepgreen); color: #F1F4EA; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.sp-voice__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sp-voice blockquote { margin: 0; }
.sp-voice p { font: italic 400 clamp(1.35rem, 2.6vw, 2rem)/1.3 var(--serif); }
.sp-stats { margin: 0; display: grid; gap: 0; }
.sp-stats div { display: grid; grid-template-columns: 5em 1fr; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(241, 244, 234, .16); }
.sp-stats dt { font: 500 2rem/1 var(--serif); color: var(--leaf); }
.sp-stats dd { margin: 0; color: rgba(241, 244, 234, .75); }
.theme-spo .contact { background: var(--meadow); }

@media (max-width: 960px) {
  .sp-hero__grid, .sp-eco__grid, .sp-voice__grid { grid-template-columns: 1fr; min-height: 0; }
  .leafscape { max-width: 380px; }
  .pebbles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-mega__row { grid-template-columns: 1fr; gap: 8px; }
  .eco { max-width: 340px; }
}
@media (max-width: 560px) {
  .pebbles { grid-template-columns: 1fr; }
  .pebble, .pebble:hover { min-height: 0; padding: 26px; border-radius: 32px 32px 32px 72px; }
  .leafscape { max-width: 300px; }
}
