html.orbit footer {
  --foreground: #fff;
  --muted-foreground: #8d8c95;
  --border: #2a2a30;
  --background: #08080a;
  background-color: var(--background) !important;
  color: var(--foreground) !important;
}

html.orbit footer .footer-text-strong {
  color: var(--foreground) !important;
}

/* Keep the original metrics wherever the text wraps or is centered. */
html.orbit footer .footer-text-strong:not(:has(.fx-shine)) {
  font-family: 'Inter Tight', Manrope, Arial, sans-serif;
  font-weight: 500;
}

html.orbit footer .footer-text-strong .fx-shine {
  background: var(--holgo-brand) !important;
  color: #fff !important;
  font: 500 11px/1 'JetBrains Mono', monospace;
  border-radius: 50% !important;
}

html.orbit footer :is(.footer-text-soft, .footer-link, .orbit-footer-nav > a, .footer-text-soft-bottom) {
  color: var(--muted-foreground) !important;
}

html.orbit footer > :is(.orbit-footer-nav, div:last-child) {
  border-color: var(--border);
}

/* Keep the existing wordmark and arrow in place. */
html.orbit footer .orbit-footer-logo,
html.orbit footer .orbit-footer-logo span {
  color: var(--muted-foreground);
}

html.orbit footer :is(.footer-link, .orbit-footer-nav > a, .orbit-footer-logo):is(:hover, :focus-visible),
html.orbit footer .orbit-footer-logo:is(:hover, :focus-visible) span {
  color: var(--foreground) !important;
}

html.orbit footer .footer-link::after {
  content: none;
}

html.orbit footer a:focus-visible {
  outline: 2px solid #9a9cff;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  /* Match the homepage clearance below the credits for the fixed chat launcher. */
  html.orbit[data-orbit-page]:not([data-orbit-page="home"]) footer {
    padding-bottom: 51px;
  }
}

/* 21.11 Иван (вторая правка): шрифты как в образце v3 — Inter Tight; колонки 15px, заголовки 500, низ 12px #6d6c74. */
html.orbit footer :is(.footer-text-soft, .footer-link, .footer-text-strong, .orbit-footer-nav > a, .footer-text-soft-bottom) {
  font-family: 'Inter Tight', Manrope, Arial, sans-serif !important;
  letter-spacing: 0 !important;
}
html.orbit footer :is(.footer-text-soft, .footer-link) { font-size: 15px !important; line-height: 1.55 !important; }
html.orbit footer .footer-text-strong:not(:has(.fx-shine)) { font-size: 15px !important; font-weight: 500 !important; }
html.orbit footer .footer-text-strong:has(.fx-shine) { font-size: 17px !important; font-weight: 600 !important; letter-spacing: -.02em !important; }
html.orbit footer :is(.orbit-footer-nav > a) { font-size: 12px !important; font-weight: 400 !important; }
html.orbit footer .footer-text-soft-bottom { font-size: 12px !important; color: #6d6c74 !important; }
html.orbit footer .footer-text-strong .fx-shine { translate: none !important; }

/* Огромное «holgo» — глубоко тёмное, как .foot-word образца: градиент #2a2a30 → #08080a. */
html.orbit footer .orbit-footer-logo,
html.orbit footer .orbit-footer-logo span {
  background: linear-gradient(180deg, #2a2a30, #08080a 90%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
html.orbit footer .orbit-footer-logo:is(:hover, :focus-visible),
html.orbit footer .orbit-footer-logo:is(:hover, :focus-visible) span {
  background: linear-gradient(180deg, #3a3a42, #08080a 90%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Логотип в подвале — ссылка на главную. */
html.orbit footer .orbit-footer-home { width: fit-content; position: relative; }
html.orbit footer .orbit-footer-home-link { position: absolute; inset: -6px; border-radius: 8px; z-index: 1; }
html.orbit footer .orbit-footer-home-link:focus-visible { outline: 2px solid #9a9cff; outline-offset: 4px; border-radius: 6px; }

/* Шапка уезжает вверх, когда показался подвал. */
html.orbit header { transition: transform .35s cubic-bezier(.2,.7,.2,1) !important; }
html.orbit.orbit-footer-in header { transform: translateY(-110%) !important; }

/* Телефон: колонки узкие — шрифт образца, но мельче, чтобы строки не переносились иначе, чем было. */
@media (max-width: 760px) {
  html.orbit footer :is(.footer-text-soft, .footer-link) { font-size: 11.5px !important; line-height: 1.9 !important; }
  html.orbit footer .footer-link { white-space: nowrap; }
  html.orbit footer .orbit-footer-nav > a { font-size: 10px !important; white-space: nowrap; }
  html.orbit footer .footer-text-strong:not(:has(.fx-shine)) { font-size: 13px !important; }
  html.orbit footer .footer-text-strong:has(.fx-shine) { font-size: 14px !important; white-space: nowrap; }
}

/* 21.11 Иван: документы в подвале — без руки, с белым кружком, как все ссылки подвала. */
html.orbit body footer a[href]:is([href^="/personal-data-consent"],[href^="/privacy-policy"],[href^="/terms-of-service"],[href^="/cookie-policy"],[href^="/copyright"],[href*="ofert"]),
html.orbit body footer a[href]:is([href^="/personal-data-consent"],[href^="/privacy-policy"],[href^="/terms-of-service"],[href^="/cookie-policy"],[href^="/copyright"],[href*="ofert"]) * { cursor: default !important; }

/* Главная: между тёмным «Начнём с вашей задачи» и подвалом не должно просвечивать светлое (дробные пиксели). */
html.orbit[data-orbit-page="home"] footer { box-shadow: 0 -3px 0 #08080a; }

/* 21.11 Иван: подвал был на целый экран — «holgo» меньше (22vw → 13vw), поля чуть уже. Только компьютер. */
@media (min-width: 761px) {
  /* 21.11 Иван: размер подвала оставить, а «holgo» вернуть прежним (22vw) — пусть наезжает на строки ниже. */
  html.orbit footer .orbit-footer-logo { font-size: 22vw !important; padding-top: 16px !important; padding-bottom: 0 !important;
    height: calc(13vw * .9 + 36px); overflow: visible; position: relative; z-index: 0; }
  html.orbit footer > div:first-child { padding-top: 40px !important; padding-bottom: 24px !important; }
}

/* 21.11 Иван: большое «holgo» не нажимается. */
html.orbit footer .orbit-footer-logo { pointer-events: none !important; }

/* 22.11 Иван: на широком мониторе подвал казался уже страницы — колонки и «holgo» были ограничены 1550px по центру,
   а шапка и страница идут во всю ширину с полем 56px. Выравниваем подвал по шапке (только компьютер). */
@media (min-width: 761px) {
  html.orbit footer > .max-w-7xl,
  html.orbit footer > .orbit-footer-logo {
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 56px !important;
  }
}

/* 22.11 Иван: шапка уезжает заранее, за ~300px до тёмного финального блока (html.hg-cta-near ставит final-cta.js). */
html.orbit.hg-cta-near header { transform: translateY(-110%) !important; }
