/* ============================================================
   LaDenta — визуальные эффекты, версия 1.10 (02.10.2026). Разметку дополняет fun4.js.
   ============================================================ */

/* ── V2. Заголовки проявляются по словам ── */
.tr-h .tr-w{opacity:.16;transition:opacity .45s ease,filter .45s ease;filter:blur(1.5px)}
.tr-h .tr-w.on{opacity:1;filter:none}

/* ── V3. Прожектор в тёмном блоке ── */
section.ldx-spot{position:relative;isolation:isolate}
section.ldx-spot::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;transition:opacity .4s;
  background:radial-gradient(420px circle at var(--sx,50%) var(--sy,50%),rgba(111,237,228,.20),rgba(90,174,255,.10) 40%,transparent 70%)}
section.ldx-spot.spot-on::before{opacity:1}
section.ldx-spot > .container{position:relative;z-index:1}

/* ── V4. Сияние за фото на первом экране ── */
.fs2-hero.ldx-aurora-on{background:linear-gradient(150deg,#0B3E8C,#1F66CF 55%,#2F86E8)}
.ldx-aurora{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;border-radius:inherit}
.ldx-aurora i{position:absolute;width:70%;height:70%;border-radius:50%;filter:blur(60px);opacity:.75;mix-blend-mode:screen}
.ldx-aurora i:nth-child(1){left:-10%;top:-15%;background:#5AAEFF;animation:aur1 14s ease-in-out infinite alternate}
.ldx-aurora i:nth-child(2){right:-15%;top:10%;background:#00D1D1;opacity:.45;animation:aur2 18s ease-in-out infinite alternate}
.ldx-aurora i:nth-child(3){left:20%;bottom:-25%;background:#7B5CFF;opacity:.35;animation:aur3 16s ease-in-out infinite alternate}
@keyframes aur1{to{transform:translate(35%,25%) scale(1.2)}}
@keyframes aur2{to{transform:translate(-30%,30%) scale(.9)}}
@keyframes aur3{to{transform:translate(25%,-30%) scale(1.25)}}
.fs2-hero.ldx-aurora-on .fs2-hero-photo{z-index:1}
.fs2-hero.ldx-aurora-on .fs2-hero-photo img{filter:drop-shadow(0 20px 40px rgba(4,20,48,.35))}
.fs2-hero.ldx-aurora-on > *:not(.ldx-aurora):not(.fs2-hero-photo){position:relative;z-index:2}
@media (prefers-reduced-motion: reduce){.ldx-aurora i{animation:none}}

/* ── V5. «Магнитные» кнопки ── */
.btn.ldx-mag{transition:transform .18s cubic-bezier(.2,.8,.3,1)}
.btn:not(.ldx-mag){transition:var(--tr),transform .5s cubic-bezier(.3,1.6,.5,1)}

/* ── V6. Карточки услуг переворачиваются ── */
.svc-card.ldx-flip{padding:0 !important;perspective:1200px;background:none !important;border-color:transparent !important;box-shadow:none !important;transform:none !important}
.svc-card.ldx-flip .sc-front,.svc-card.ldx-flip .sc-back{border-radius:var(--r);transition:transform 1.3s cubic-bezier(.45,.05,.25,1);backface-visibility:hidden;-webkit-backface-visibility:hidden}
.svc-card.ldx-flip .sc-front{position:relative;display:flex;flex-direction:column;gap:8px;height:100%;padding:24px 22px 20px;background:var(--bg-soft)}
.svc-card.ldx-flip .sc-back{position:absolute;inset:0;display:flex;flex-direction:column;gap:6px;padding:22px;background:linear-gradient(160deg,#0B3E8C,#0055BA);color:#fff;transform:rotateY(180deg);overflow:hidden}
.svc-card.ldx-flip.flipped .sc-front{transform:rotateY(-180deg)}
.svc-card.ldx-flip.flipped .sc-back{transform:rotateY(0)}
.sc-k{font-size:12.5px;font-weight:800;color:var(--teal-l)}
.sc-t{font-family:var(--font-head);font-size:18px}
.sc-a{font-size:14px;line-height:1.5;color:#DCE8F7;flex:1;overflow:hidden}
.sc-p{font-family:var(--font-head);font-weight:800;font-size:17px;padding-top:8px;border-top:1px solid rgba(255,255,255,.2)}
.sc-go{font-size:13.5px;font-weight:800;color:var(--teal-l)}
.sc-hint{font-size:12px;font-weight:700;color:var(--muted);opacity:.8}
@media (prefers-reduced-motion: reduce){.svc-card.ldx-flip .sc-front,.svc-card.ldx-flip .sc-back{transition:none}}
/* текст на обороте — светлый (стиль темы для .svc-card p иначе перекрашивает его в серый) */
.svc-card.ldx-flip .sc-back .sc-a{color:#E3EEFB}
.svc-card.ldx-flip .sc-back .sc-t{color:#fff}
.svc-card.ldx-flip .sc-back .sc-p{color:#fff}
.svc-card.ldx-flip .sc-back .sc-a{display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden;flex:0 1 auto;margin-bottom:auto}
