/* ФОРТУНА: единая стеклянная шапка всех шаблонов, 26.10.2026 */
:root {
  --fortuna-header-side: clamp(20px, 5.45vw, 104px);
  --fortuna-header-top: 26px;
  --fortuna-header-height: 76px;
  --fortuna-header-fg: #20211F;
  --fortuna-header-bronze: #9A7448;
}
html body header#top.topbar.fortuna-unified-header,
html body header.topbar.fortuna-unified-header {
  position: fixed !important;
  z-index: 600 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  left: var(--fortuna-header-side) !important;
  right: var(--fortuna-header-side) !important;
  top: var(--fortuna-header-top) !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  height: var(--fortuna-header-height) !important;
  margin: 0 !important;
  padding: 10px clamp(14px, 1.65vw, 29px) !important;
  border-radius: 26px !important;
  border: 1px solid rgba(255,255,255,.83) !important;
  background: linear-gradient(112deg, rgba(251,248,243,.82), rgba(248,246,240,.72)) !important;
  box-shadow: 0 16px 42px rgba(34,32,29,.11), inset 0 1px 0 rgba(255,255,255,.72) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.32) !important;
  backdrop-filter: blur(22px) saturate(1.32) !important;
  transform: none !important;
  gap: clamp(10px, 2.1vw, 32px) !important;
  isolation: isolate;
}
html body header.topbar.fortuna-unified-header > .brand,
html body header.topbar.fortuna-unified-header a.fortuna-text-logo {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(8px, 1vw, 13px) !important;
  width: max-content !important;
  max-width: min(42%, 380px) !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 auto 0 0 !important;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  color: #20211F !important;
}
html body header#top.topbar.fortuna-unified-header .fortuna-text-logo__name {
  flex: 0 0 auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 300 !important;
  font-size: clamp(26px, 2vw, 35px) !important;
  letter-spacing: .16em !important;
  line-height: 1.08 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  color: #20211F !important;
}
html body header#top.topbar.fortuna-unified-header .fortuna-text-logo__descriptor {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 3px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 2px 0 2px 12px !important;
  border: 0 !important;
  border-left: 1px solid rgba(154,116,72,.72) !important;
  font: 400 clamp(12px, 1vw, 15px)/1.15 'Helvetica Neue',Arial,sans-serif !important;
  text-transform: none !important;
  letter-spacing: .05em !important;
  text-align: left !important;
  white-space: nowrap !important;
  color: #9A7448 !important;
}
html body header#top.topbar.fortuna-unified-header .fortuna-text-logo__descriptor span {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  white-space: nowrap !important;
}
html body header.topbar.fortuna-unified-header nav.nav {
  display: flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-direction: row !important;
  gap: clamp(11px, 1.9vw, 30px) !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
html body header.topbar.fortuna-unified-header nav.nav > a {
  display: block !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  font-size: clamp(11px, 0.8142vw, 13px) !important;
  font-weight: 650 !important;
  letter-spacing: .065em !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  color: #20211F !important;
}
html body header.topbar.fortuna-unified-header nav.nav > a:hover,
html body header.topbar.fortuna-unified-header nav.nav > a:focus-visible {
  color: #9A7448 !important;
}
html body header.topbar.fortuna-unified-header .top-cta {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 43px !important;
  margin: 0 !important;
  padding: 10px clamp(13px, 1.5vw, 23px) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.84) !important;
  background: rgba(255,255,255,.63) !important;
  box-shadow: 0 6px 19px rgba(46,39,31,.06), inset 0 1px 0 rgba(255,255,255,.78) !important;
  font-size: clamp(11px, 0.8614vw, 13px) !important;
  font-weight: 650 !important;
  letter-spacing: .025em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  color: #20211F !important;
  cursor: pointer !important;
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease !important;
}
html body header.topbar.fortuna-unified-header .top-cta:hover {
  background: rgba(255,255,255,.85) !important;
  transform: translateY(-1px) !important;
}
html body header.topbar.fortuna-unified-header .spatial-mobile-cta,
html body header.topbar.fortuna-unified-header .menu-btn {display:none !important}
html body header.topbar.fortuna-unified-header :is(a,button):focus-visible {
  outline: 2px solid #9A7448 !important;
  outline-offset: 4px !important;
}
/* Prevent a static legacy header from creating duplicate logo/nav. */
html body .fortuna-replaced-header {display:none !important}
/* Keep anchor destinations visible below the fixed glass header. */
html body :is(#projects,#services,#studio,#contacts,.project-rubric,.project-section-nav,[id^="project-"]) {
  scroll-margin-top: calc(var(--fortuna-header-top) + var(--fortuna-header-height) + 18px);
}
/* Tablet and mobile: one floating bar and accessible dropdown */
@media (max-width:1180px) {
  :root {--fortuna-header-side:clamp(14px, 3.5vw, 42px);--fortuna-header-height:70px;--fortuna-header-top:15px}
  html body header.topbar.fortuna-unified-header nav.nav {display:none !important}
  html body header.topbar.fortuna-unified-header .top-cta {margin-left:auto !important}
  html body header.topbar.fortuna-unified-header .menu-btn {
    display:inline-flex !important;flex:0 0 auto !important;align-items:center !important;justify-content:center !important;
    min-height:42px !important;min-width:64px !important;padding:8px 13px !important;margin:0 !important;
    border-radius:999px !important;border:1px solid rgba(255,255,255,.76) !important;
    background:rgba(255,255,255,.62) !important;box-shadow:none !important;
    color:#20211F !important;font-size:14px !important;cursor:pointer !important;
  }
  html body header.topbar.fortuna-unified-header.fortuna-menu-open nav.nav {
    display:flex !important;position:absolute !important;top:calc(100% + 10px) !important;right:0 !important;
    width:min(360px,100%) !important;max-width:calc(100vw - 28px) !important;height:auto !important;
    padding:16px !important;box-sizing:border-box !important;margin:0 !important;
    align-items:stretch !important;flex-direction:column !important;justify-content:flex-start !important;gap:4px !important;
    background:rgba(250,248,243,.96) !important;
    -webkit-backdrop-filter:blur(24px) saturate(1.25) !important;backdrop-filter:blur(24px) saturate(1.25) !important;
    border:1px solid rgba(255,255,255,.9) !important;border-radius:24px !important;
    box-shadow:0 22px 55px rgba(35,30,25,.16) !important;transform:none !important;
  }
  html body header.topbar.fortuna-unified-header.fortuna-menu-open nav.nav > a {
    display:block !important;padding:14px 13px !important;font-size:14px !important;border-radius:12px !important;
  }
  html body header.topbar.fortuna-unified-header nav.nav > a:hover {background:rgba(232,225,214,.6) !important}
  html body header.topbar.fortuna-unified-header.fortuna-menu-open .spatial-mobile-cta {
    display:block !important;padding:13px 14px !important;width:100% !important;text-align:left !important;
    border-radius:12px !important;background:rgba(154,116,72,.12) !important;border:0 !important;
    color:#20211F !important;
  }
}
@media (max-width:760px) {
  :root {--fortuna-header-side:12px;--fortuna-header-height:65px;--fortuna-header-top:12px}
  html body header.topbar.fortuna-unified-header {padding:8px 13px !important;border-radius:21px !important;gap:8px !important}
  html body header.topbar.fortuna-unified-header > .brand,
  html body header.topbar.fortuna-unified-header a.fortuna-text-logo {max-width:calc(100% - 76px) !important;gap:7px !important}
  html body header#top.topbar.fortuna-unified-header .fortuna-text-logo__name {font-size:clamp(23px,5.9vw,30px) !important;letter-spacing:.10em !important}
  html body header#top.topbar.fortuna-unified-header .fortuna-text-logo__descriptor {padding-left:7px !important;font-size:clamp(12px,2.8vw,13px) !important;letter-spacing:0 !important;gap:2px !important}
  html body header.topbar.fortuna-unified-header .top-cta {display:none !important}
  html body header.topbar.fortuna-unified-header .menu-btn {margin-left:auto !important;min-width:55px !important;min-height:40px !important}
}
@media (max-width:360px) {
  html body header#top.topbar.fortuna-unified-header .fortuna-text-logo__name {font-size:21px !important;letter-spacing:.08em !important}
  html body header#top.topbar.fortuna-unified-header .fortuna-text-logo__descriptor {font-size:11px !important;padding-left:5px !important}
}
@media (prefers-reduced-motion:reduce) {
  html body header.topbar.fortuna-unified-header * {transition:none !important;animation:none !important}
}

