/* Homeunity components — requires tokens.css */
html {
        -webkit-text-size-adjust: 100%;
      }
      body {
        font-family: var(--hu-font-sans);
        background: var(--hu-dark);
        color: #fff;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
        width: 100%;
        min-width: 0;
      }
      .mono {
        font-family: var(--hu-font-mono);
      }
      #bg-canvas {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        opacity: 0.42;
      }
      .hu-glass {
        background: rgba(15, 19, 26, 0.62);
        border: 1px solid var(--hu-border);
        backdrop-filter: blur(18px);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
      }
      .nav-link {
        position: relative;
        transition: color 0.25s ease;
      }
      .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0;
        height: 1px;
        background: var(--hu-accent);
        transition: width 0.25s ease;
      }
      .nav-link:hover::after {
        width: 100%;
      }
      .btn-primary {
        border: none;
        font-family: inherit;
        background: var(--hu-accent);
        color: var(--hu-dark);
        font-weight: 800;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
      }
      .btn-primary:hover {
        box-shadow: 0 0 34px rgba(var(--hu-accent-rgb), 0.48);
        transform: translateY(-2px);
      }
      .text-glow {
        text-shadow: 0 0 18px rgba(var(--hu-accent-rgb), 0.25);
      }
      /* No container-type:size + 100cqh — breaks height/clipping in WebKit and some deploy caches */
      .hu-glass:has(> .scan-line) {
        position: relative;
      }
      .scan-line {
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--hu-accent), transparent);
        top: 0;
        z-index: 0;
        pointer-events: none;
        will-change: top;
        animation: hu-scan-line 8s linear infinite;
      }
      .hu-glass-scan-content {
        position: relative;
        z-index: 1;
      }
      @keyframes hu-scan-line {
        0% {
          top: 0;
          opacity: 0;
        }
        5% {
          opacity: 1;
        }
        95% {
          opacity: 1;
        }
        100% {
          top: calc(100% - 1px);
          opacity: 0;
        }
      }
      .icon-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        color: var(--hu-accent);
        background: rgba(var(--hu-accent-rgb), 0.06);
      }
      .mini-map {
        position: relative;
        height: 158px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        overflow: visible;
        background: radial-gradient(circle at 30% 40%, rgba(var(--hu-accent-rgb), 0.16), transparent 40%),
          radial-gradient(circle at 70% 60%, rgba(var(--hu-accent-rgb), 0.12), transparent 35%),
          rgba(255, 255, 255, 0.02);
      }
      .map-node-group {
        position: absolute;
        width: 0;
        height: 0;
        pointer-events: none;
      }
      .map-node {
        position: absolute;
        left: 0;
        top: 0;
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: var(--hu-accent);
        box-shadow: 0 0 14px rgba(var(--hu-accent-rgb), 0.8);
      }
      .map-label {
        position: absolute;
        left: 4px;
        top: 13px;
        transform: translateX(-50%);
        font-family: var(--hu-font-mono);
        font-size: 8px;
        line-height: 1.2;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.52);
        text-transform: uppercase;
        white-space: nowrap;
      }
      .donut {
        width: 120px;
        height: 120px;
        border-radius: 999px;
        background: conic-gradient(var(--hu-accent) var(--fill, 0%), rgba(255, 255, 255, 0.12) 0%);
        display: grid;
        place-items: center;
      }
      .donut::after {
        content: "";
        width: 84px;
        height: 84px;
        border-radius: 999px;
        background: #0f131a;
        border: 1px solid rgba(255, 255, 255, 0.08);
      }
      .phase-step {
        position: relative;
        padding-left: 18px;
      }
      .phase-step::before {
        content: "";
        position: absolute;
        left: 0;
        top: 9px;
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: var(--hu-accent);
        box-shadow: 0 0 12px rgba(var(--hu-accent-rgb), 0.8);
      }
      .partner-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.72);
      }
      a.partner-badge {
        text-decoration: none;
        transition: border-color 0.2s ease, color 0.2s ease;
      }
      a.partner-badge:hover {
        border-color: rgba(var(--hu-accent-rgb), 0.35);
        color: rgba(255, 255, 255, 0.92);
      }
      .footer-nav-link {
        display: block;
        padding: 0.35rem 0;
        line-height: 1.35;
        word-break: break-word;
        hyphens: auto;
      }
      /* In-page <button> / cross-page <a>: без href="# в iframe */
      button.inpage-hit,
      a.inpage-hit {
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        font: inherit;
        color: inherit;
        cursor: pointer;
        text-align: inherit;
        text-decoration: none;
      }
      button.inpage-hit.nav-link,
      a.inpage-hit.nav-link {
        display: inline;
      }
      button.inpage-hit.footer-nav-link,
      a.inpage-hit.footer-nav-link {
        display: block;
        width: 100%;
        text-align: left;
      }
      a.inpage-hit[aria-current="page"] {
        color: rgba(255, 255, 255, 0.95);
      }
      .brand-logo {
        height: 2.5rem;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: left center;
      }
      @media (min-width: 640px) {
        .brand-logo {
          height: 2.85rem;
          max-width: min(18rem, 52vw);
        }
      }
      .footer-brand-logo {
        height: 2.5rem;
        width: auto;
        max-width: min(20rem, 90vw);
        object-fit: contain;
        object-position: left center;
      }
      @media (min-width: 640px) {
        .footer-brand-logo {
          height: 2.75rem;
        }
      }
      #lang-modal {
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(7, 9, 13, 0.94);
        backdrop-filter: blur(10px);
        display: none;
        flex-direction: column;
        padding: 5rem 1.25rem 1.5rem;
        overflow-y: auto;
      }
      #lang-modal.open {
        display: flex;
        flex-direction: column;
      }
      .lang-modal-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 42rem;
        margin: 0 auto;
      }
      @media (min-width: 640px) {
        .lang-modal-grid {
          grid-template-columns: 1fr 1fr;
        }
      }
      .lang-modal-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        background: rgba(15, 19, 26, 0.75);
        color: rgba(255, 255, 255, 0.88);
        font-size: 13px;
        text-align: left;
        width: 100%;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
      }
      .lang-modal-card:hover:not(:disabled) {
        border-color: rgba(var(--hu-accent-rgb), 0.35);
        background: rgba(var(--hu-accent-rgb), 0.06);
      }
      .lang-modal-card:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }
      .lang-modal-card .code {
        font-family: var(--hu-font-mono);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.14em;
        color: var(--hu-accent);
      }
      /* hu-lang-css */
      .hu-lang-desktop {
        position: relative;
      }
      .hu-lang-dropdown-anchor {
        display: none;
        pointer-events: none;
      }
      .hu-lang-desktop:hover .hu-lang-dropdown-anchor,
      .hu-lang-desktop:focus-within .hu-lang-dropdown-anchor {
        display: block;
        pointer-events: auto;
      }
      .hu-lang-dropdown-scroll {
        scrollbar-width: thin;
        scrollbar-color: rgba(51, 65, 85, 0.9) rgb(15, 19, 26);
      }
      .hu-lang-dropdown-scroll::-webkit-scrollbar {
        width: 4px;
      }
      .hu-lang-dropdown-scroll::-webkit-scrollbar-track {
        background: rgb(15, 19, 26);
      }
      .hu-lang-dropdown-scroll::-webkit-scrollbar-thumb {
        background: rgba(51, 65, 85, 0.95);
        border-radius: 2px;
      }
      .hu-lang-bar-btn {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.06em;
        padding: 2px 4px;
        border-radius: 4px;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.45);
        cursor: pointer;
        font-family: inherit;
        transition: color 0.15s, background 0.15s, opacity 0.15s;
      }
      .hu-lang-bar-btn:hover {
        color: var(--hu-accent);
      }
      .hu-lang-bar-btn.is-active {
        color: var(--hu-accent);
        opacity: 1 !important;
      }
      .hu-lang-bar-btn:not(.is-active) {
        opacity: 0.55;
      }
      .hu-lang-bar-sep {
        color: rgba(255, 255, 255, 0.22);
        font-size: 10px;
        user-select: none;
        margin: 0 1px;
      }
      .hu-lang-row {
        display: flex;
        width: 100%;
        text-align: left;
        align-items: center;
        gap: 12px;
        padding: 8px 16px;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.78);
        cursor: pointer;
        font-family: inherit;
        font-size: 12px;
        transition: background 0.15s, color 0.15s;
      }
      .hu-lang-row:hover {
        background: rgba(var(--hu-accent-rgb), 0.08);
        color: #fff;
      }
      .hu-lang-row .hu-lang-row-code {
        font-family: var(--hu-font-mono);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: var(--hu-accent);
        min-width: 2rem;
      }
      .hu-lang-row.is-active {
        background: rgba(var(--hu-accent-rgb), 0.06);
      }
      #nav-section-menu-wrap {
        position: relative;
        flex-shrink: 0;
      }
      #nav-section-menu-dropdown {
        position: absolute;
        right: 0;
        left: auto;
        top: calc(100% + 8px);
        min-width: min(16rem, calc(100vw - 2rem));
        max-width: 18rem;
        padding: 6px 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        background: rgba(15, 19, 26, 0.96);
        backdrop-filter: blur(12px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
        z-index: 60;
      }
      #nav-section-menu-dropdown .nav-section-dropdown-item {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 16px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.65);
        border: none;
        background: transparent;
        cursor: pointer;
        font-family: inherit;
        line-height: 1.35;
      }
      #nav-section-menu-dropdown .nav-section-dropdown-item:hover {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(var(--hu-accent-rgb), 0.08);
      }
      #nav-section-menu-dropdown a.nav-section-dropdown-item {
        text-decoration: none;
      }
      a.nav-link {
        text-decoration: none;
        color: inherit;
      }
@media (prefers-reduced-motion: reduce) {
  .scan-line { animation: none !important; }
  .btn-primary:hover { transform: none; }
}
