html, body { height: 100%; overflow: hidden; }

  body {
    margin: 0;
    background: rgb(var(--c-bg));
    color: rgb(var(--c-txt));
    font-family: Inter, system-ui, sans-serif;
  }

  #scene { position: fixed; inset: 0; display: block; }

  .ui { position: fixed; z-index: 10; }

  .label-mono {
    font-family: "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 11px;
    color: rgb(var(--c-muted));
  }

  #topbar {
    top: 0; left: 0; right: 0; z-index: 15;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 10px 24px;
    background: linear-gradient(to bottom, rgb(var(--c-bg) / .72), rgb(var(--c-bg) / 0));
    backdrop-filter: blur(6px);
  }
  #topbar .label-mono:first-child { color: rgb(var(--c-txt)); }

  /* Иконка кнопки переключения темы */
  html:not(.dark) .i-sun { display: none; }
  html.dark .i-moon { display: none; }

  /* Кнопки — как .btn сайта */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 44px; padding: 0 20px;
    border-radius: 6px;
    font-size: 13px; font-weight: 500; line-height: 1;
    color: rgb(var(--c-txt)); text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
  }
  .btn-ghost { border: 1px solid rgb(var(--c-brd)); background: rgb(var(--c-card) / .55); backdrop-filter: blur(6px); }
  .btn-ghost:hover { border-color: rgb(var(--c-accent)); color: rgb(var(--c-accent)); }
  .btn-primary { background: rgb(var(--c-accent)); border: 1px solid rgb(var(--c-accent)); color: #fff; }
  .btn-primary:hover { background: rgb(var(--c-accentdeep)); border-color: rgb(var(--c-accentdeep)); }
  .btn svg { width: 16px; height: 16px; flex: none; }

  .btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 4px; }
  .btn-icon svg { width: 18px; height: 18px; }


  /* Виньетка */
  #vignette {
    inset: 0; pointer-events: none; z-index: 5;
    background: radial-gradient(ellipse at center, transparent 52%, rgb(var(--c-dglow) / .55) 100%);
    transition: opacity .4s;
  }
  html:not(.dark) #vignette { opacity: .45; }

  @media (max-width: 639.98px) {
    #topbar { padding: 8px 16px; }
    #topbar .tb-note { display: none; }
  }

  #loader {
    inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgb(var(--c-bg)); z-index: 20;
    transition: opacity 1.6s ease;
  }
  #loader.done { opacity: 0; pointer-events: none; }
  #loader .label-mono { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .4; } }

  /* ---------- Финальный экран (hero) ---------- */
  #finale {
    inset: 0; z-index: 12;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 24px 56px;
    pointer-events: none;
    opacity: 0; visibility: hidden;
    transition: opacity 1.1s ease .2s, visibility 0s linear 1.3s;
  }
  #finale.show {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 1.1s ease .2s;
  }
  .finale-card {
    max-width: 720px;
    display: flex; flex-direction: column; align-items: center; gap: 22px;
  }
  .eyebrow { display: none; }   /* убрано по запросу */
  .finale-title {
    margin: 0;
    font-size: 62px; font-weight: 500; line-height: 1.06;
  }
  .finale-tags {
    display: flex; align-items: center; gap: 14px;
    margin-top: -10px;
  }
  .finale-tags > span:not(.finale-tags-dot) {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgb(var(--c-muted));
  }
  .finale-tags-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgb(var(--c-accent));
  }
  .finale-sub {
    margin: 0; max-width: 560px;
    color: rgb(var(--c-muted)); font-size: 18px; line-height: 1.6;
  }
  .finale-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-top: 2px; }
  .finale-actions .btn svg { width: 17px; height: 17px; flex: none; }
  .finale-note { display: none; }   /* убрано по запросу */
  @media (max-width: 1023.98px) {
    #finale { padding: 24px 32px; }
    .finale-title { font-size: 48px; }
  }
  @media (max-width: 639.98px) {
    #finale { padding: 20px 20px; }
    .finale-card { gap: 16px; }
    .finale-title { font-size: 34px; }
    .finale-sub { font-size: 15px; }
  }
  /* ---------- Попап контактов: матовое стекло ---------- */
  #contacts {
    inset: 0; z-index: 30;
    display: flex; align-items: center; justify-content: center;
    padding: 28px 24px;
    background: rgb(var(--c-bg) / .38);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .45s ease, visibility 0s linear .45s;
  }
  #contacts.show {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .45s ease;
  }
  .contacts-card {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 56px);
    overflow: auto;
    display: flex; flex-direction: column; gap: 20px;
    padding: 40px 44px 36px;
    /* без рамок и подложки — просто контент поверх матового стекла */
    background: none;
    border: 0;
    box-shadow: none;
  }
  .contacts-x { position: absolute; top: 18px; right: 18px; }
  .contacts-eyebrow {
    color: rgb(var(--c-accent));
    font-size: 12px;
    font-family: "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .contacts-title {
    margin: 0; font-size: 44px; font-weight: 500; line-height: 1.08;
    align-self: center; text-align: center;
  }
  .contacts-eyebrow { align-self: center; }
  .contacts-grid {
    display: flex; flex-direction: column; gap: 4px;
    align-items: stretch;
  }
  .contacts-info,
  .contacts-row {
    display: flex; flex-direction: row; gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .contacts-row { gap: 60px; }
  .contacts-item {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 12px;
    margin: 0 -12px;
    border-radius: 8px;
    color: rgb(var(--c-txt)); text-decoration: none;
    text-align: left;
    transition: color .2s, background-color .2s;
  }
  .contacts-item:hover { color: rgb(var(--c-accent)); background: rgb(var(--c-accent) / .07); }
  .contacts-item:hover .contacts-value { color: rgb(var(--c-accent)); }
  .contacts-item svg { width: 20px; height: 20px; flex: none; color: rgb(var(--c-accent)); }
  .contacts-label { display: block; font-size: 11px; color: rgb(var(--c-muted)); font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
  .contacts-value { display: block; font-size: 15px; margin-top: 2px; transition: color .2s; word-break: break-word; }
  .contacts-phone { font-size: 16px; font-weight: 500; }
  .contacts-map {
    border-radius: 12px; overflow: hidden;
    width: 100%; height: 34vh; min-height: 240px;
  }
  /* Стилизация карты под дизайн: приглушённые цвета + тонирование
     в фирменный тизиловый оттенок через CSS-фильтры */
  .contacts-map iframe {
    width: 100%; height: 100%; border: 0; display: block;
    filter: grayscale(.55) saturate(.75) sepia(.22) hue-rotate(122deg) brightness(.98);
  }
  @media (max-width: 860px) {
    .contacts-map { height: 30vh; }
    .contacts-info { gap: 8px 28px; }
    .contacts-row { gap: 8px 28px; }
    .contacts-title { font-size: 32px; }
    .contacts-card { padding: 28px 22px 24px; }
  }

  /* Пропустить: только во время анимации */  #skip-btn {
    right: 24px; bottom: 24px; z-index: 14;
    padding: 10px 20px;
    font-size: 13px; font-weight: 500; line-height: 1;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--c-txt));
    background: transparent;
    border: 1px solid rgb(var(--c-txt));
    border-radius: 6px;
    cursor: pointer;
    transition: opacity .4s, border-color .2s, color .2s;
  }
  #skip-btn:hover { border-color: rgb(var(--c-accent)); color: rgb(var(--c-accent)); }
  #skip-btn.hidden { opacity: 0; pointer-events: none; }

  @media (max-width: 639.98px) {
    #skip-btn { right: 16px; bottom: 16px; }
  }
