/* ============================================================
   Fobens — тема главной страницы (электрик-синий tech).
   Всё заскоуплено под .page-home, чтобы не задеть другие страницы.
   Подключается ТОЛЬКО в index.html.
   ============================================================ */

.page-home {
  --hb-blue: #2f8bff;
  --hb-blue-2: #1e6bff;
  --hb-bright: #5aa8ff;
  --hb-cyan: #7cd4ff;
  --hb-edge: rgba(90, 160, 255, 0.22);
  --hb-edge-soft: rgba(90, 160, 255, 0.12);
  --hb-panel: rgba(9, 18, 38, 0.62);
  --hb-panel-strong: rgba(8, 16, 34, 0.86);
  --accent: #5aa8ff;
}

/* ---------- Фон: глубокий космос + сетка + свечения ---------- */
body.page-home {
  background:
    radial-gradient(1100px 620px at 20% 4%, rgba(47, 139, 255, 0.20), transparent 60%),
    radial-gradient(900px 560px at 92% 8%, rgba(30, 107, 255, 0.16), transparent 62%),
    radial-gradient(700px 500px at 78% 74%, rgba(90, 168, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #04070f 0%, #050a16 44%, #04070f 100%) !important;
}
/* Тонкая техно-сетка + звёзды поверх фона, ниже контента */
body.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(90, 160, 255, 0.045) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(90, 160, 255, 0.045) 1px, transparent 1px) 0 0 / 46px 46px,
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(180, 214, 255, 0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 68% 16%, rgba(180, 214, 255, 0.55), transparent 60%),
    radial-gradient(1.6px 1.6px at 84% 62%, rgba(180, 214, 255, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 32% 74%, rgba(180, 214, 255, 0.5), transparent 60%),
    radial-gradient(1.3px 1.3px at 50% 40%, rgba(180, 214, 255, 0.4), transparent 60%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 92%);
          mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 92%);
  opacity: 0.6;
}
.page-home .page-shell { position: relative; z-index: 1; }

