

    /* ===== 404 PAGE STYLES — ISOLATED SELECTORS ===== */
    
    /* Контейнер страницы 404 */
    .error404-wrapper {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      position: relative;
      overflow: hidden;
      background: var(--primary-black);
      text-align: center;
    }
    
    /* Фон с частицами */
    .error404-particles {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
    }
    
    .error404-spark {
      position: absolute;
      width: 4px;
      height: 4px;
      background: var(--gold-light);
      border-radius: 50%;
      opacity: 0;
      animation: error404-spark-fly 3s infinite ease-out;
      box-shadow: 0 0 10px var(--gold-light);
    }
    
    @keyframes error404-spark-fly {
      0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
      }
      50% {
        opacity: 0.8;
      }
      100% {
        opacity: 0;
        transform: translate(var(--tx, 0), var(--ty, -100px)) scale(0);
      }
    }
    
    /* Основной контент */
    .error404-content {
      position: relative;
      z-index: 2;
      max-width: 600px;
      padding: 2rem;
    }
    
    /* Анимированная иконка кузницы */
    .error404-icon {
      width: 120px;
      height: 120px;
      margin: 0 auto 2rem;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .error404-anvil {
      font-size: 4rem;
      color: var(--bronze-medium);
      animation: error404-bounce 2s infinite ease-in-out;
      text-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
    }
    
    @keyframes error404-bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }
    
    .error404-hammer {
      position: absolute;
      top: -20px;
      right: -10px;
      font-size: 2.5rem;
      color: var(--gold-light);
      animation: error404-hammer-hit 2s infinite ease-in-out;
      transform-origin: bottom right;
      text-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
    }
    
    @keyframes error404-hammer-hit {
      0%, 100% { transform: rotate(0deg) translate(0, 0); }
      25% { transform: rotate(-30deg) translate(5px, -5px); }
      30% { transform: rotate(10deg) translate(0, 10px); }
    }
    
    /* Заголовок 404 */
    .error404-code {
      font-size: clamp(4rem, 12vw, 8rem);
      font-weight: 700;
      background: linear-gradient(135deg, var(--gold-light), var(--bronze-medium), var(--gold-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin: 0 0 1rem;
      line-height: 1;
      text-shadow: 0 0 30px rgba(218, 165, 32, 0.3);
      animation: error404-glow 3s infinite alternate;
    }
    
    @keyframes error404-glow {
      from { text-shadow: 0 0 20px rgba(218, 165, 32, 0.2); }
      to { text-shadow: 0 0 40px rgba(218, 165, 32, 0.5), 0 0 60px rgba(139, 69, 19, 0.3); }
    }
    
    /* Текст ошибки */
    .error404-title {
      font-size: clamp(1.5rem, 4vw, 2rem);
      color: var(--gold-light);
      margin: 0 0 1rem;
      font-weight: 600;
    }
    
    .error404-text {
      color: #ccc;
      font-size: clamp(0.95rem, 2.5vw, 1.1rem);
      line-height: 1.7;
      margin: 0 0 2rem;
    }
    
    /* Кнопки */
    .error404-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 2rem;
    }
    
    .error404-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.8rem 1.5rem;
      border-radius: var(--border-radius);
      font-weight: 600;
      text-decoration: none;
      transition: var(--transition);
      font-size: 0.95rem;
      cursor: pointer;
      border: none;
    }
    
    .error404-btn-primary {
      background: var(--bronze-gradient);
      color: white;
      box-shadow: var(--shadow-md);
    }
    
    .error404-btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-glow);
    }
    
    .error404-btn-secondary {
      background: transparent;
      color: var(--gold-light);
      border: 2px solid var(--bronze-medium);
    }
    
    .error404-btn-secondary:hover {
      background: rgba(218, 165, 32, 0.1);
      transform: translateY(-3px);
    }
    
    /* Навигация по разделам */
    .error404-links {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 0.8rem;
      max-width: 500px;
      margin: 0 auto;
    }
    
    .error404-link {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 0.6rem 0.8rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(218, 165, 32, 0.2);
      border-radius: var(--border-radius);
      color: #ddd;
      text-decoration: none;
      font-size: 0.9rem;
      transition: var(--transition);
    }
    
    .error404-link:hover {
      background: rgba(218, 165, 32, 0.1);
      border-color: var(--bronze-medium);
      color: var(--gold-light);
      transform: translateY(-2px);
    }
    
    .error404-link i {
      font-size: 1.1rem;
      color: var(--gold-light);
    }
    
    /* Футер 404 */
    .error404-footer {
      position: relative;
      z-index: 2;
      margin-top: 3rem;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      color: #aaa;
      font-size: 0.85rem;
    }
    
    .error404-footer a {
      color: var(--gold-light);
      text-decoration: none;
      transition: var(--transition);
    }
    
    .error404-footer a:hover {
      color: var(--bronze-light);
    }
    
    /* Адаптивность */
    @media (max-width: 480px) {
      .error404-buttons {
        flex-direction: column;
        align-items: center;
      }
      
      .error404-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
      }
      
      .error404-links {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    
    /* Скрытие основного контента на странице 404 */
    .main-header,
    .breadcrumbs,
    .main-content,
    .main-footer {
      display: none !important;
    }
    
    /* ===== SITEMAP TREE — ISOLATED ===== */
    
    .st-page {
      margin: 0; padding: 0;
      background: var(--primary-black);
      min-height: 100vh;
      font-family: inherit;
      overflow-x: hidden;
      overflow-y: auto;
      position: relative;
    }
    .st-page *, .st-page *::before, .st-page *::after { box-sizing: border-box; }
    
    /* Фон */
    .st-bg {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: radial-gradient(ellipse at center, rgba(218,165,32,0.08) 0%, transparent 60%),
                  radial-gradient(ellipse at 20% 80%, rgba(139,69,19,0.06) 0%, transparent 50%),
                  radial-gradient(ellipse at 80% 20%, rgba(184,134,11,0.06) 0%, transparent 50%);
      pointer-events: none; z-index: 0;
    }
    
    /* Искры */
    .st-spark {
      position: fixed;
      width: 4px; height: 4px;
      border-radius: 50%;
      background: var(--gold-light);
      box-shadow: 0 0 10px var(--gold-light), 0 0 20px rgba(218,165,32,0.3);
      pointer-events: none;
      z-index: 1;
      opacity: 0;
      animation: st-spark-fly 3s infinite ease-out;
    }
    @keyframes st-spark-fly {
      0% { opacity: 1; transform: translate(0,0) scale(1); }
      100% { opacity: 0; transform: translate(var(--st-tx,0), var(--st-ty,-120px)) scale(0); }
    }
    
    /* Заголовок */
    .st-header {
      text-align: center;
      padding: 40px 20px 30px;
      position: relative;
      z-index: 2;
    }
    .st-header-icon {
      font-size: 3rem;
      background: linear-gradient(135deg, var(--gold-light), var(--bronze-medium), var(--gold-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: st-header-pulse 2s infinite alternate;
      margin-bottom: 15px;
      display: inline-block;
    }
    @keyframes st-header-pulse {
      0% { filter: drop-shadow(0 0 10px rgba(218,165,32,0.3)); transform: scale(1); }
      100% { filter: drop-shadow(0 0 25px rgba(218,165,32,0.6)); transform: scale(1.05); }
    }
    .st-header h1 {
      font-size: 2.2rem;
      font-weight: 700;
      background: linear-gradient(135deg, #FFD700, #DAA520, #F4A460, #FFD700);
      background-size: 300% 300%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: st-shimmer 4s linear infinite;
      margin: 0 0 8px;
    }
    .st-header p {
      color: var(--steel-light);
      font-size: 1.1rem;
      margin: 0;
    }
    @keyframes st-shimmer {
      0% { background-position: 0% 50%; }
      100% { background-position: 300% 50%; }
    }
    
    /* Обёртка дерева */
    .st-tree-wrap {
      position: relative;
      z-index: 2;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px 60px;
    }
    
    /* Корень */
    .st-root {
      display: flex;
      justify-content: center;
      margin-bottom: 50px;
      opacity: 0;
      animation: st-fade 0.6s 0.2s forwards;
    }
    @keyframes st-fade { to { opacity: 1; } }
    
    .st-root-card {
      background: linear-gradient(135deg, rgba(218,165,32,0.15), rgba(139,69,19,0.1));
      border: 2px solid var(--gold-light);
      border-radius: 20px;
      padding: 20px 40px;
      display: flex;
      align-items: center;
      gap: 15px;
      text-decoration: none;
      transition: all 0.4s ease;
      position: relative;
      overflow: hidden;
    }
    .st-root-card::before {
      content: '';
      position: absolute;
      top: -50%; left: -50%;
      width: 200%; height: 200%;
      background: linear-gradient(45deg, transparent 40%, rgba(255,215,0,0.1) 50%, transparent 60%);
      animation: st-root-shine 3s infinite;
    }
    @keyframes st-root-shine {
      0% { transform: translateX(-100%) rotate(45deg); }
      100% { transform: translateX(100%) rotate(45deg); }
    }
    .st-root-card:hover {
      transform: translateY(-5px) scale(1.03);
      box-shadow: 0 10px 40px rgba(218,165,32,0.4);
      border-color: var(--bronze-light);
    }
    .st-root-icon {
      width: 56px; height: 56px;
      background: var(--bronze-gradient);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: white;
      box-shadow: 0 0 20px rgba(218,165,32,0.4);
      position: relative;
      z-index: 1;
    }
    .st-root-text { position: relative; z-index: 1; }
    .st-root-text strong {
      display: block;
      font-size: 1.3rem;
      color: var(--gold-light);
    }
    .st-root-text span {
      font-size: 0.9rem;
      color: var(--steel-light);
    }
    
    /* Ветки */
    .st-branches {
      display: flex;
      justify-content: center;
      gap: 30px;
      flex-wrap: wrap;
    }
    
    .st-branch {
      flex: 0 0 280px;
      opacity: 0;
      transform: translateY(15px);
      animation: st-branch-in 0.5s forwards;
    }
    .st-branch:nth-child(1) { animation-delay: 0.4s; }
    .st-branch:nth-child(2) { animation-delay: 1.0s; }
    .st-branch:nth-child(3) { animation-delay: 1.6s; }
    
    @keyframes st-branch-in {
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* Заголовок ветви */
    .st-branch-head {
      background: linear-gradient(135deg, rgba(26,26,26,0.9), rgba(45,45,45,0.9));
      border: 1px solid rgba(218,165,32,0.4);
      border-radius: 14px;
      padding: 14px 18px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 12px;
      user-select: none;
      position: relative;
      overflow: hidden;
    }
    .st-branch-head::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(135deg, transparent 0%, rgba(218,165,32,0.08) 50%, transparent 100%);
      background-size: 200% 200%;
      animation: st-branch-shimmer 3s linear infinite;
      pointer-events: none;
    }
    @keyframes st-branch-shimmer {
      0% { background-position: 0% 50%; }
      100% { background-position: 200% 50%; }
    }
    .st-branch-head:hover {
      border-color: var(--bronze-medium);
      box-shadow: 0 4px 20px rgba(218,165,32,0.2);
      transform: translateY(-2px);
    }
    .st-branch-icon {
      width: 42px; height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      color: white;
      flex-shrink: 0;
      position: relative;
      z-index: 1;
    }
    .st-branch-commercial .st-branch-icon { background: linear-gradient(135deg, #4682B4, #5F9EA0, #B0C4DE); }
    .st-branch-artistic .st-branch-icon { background: linear-gradient(135deg, #8B4513, #D2691E, #F4A460); }
    .st-branch-info .st-branch-icon { background: linear-gradient(135deg, #2d2d2d, #3d3d3d, #4d4d4d); }
    
    .st-branch-label {
      flex: 1;
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--gold-light);
      position: relative;
      z-index: 1;
    }
    .st-branch-arrow {
      color: var(--steel-light);
      font-size: 0.8rem;
      transition: transform 0.3s ease;
      position: relative;
      z-index: 1;
    }
    .st-branch.open .st-branch-arrow { transform: rotate(90deg); color: var(--gold-light); }
    
    /* Листья — скрыты по умолчанию */
    .st-leaves {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
      opacity: 0;
      margin-top: 0;
      padding-left: 21px;
      position: relative;
    }
    .st-branch.open .st-leaves {
      max-height: 700px;
      opacity: 1;
      margin-top: 10px;
    }
    
    .st-leaf {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      margin-bottom: 6px;
      color: #ccc;
      text-decoration: none;
      font-size: 0.95rem;
      border-radius: 10px;
      transition: all 0.3s ease;
      position: relative;
      background: rgba(255,255,255,0.02);
      border: 1px solid transparent;
    }
    .st-leaf::before {
      content: '';
      position: absolute;
      left: -16px;
      top: 50%;
      width: 14px;
      height: 2px;
      background: linear-gradient(90deg, rgba(218,165,32,0.4), rgba(218,165,32,0.1));
      border-radius: 1px;
    }
    .st-leaf:hover {
      background: rgba(218,165,32,0.1);
      border-color: rgba(218,165,32,0.3);
      color: var(--gold-light);
      transform: translateX(8px);
    }
    .st-leaf-icon {
      width: 30px; height: 30px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      background: rgba(218,165,32,0.1);
      color: var(--bronze-medium);
      flex-shrink: 0;
    }
    .st-leaf:hover .st-leaf-icon {
      background: var(--bronze-gradient);
      color: white;
      box-shadow: 0 0 10px rgba(218,165,32,0.3);
    }
    
    /* Кнопка Написать */
    .st-cta {
      text-align: center;
      margin-top: 50px;
      position: relative;
      z-index: 2;
    }
    .st-cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 32px;
      background: linear-gradient(135deg, #DAA520, #B8860B, #D2691E);
      background-size: 200% 200%;
      color: white;
      border: none;
      border-radius: 14px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 20px rgba(218,165,32,0.3);
      animation: st-cta-glow 2s infinite alternate;
      text-decoration: none;
    }
    @keyframes st-cta-glow {
      0% { background-position: 0% 50%; box-shadow: 0 4px 20px rgba(218,165,32,0.3); }
      100% { background-position: 200% 50%; box-shadow: 0 6px 30px rgba(218,165,32,0.5); }
    }
    .st-cta-btn:hover {
      transform: translateY(-4px) scale(1.05);
      box-shadow: 0 8px 40px rgba(218,165,32,0.6);
    }
    .st-cta-btn i { font-size: 1.3rem; }
    
    /* Модальное окно */
    .st-modal {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.85);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 20px;
      backdrop-filter: blur(5px);
    }
    .st-modal.active { display: flex; }
    .st-modal-box {
      background: linear-gradient(135deg, #1a1a2e, #16213e);
      border: 2px solid rgba(218,165,32,0.4);
      border-radius: 20px;
      padding: 30px;
      max-width: 420px;
      width: 100%;
      position: relative;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
      animation: st-modal-in 0.3s ease;
    }
    @keyframes st-modal-in {
      from { opacity: 0; transform: scale(0.9) translateY(20px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .st-modal-close {
      position: absolute;
      top: 15px; right: 15px;
      background: none;
      border: none;
      color: var(--steel-light);
      font-size: 1.3rem;
      cursor: pointer;
      width: 36px; height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .st-modal-close:hover {
      background: rgba(255,255,255,0.1);
      color: var(--gold-light);
    }
    .st-modal-title {
      font-size: 1.4rem;
      color: var(--gold-light);
      margin: 0 0 5px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .st-modal-title i { color: #0088cc; }
    .st-modal-sub {
      color: var(--steel-light);
      font-size: 0.9rem;
      margin: 0 0 20px;
    }
    .st-modal-field { margin-bottom: 15px; }
    .st-modal-field label {
      display: block;
      color: #ddd;
      font-size: 0.9rem;
      margin-bottom: 5px;
    }
    .st-modal-field input,
    .st-modal-field textarea {
      width: 100%;
      padding: 10px 14px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(218,165,32,0.3);
      border-radius: 10px;
      color: white;
      font-size: 0.95rem;
      font-family: inherit;
      transition: border-color 0.2s;
    }
    .st-modal-field input:focus,
    .st-modal-field textarea:focus {
      outline: none;
      border-color: var(--bronze-medium);
      box-shadow: 0 0 0 2px rgba(218,165,32,0.2);
    }
    .st-modal-field textarea { min-height: 80px; resize: vertical; }
    .st-modal-send {
      width: 100%;
      padding: 12px;
      background: linear-gradient(135deg, #DAA520, #B8860B);
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .st-modal-send:hover {
      background: linear-gradient(135deg, #FFD700, #DAA520);
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(218,165,32,0.4);
    }
    .st-modal-send:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }
    .st-modal-status {
      margin-top: 12px;
      padding: 10px;
      border-radius: 8px;
      font-size: 0.9rem;
      text-align: center;
      display: none;
    }
    .st-modal-status.st-success {
      display: block;
      background: rgba(40,167,69,0.15);
      border: 1px solid rgba(40,167,69,0.3);
      color: #28a745;
    }
    .st-modal-status.st-error {
      display: block;
      background: rgba(220,53,69,0.15);
      border: 1px solid rgba(220,53,69,0.3);
      color: #dc3545;
    }
    
    /* Футер */
    .st-footer {
      text-align: center;
      padding: 30px 20px;
      border-top: 1px solid rgba(255,255,255,0.08);
      color: #aaa;
      font-size: 0.85rem;
      position: relative;
      z-index: 2;
    }
    .st-footer a { color: var(--gold-light); text-decoration: none; }
    .st-footer a:hover { color: var(--bronze-light); }
    
    /* ===== АДАПТИВНОСТЬ ===== */
    
    @media (max-width: 900px) {
      .st-branches { gap: 20px; }
      .st-branch { flex: 0 0 240px; }
      .st-header h1 { font-size: 1.8rem; }
    }
    
    @media (max-width: 768px) {
      .st-tree-wrap { padding: 0 15px 40px; }
      .st-branches { flex-direction: column; gap: 20px; align-items: center; }
      .st-branch { flex: none; width: 100%; max-width: 360px; }
      .st-root-card { flex-direction: column; text-align: center; padding: 16px 24px; }
      .st-root-icon { margin-bottom: 8px; }
      .st-header { padding: 30px 15px 20px; }
      .st-header h1 { font-size: 1.5rem; }
      .st-header p { font-size: 0.95rem; }
      .st-header-icon { font-size: 2.2rem; }
      .st-leaves { padding-left: 16px; }
      .st-leaf::before { left: -14px; width: 12px; }
      .st-modal-box { padding: 24px 20px; }
      .st-cta-btn { padding: 12px 24px; font-size: 1rem; }
    }
    
    @media (max-width: 480px) {
      .st-branch { max-width: 100%; }
      .st-branch-head { padding: 12px 14px; }
      .st-branch-label { font-size: 0.95rem; }
      .st-leaf { padding: 8px 12px; font-size: 0.9rem; }
      .st-header h1 { font-size: 1.3rem; }
      .st-footer { font-size: 0.8rem; }
    }
