/* Облачное небо под первым экраном и лентой роликов (js/sky-background.js). */
body[data-sky] { position: relative; }
body[data-sky] #app { position: relative; z-index: 1; }
body[data-sky] :is(.s-hero, .s-strip, .vs__motion-row) { background: transparent; }
body[data-sky] :is(.s-hero, .s-strip) .halftone { display: none; }

.sky-bg { position: absolute; top: 0; left: 0; right: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #1590d8 0%, #2fb0ea 55%, #8cc9ea 100%); }
.sky-bg__img { --sky-src: url("../assets/sky/clouds.avif"); position: absolute; inset: -6%;
  background: var(--sky-src) 50% 35% / cover no-repeat; opacity: 0; transition: opacity 600ms ease;
  will-change: transform; animation: sky-drift 70s ease-in-out infinite alternate; }
@media (max-width: 700px) and (orientation: portrait) { .sky-bg__img { --sky-src: url("../assets/sky/clouds-mobile.avif"); } }
.sky-bg[data-state="ready"] .sky-bg__img { opacity: 1; }
.sky-bg[data-visible="false"] .sky-bg__img { animation-play-state: paused; }
/* Лёгкое затемнение под текстом и мягкий переход к светлому блоку #about внизу. */
.sky-bg__shade { position: absolute; inset: 0;
  background: radial-gradient(70% 45% at 50% 34%, rgba(8, 40, 82, .30), rgba(8, 40, 82, 0) 70%),
    linear-gradient(180deg, rgba(250, 249, 246, 0) calc(100% - 140px), #faf9f6 100%); }
@keyframes sky-drift {
  from { transform: translate3d(-2.5%, -1.5%, 0) scale(1); }
  to { transform: translate3d(2.5%, 1.5%, 0) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) { .sky-bg__img { animation: none; } }

/* Текст первого экрана — белый поверх неба. */
html[data-theme="light"] body[data-sky] .hero__title { color: #fff; text-shadow: 0 1px 2px rgba(6, 30, 58, .55), 0 2px 10px rgba(6, 30, 58, .45), 0 6px 40px rgba(6, 30, 58, .6); }
/* Мелкий текст — на тёмно-синей стеклянной плашке: белый на облаках иначе не читается (контраст ≥ 7:1). */
html[data-theme="light"] body[data-sky] :is(.hero__lead, .hero__lead strong) { color: #fff; text-shadow: none; }
body[data-sky] .hero__lead { width: fit-content; max-width: min(100%, 640px); margin-inline: auto; padding: 14px 20px; border-radius: 18px;
  background: rgba(6, 30, 58, .58); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body[data-sky] .hero__mark { color: #0f2e4a; background: #f9a8d4; text-shadow: none; }
body[data-sky] .hero__kpi { color: #fff; background: rgba(6, 30, 58, .58); border-color: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* «Как это работает» — стеклянная плашка с розовым кружком и стрелкой вниз. */
html[data-theme="light"] body[data-sky] .hero__play { color: #fff; text-shadow: none; gap: 12px; min-height: 56px; padding: 0 24px 0 8px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(6, 30, 58, .58); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-weight: 600; transition: background 200ms ease, border-color 200ms ease; }
body[data-sky] .hero__play:hover { background: rgba(6, 30, 58, .72); border-color: rgba(255, 255, 255, .8); }
body[data-sky] .hero__playc { width: 40px; height: 40px; border: 0; background: #f9a8d4; color: #0f2e4a; }
body[data-sky] .hero__playc svg { transition: transform 200ms ease; }
body[data-sky] .hero__play:hover .hero__playc svg { transform: translateY(2px); }