/* ---------- Шапка: синее стекло ---------- */
.page-home .site-header {
  background: linear-gradient(180deg, rgba(9, 18, 38, 0.86), rgba(7, 14, 30, 0.72));
  border: 1px solid var(--hb-edge-soft);
  box-shadow: 0 18px 50px rgba(2, 8, 22, 0.5), 0 0 0 1px rgba(90, 160, 255, 0.05) inset;
}
.page-home .main-nav a:hover,
.page-home .main-nav a.is-active { color: var(--hb-bright); }
.page-home .brand-name { color: #eaf3ff; }

/* ============================================================
   HERO
   ============================================================ */
/* Старый грид героя больше не грид: калькулятор/дашборд уходят вниз */
.page-home .page-home-hero-grid { display: block; }
.page-home .page-home-hero { padding-top: clamp(10px, 2vw, 26px); }

.page-home .hh-hero {
  display: block;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  padding: clamp(18px, 3vw, 48px) clamp(16px, 2.4vw, 40px) clamp(20px, 2.4vw, 40px);
  border-radius: 30px;
  background:
    radial-gradient(720px 460px at 22% 40%, rgba(47, 139, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(9, 18, 40, 0.55), rgba(6, 12, 26, 0.35));
  border: 1px solid var(--hb-edge-soft);
  box-shadow: 0 40px 120px rgba(2, 8, 24, 0.5), inset 0 1px 0 rgba(120, 180, 255, 0.06);
  position: relative;
  overflow: hidden;
}
/* угловые техно-скобки */
.page-home .hh-hero::before,
.page-home .hh-hero::after {
  content: ""; position: absolute; width: 74px; height: 74px; pointer-events: none;
  border: 2px solid rgba(90, 160, 255, 0.35);
}
.page-home .hh-hero::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.page-home .hh-hero::after  { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }

.page-home .hh-wrap {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.2fr) minmax(190px, 0.52fr);
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  min-height: min(72vh, 640px);
}

/* ----- Арт: логотип + кольца + свечение ----- */
.page-home .hh-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.page-home .hh-glow {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 139, 255, 0.42), rgba(30, 107, 255, 0.12) 46%, transparent 70%);
  filter: blur(6px);
  animation: hhPulse 4.6s ease-in-out infinite;
}
.page-home .hh-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(90, 168, 255, 0.28);
  box-shadow: 0 0 24px rgba(47, 139, 255, 0.25), inset 0 0 24px rgba(47, 139, 255, 0.15);
}
.page-home .hh-ring-1 { inset: 0%;  border-color: rgba(90, 168, 255, 0.16); }
.page-home .hh-ring-2 { inset: 9%;  border-width: 2px; border-top-color: rgba(124, 212, 255, 0.85); border-right-color: rgba(90, 168, 255, 0.1); border-bottom-color: rgba(90, 168, 255, 0.1); border-left-color: rgba(90, 168, 255, 0.1); animation: hhSpin 14s linear infinite; }
.page-home .hh-ring-3 { inset: 18%; border-style: dashed; border-color: rgba(90, 168, 255, 0.3); animation: hhSpin 26s linear infinite reverse; }
.page-home .hh-scan {
  position: absolute; inset: 9%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(124, 212, 255, 0.35) 24deg, transparent 60deg);
  -webkit-mask: radial-gradient(closest-side, transparent 82%, #000 83%);
          mask: radial-gradient(closest-side, transparent 82%, #000 83%);
  animation: hhSpin 6s linear infinite;
}
.page-home .hh-logo {
  position: relative; z-index: 2;
  width: 64%; height: 64%; object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(20, 90, 200, 0.55));
  animation: hhFloat 6s ease-in-out infinite;
}
@keyframes hhSpin { to { transform: rotate(360deg); } }
@keyframes hhPulse { 0%,100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes hhFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ----- Копирайт ----- */
.page-home .hh-copy { display: grid; gap: 16px; justify-items: start; text-align: left; }
.page-home .hh-eyebrow {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--hb-bright); font-weight: 700;
}
.page-home .hh-title {
  margin: 0; text-align: left; width: 100%; max-width: 100%;
  font-weight: 800; line-height: 1.03; letter-spacing: 0.01em;
  font-size: clamp(2.1rem, 3.6vw, 3.5rem);
  text-transform: uppercase;
  color: #eef4ff;
  text-shadow: 0 2px 30px rgba(20, 80, 190, 0.35);
}
.page-home .hh-title .hh-accent {
  background: linear-gradient(92deg, #4aa8ff, #7cd4ff 60%, #9fe0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-home .hh-sub {
  margin: 0; text-align: left; max-width: 40ch;
  color: #b9c9e6; font-size: clamp(1rem, 1.12vw, 1.16rem); line-height: 1.55;
}
.page-home .hh-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.page-home .hh-btn-primary {
  background: linear-gradient(135deg, #2f8bff, #1e6bff) !important;
  border: 0 !important; color: #fff !important;
  box-shadow: 0 14px 34px rgba(30, 107, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  padding: 14px 30px; border-radius: 14px; font-weight: 700;
}
.page-home .hh-btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.page-home .hh-btn-ghost {
  background: rgba(30, 80, 170, 0.14); color: #dce9ff;
  border: 1px solid rgba(90, 160, 255, 0.4);
  padding: 14px 30px; border-radius: 14px; font-weight: 700;
}
.page-home .hh-btn-ghost:hover { background: rgba(47, 139, 255, 0.22); border-color: rgba(124, 212, 255, 0.7); }

/* ----- Статистика ----- */
.page-home .hh-stats {
  display: flex; flex-wrap: wrap; gap: 26px 30px; margin-top: 12px;
}
.page-home .hh-stat { display: flex; align-items: center; gap: 12px; }
.page-home .hh-stat-ico {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 13px; color: var(--hb-bright);
  background: rgba(30, 80, 170, 0.18); border: 1px solid rgba(90, 160, 255, 0.28);
  box-shadow: inset 0 0 18px rgba(47, 139, 255, 0.12);
}
.page-home .hh-stat-txt { display: grid; line-height: 1.1; }
.page-home .hh-stat-txt strong { font-size: 1.5rem; color: #eef4ff; font-weight: 800; }
.page-home .hh-stat-txt small { font-size: 0.78rem; color: #93a9cf; margin-top: 2px; }

/* ----- Фичи (правая колонка) ----- */
.page-home .hh-chips { display: grid; gap: 16px; align-content: center; }
.page-home .hh-chip {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 26, 52, 0.7), rgba(9, 18, 38, 0.5));
  border: 1px solid rgba(90, 160, 255, 0.22);
  box-shadow: 0 14px 34px rgba(2, 10, 28, 0.4);
  transition: transform .2s ease, border-color .2s ease;
}
.page-home .hh-chip:hover { transform: translateX(-3px); border-color: rgba(124, 212, 255, 0.6); }
.page-home .hh-chip-ico {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px; color: #eaf3ff;
  background: linear-gradient(135deg, #2f8bff, #1e6bff);
  box-shadow: 0 8px 20px rgba(30, 107, 255, 0.4);
}
.page-home .hh-chip-txt { display: grid; line-height: 1.15; }
.page-home .hh-chip-txt strong { color: #eef4ff; font-size: 1rem; font-weight: 700; }
.page-home .hh-chip-txt small { color: #93a9cf; font-size: 0.8rem; }

/* ----- Нижняя соц-полоса ----- */
.page-home .hh-social {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: clamp(18px, 2.4vw, 34px); padding-top: 20px;
  border-top: 1px solid rgba(90, 160, 255, 0.16);
}
.page-home .hh-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  color: var(--hb-bright); background: rgba(30, 80, 170, 0.16);
  border: 1px solid rgba(90, 160, 255, 0.28); transition: all .2s ease;
}
.page-home .hh-social a:hover { color: #fff; background: linear-gradient(135deg, #2f8bff, #1e6bff); border-color: transparent; }
.page-home .hh-social-sep { width: 1px; height: 22px; background: rgba(90, 160, 255, 0.3); }
.page-home .hh-social-domain { color: #cddcf5; letter-spacing: 0.34em; font-weight: 700; font-size: 0.9rem; }

/* ============================================================
   ПЕРЕКРАСКА ОСТАЛЬНЫХ СЕКЦИЙ (единый tech-стиль)
   ============================================================ */
.page-home .surface,
.page-home .surface-soft,
.page-home .surface-strong {
  background: linear-gradient(180deg, var(--hb-panel), rgba(6, 12, 26, 0.5)) !important;
  border: 1px solid var(--hb-edge-soft) !important;
  box-shadow: 0 30px 80px rgba(2, 8, 22, 0.42), inset 0 1px 0 rgba(120, 180, 255, 0.05) !important;
}
.page-home .eyebrow,
.page-home .meta-label { color: var(--hb-bright) !important; }
.page-home .hero-title-accent {
  background: none !important;
  -webkit-background-clip: border-box !important;
          background-clip: border-box !important;
  -webkit-text-fill-color: #6cc0ff !important;
  color: #6cc0ff !important;
  text-shadow: 0 0 22px rgba(47, 139, 255, 0.35);
}
/* Кнопки на странице → электрик-синий (кроме особо стилизованных) */
.page-home .btn-primary {
  background: linear-gradient(135deg, #2f8bff, #1e6bff) !important;
  border: 0 !important; color: #fff !important;
  box-shadow: 0 12px 30px rgba(30, 107, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.page-home .btn-primary:hover { filter: brightness(1.06); }
.page-home a.text-button,
.page-home .text-button { color: var(--hb-bright) !important; }

/* Карточки услуг / документов / кабинета */
.page-home .service-card,
.page-home .document-card,
.page-home .calc-card,
.page-home .dashboard-signal-card,
.page-home .calc-float {
  background: linear-gradient(180deg, rgba(14, 26, 52, 0.66), rgba(9, 18, 38, 0.46)) !important;
  border: 1px solid rgba(90, 160, 255, 0.18) !important;
  box-shadow: 0 18px 46px rgba(2, 10, 28, 0.4) !important;
}
.page-home .service-card:hover,
.page-home .document-card:hover { border-color: rgba(124, 212, 255, 0.5) !important; }
.page-home .status-live,
.page-home .status-badge { color: #bfe0ff; }
.page-home .calc-num-up { color: #67e0a8; }
.page-home .calc-result--save { border-color: rgba(90, 160, 255, 0.3) !important; }

/* Калькулятор/дашборд — отступ сверху (после нового героя) */
.page-home .calc-section,
.page-home .page-home-dashboard { margin-top: clamp(20px, 3vw, 40px); }

/* Слайдер/инпут акценты */
.page-home .calc-slider::-webkit-slider-thumb { background: #2f8bff; }
.page-home .calc-input-cur { color: var(--hb-bright); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
  .page-home .hh-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr);
    grid-template-areas: "art chips" "copy copy";
  }
  .page-home .hh-art { grid-area: art; max-width: 340px; }
  .page-home .hh-chips { grid-area: chips; }
  .page-home .hh-copy { grid-area: copy; justify-items: center; text-align: center; }
  .page-home .hh-title, .page-home .hh-sub { text-align: center; }
  .page-home .hh-sub { margin-left: auto; margin-right: auto; }
  .page-home .hh-actions, .page-home .hh-stats { justify-content: center; }
}

@media (max-width: 720px) {
  .page-home .hh-hero { padding: 20px 14px 22px; border-radius: 22px; }
  .page-home .hh-hero::before, .page-home .hh-hero::after { width: 46px; height: 46px; }
  .page-home .hh-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "art" "copy" "chips";
    gap: 22px; min-height: 0;
  }
  .page-home .hh-art { max-width: 240px; }
  .page-home .hh-chips { grid-template-columns: 1fr; gap: 12px; }
  .page-home .hh-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .page-home .hh-stats { gap: 16px 22px; justify-content: center; }
  .page-home .hh-stat-txt strong { font-size: 1.25rem; }
  .page-home .hh-actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 440px) {
  .page-home .hh-stats { flex-direction: column; align-items: center; gap: 12px; }
  .page-home .hh-stat { width: 100%; max-width: 260px; }
  .page-home .hh-social-domain { letter-spacing: 0.2em; font-size: 0.8rem; }
}