/* Final visibility and content spacing apply before JavaScript initializes. */
html body header.topbar.fortuna-unified-header nav.nav > .spatial-mobile-cta {
  display: none !important;
}
@media (max-width: 1180px) {
  html body header.topbar.fortuna-unified-header.fortuna-menu-open > .top-cta {
    display: none !important;
  }
  html body header.topbar.fortuna-unified-header.fortuna-menu-open nav.nav > .spatial-mobile-cta {
    display: block !important;
  }
}
html body header#top.topbar[data-fortuna-rendered] + main:is(.subpage-main, .legal-page, .not-found) {
  margin-top: 0 !important;
  padding-top: calc(var(--fortuna-header-height) + 2 * var(--fortuna-header-top)) !important;
}

/* Shared logo geometry and typography, independent of the page template. */
html body a.brand.fortuna-text-logo.fortuna-site-logo[href] {display:inline-flex !important;flex-direction:row !important;align-items:center !important;gap:clamp(8px,1vw,13px) !important;width:max-content !important;max-width:100% !important;text-decoration:none !important;}
html body a.brand.fortuna-text-logo.fortuna-site-logo[href] > .fortuna-text-logo__name {
  flex: 0 0 auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 300 !important;
  font-size: clamp(26px, 2vw, 35px) !important;
  letter-spacing: .16em !important;
  line-height: 1.08 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  color: #20211F !important;
}
html body a.brand.fortuna-text-logo.fortuna-site-logo[href] > .fortuna-text-logo__descriptor {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 3px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 2px 0 2px 12px !important;
  border: 0 !important;
  border-left: 1px solid rgba(154,116,72,.72) !important;
  font: 400 clamp(12px, 1vw, 15px)/1.15 'Helvetica Neue',Arial,sans-serif !important;
  text-transform: none !important;
  letter-spacing: .05em !important;
  text-align: left !important;
  white-space: nowrap !important;
  color: #9A7448 !important;
}
html body a.brand.fortuna-text-logo.fortuna-site-logo[href] > .fortuna-text-logo__descriptor > span {display:block !important;font:inherit !important;color:inherit !important;letter-spacing:inherit !important;margin:0 !important;}
@media(max-width:760px) {
html body a.brand.fortuna-text-logo.fortuna-site-logo[href] {gap:7px !important;}
html body a.brand.fortuna-text-logo.fortuna-site-logo[href] > .fortuna-text-logo__name {font-size:clamp(23px,5.9vw,30px) !important;letter-spacing:.10em !important;}
html body a.brand.fortuna-text-logo.fortuna-site-logo[href] > .fortuna-text-logo__descriptor {padding-left:7px !important;font-size:clamp(12px,2.8vw,13px) !important;letter-spacing:0 !important;gap:2px !important;}
}
@media(max-width:360px) {
html body a.brand.fortuna-text-logo.fortuna-site-logo[href] > .fortuna-text-logo__name {font-size:21px !important;letter-spacing:.08em !important;}
html body a.brand.fortuna-text-logo.fortuna-site-logo[href] > .fortuna-text-logo__descriptor {font-size:11px !important;padding-left:5px !important;}
}
