/* ============================================================
   PALETTE V5 — HYBRID
   Глобальный слой поверх entropia.css.
   - Sky-blue spark accent (#41B6E6, тот же что в .caret)
   - Тональные секции: .tone-cream/-beige/-clay/-rose/-sand/-espresso
   - Финальный CTA: .tone-burst (терракота)
   ============================================================ */

:root {
  --spark:        #41B6E6;
  --spark-soft:   rgba(65, 182, 230, 0.14);
  --spark-glow:   rgba(65, 182, 230, 0.32);
  --spark-faint:  rgba(65, 182, 230, 0.05);
  --spark-hover:  #2BA0D0;
}

/* ── Eyebrow получает голубую линию (вместо приглушённой) ──── */
.eyebrow::before {
  background: var(--spark) !important;
  width: 28px !important;
  box-shadow: 0 0 6px var(--spark-glow);
}

/* ── Status-dot — терракотовый core + голубой пульс ────────── */
.status-dot {
  position: relative;
  animation: none !important;
}
.status-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--spark);
  animation: skyPulse 2.4s ease-out infinite;
}
@keyframes skyPulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ── Cards / pillars — голубой hover-border + лёгкий glow ───── */
.service-card {
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s, background 0.3s,
              box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-3px);
  background: var(--spark-faint) !important;
  border-color: var(--spark) !important;
  box-shadow: 0 0 0 1px var(--spark-soft),
              0 18px 40px -16px rgba(59, 33, 24, 0.12);
}
.pillar {
  transition: border-color 0.3s, background 0.3s;
}
.pillar:hover {
  border-color: var(--spark);
  background: var(--spark-faint);
}

/* ── Nav links — голубой подъезжающий underline ────────────── */
.nav-item {
  position: relative;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px;
  background: var(--spark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-item:hover::after,
.nav-item.is-active::after { transform: scaleX(1); }

/* ── Section tones (V3 ритмика) ───────────────────────────── */
/* Все тональные секции рисуют 100vw-фон через ::before
   (срабатывает за счёт body { overflow-x: hidden }) */

.section[class*="tone-"] {
  border-top: none;
  isolation: isolate;
}
.section[class*="tone-"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  pointer-events: none;
}

.section.tone-cream::before    { background: #FAFAF8; }
.section.tone-beige::before    { background: #F4EDE6; }
.section.tone-clay::before     { background: #E8DCD0; }
.section.tone-rose::before     { background: #EDE0D8; }
.section.tone-sand::before     { background: #DCCBB8; }

/* ── ESPRESSO — тёмный "момент" (V4 manifesto) ────────────── */
.section.tone-espresso::before {
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(65, 182, 230, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(139, 51, 38, 0.18) 0%, transparent 60%),
    #2A1810;
}
.section.tone-espresso { color: #E8DCD0; }
.section.tone-espresso h1,
.section.tone-espresso h2,
.section.tone-espresso h3,
.section.tone-espresso h4 { color: #FAFAF8; }
.section.tone-espresso .dim { color: rgba(232, 220, 208, 0.62) !important; }
.section.tone-espresso .eyebrow { color: var(--spark); }
.section.tone-espresso .eyebrow::before { background: var(--spark) !important; }
.section.tone-espresso .mono.mute,
.section.tone-espresso .mono.faint { color: rgba(232, 220, 208, 0.42) !important; }
.section.tone-espresso .mono.accent { color: #C8856A !important; }
.section.tone-espresso .service-card,
.section.tone-espresso .pillar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(232, 220, 208, 0.14);
}
.section.tone-espresso .service-card:hover,
.section.tone-espresso .pillar:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--spark) !important;
}
.section.tone-espresso .phil-quote {
  background: transparent;
  border: none;
}

/* ── BURST — финальный CTA на терракоте (V4) ──────────────── */
.section.tone-burst::before {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(65, 182, 230, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(0, 0, 0, 0.20) 0%, transparent 60%),
    #8B3326;
}
.section.tone-burst { color: #FAFAF8; }
.section.tone-burst h1,
.section.tone-burst h2,
.section.tone-burst h3 { color: #FAFAF8; }
.section.tone-burst .dim,
.section.tone-burst .mono.faint,
.section.tone-burst .mono.mute {
  color: rgba(250, 250, 248, 0.72) !important;
}
.section.tone-burst .eyebrow { color: rgba(250, 250, 248, 0.85); }
.section.tone-burst .eyebrow::before { background: var(--spark) !important; }
.section.tone-burst .handoff,
.section.tone-burst .handoff-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}
.section.tone-burst .btn.btn-primary {
  background: #FAFAF8;
  color: #8B3326;
  border-color: transparent;
}
.section.tone-burst .btn.btn-primary:hover {
  background: var(--spark);
  color: #2A1810;
  box-shadow: 0 0 24px var(--spark-glow);
}

/* ── На светлых тонах (clay/sand) handoff читается как outline ─ */
.section[class*="tone-"]:not(.tone-burst):not(.tone-espresso) .handoff.handoff-light,
.section[class*="tone-"]:not(.tone-burst):not(.tone-espresso) .handoff {
  background: transparent;
  border-color: rgba(59, 33, 24, 0.18);
}

/* ── Лёгкий "spark needle" — небольшая голубая чёрточка-индикатор
      сверху над контентом тональных секций (опционально) ── */
.section.tone-rose .eyebrow,
.section.tone-clay .eyebrow,
.section.tone-sand .eyebrow,
.section.tone-beige .eyebrow { /* визуальная связь между секциями */ }

/* ── Утилитарный sky-tick (для опциональной замены индексов) ── */
.card-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--spark);
  border-radius: 50%;
  color: var(--spark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.service-card:hover .card-tick {
  background: var(--spark);
  color: #FAFAF8;
  box-shadow: 0 0 16px var(--spark-glow);
}

/* ── Mobile — чуть уменьшаем подсветки чтобы не перегружать ── */
@media (max-width: 720px) {
  .eyebrow::before { width: 18px !important; box-shadow: none; }
  .nav-item::after { display: none; }
}
